Archive 17/01/2023.

Getting only the Projection matrix? (HLSL)

GoldenThumbs

I noticed that there is a ViewProjection matrix and a normal View matrix, but no normal Projection matrix. How do I separate ViewProjection to only get the Projection?

ab4daa

My first attempt may be

mul(cViewInv, cViewProj);
GoldenThumbs

That was it. Thought I already tried it but turns out I tried doing it the GLSL way… In HLSL… Yeah…