How do I get a shadowmatrix for a spotlight?

Problems building or running the engine, queries about how to use features etc.
Post Reply
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

How do I get a shadowmatrix for a spotlight?

Post by white_waluigi »

I'd like to implement gobo lights (light texture projection) and for that I need a matrix that can translate the world position of a pixel into a texture mapping coordinate of the gobo texture.

So what would be a way to get the shadowmatrix from the spotlight, even if theres no shadow map attached?
Post Reply