shader question

Posted By: pegamode

shader question - 06/06/12 08:07

Hey there,

I posted this question in the shader forum:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=402305#Post402305

As it seems that no one has an answer I try again here.

Regards,
Pegamode.
Posted By: jcl

Re: shader question - 06/06/12 11:49

Yes, of course a shader can react on spot lights. The fastest method uses vertex lighting: calculate the angle to the spot light center ray, and dim the light when the angle is bigger than the cone angle. The center ray is given by vecLightDir.

http://manual.3dgamestudio.net/Shader-vecLightPos.htm

Posted By: pegamode

Re: shader question - 06/06/12 12:14

Thanks for your answer ... I'll try to figure out how to modify the shader to our needs.
© 2024 lite-C Forums