Exclude the sun

Posted By: jenGs

Exclude the sun - 08/01/13 08:42

Hi,
How can I exclude the sun in my pixelshader, but include all other dynamic lights?
I tried comparing vecLightDir[i].w, like stated in the manual, but this doesnÄt work.
Greetings,
Patrick
Posted By: sivan

Re: Exclude the sun - 08/01/13 08:54

probably i should be over 0. I think 0 is always the Sun.
Posted By: jenGs

Re: Exclude the sun - 08/01/13 09:19

Ah yes that worked. Thank you.

Btw. The manual "vecLightDir[i].w > 10000 => sun;"
That's why I got confused laugh .
© 2024 lite-C Forums