Page 1 of 1

Per-Pixel Spot Light

Posted: Tue Mar 23, 2010 10:13 pm
by etal2009
How do I create a per pixel spot light? I created a spot light by using light->setType(ELT_SPOT), but it doesn't seem to work on materials using parrallax mapping.

Posted: Tue Mar 23, 2010 10:35 pm
by hybrid
Correct, the shader used for the parallax effect can only use point lights. You need a different shader for other light types.

Posted: Tue Mar 23, 2010 10:54 pm
by sudi
check out my project. it has perpixel point/spot/diretional lightning and shadow maps but these are not really done yet. but perpixel lightning works with any number of lights.

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=37811