0
\$\begingroup\$

I'm trying to use space in my shadow (depth) maps in a more efficient way. If I could freely rotate the final image I get with projection matrix I could save a lot of pixels, but I don't know if it is possible to do so. Is it?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ So you want to roll the shadow map camera? Of course it's possible; just stick in a Z-rotation matrix between the view and projection matrices. \$\endgroup\$ Dec 13, 2013 at 21:09
  • \$\begingroup\$ will check it out. \$\endgroup\$
    – cubrman
    Dec 14, 2013 at 7:00

1 Answer 1

1
\$\begingroup\$

You can rotate the shadow map view by inserting a Z-rotation matrix between the view and projection matrices. This is like rolling the shadow map camera, which causes the resulting shadow map image to rotate in 2D.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .