Page 1 of 1

matrix light

Posted: 01 Feb 2013, 13:56
by mofo7777

Would be great to get matrix light (view and projection) directly inside the shader, not only the default data of the light. it saves us time not to make a script and connect the light data.

Re: matrix light

Posted: 01 Feb 2013, 16:04
by mofo7777
Thank you.

I didn't know that such optimization exists with the shader 3.0. I will make some tests to ensure that optimization is done.

I construct just the matrix light view and the matrix light projection from the position/aim/fov/etc... of the light.