Per-Pixel Spot Light

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
etal2009
Posts: 16
Joined: Wed Mar 10, 2010 2:26 pm

Per-Pixel Spot Light

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Correct, the shader used for the parallax effect can only use point lights. You need a different shader for other light types.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post 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
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Post Reply