Add matrix functions for generating infinite reversed-z perspective projection matrix

Open
#158 4 comments 4 reactions 0 assignees View on GitHub

@RohithPariki is already working on this.

Since Aug 1, 2026.

  • #334 by @RohithPariki — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Read the issue's linked references to understand infinite reversed-z projection, then inspect the DirectXMath matrix APIs and open pull request #334. Done means DirectXMath provides the requested functions for generating infinite reversed-z perspective projection matrices.

Written by the indexing model from the issue text.

Description

enhancement proposal

Hello, I think it would be really great if DirectXMath added support for generating perspective projection matrices with infinite reversed-z clip planes. This style of projection matrix has become increasing popular in recent years since they result in excellent distribution of depth precision when used with floating-point depth buffers, and they effectively remove the need for having a maximum view distance. This blog post gives a good overview of why it's good and how it works, and this article has some great visualizations of why reversed-z is beneficial.

Dominant language
C++
Stars
1.8k
Forks
262
Avg merge
20h 57m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectXMath

All issues in microsoft/DirectXMath

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.