parallax math update

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
LoneKiltedNinja
Posts: 4
Joined: Wed Sep 24, 2008 5:39 am

parallax math update

Post by LoneKiltedNinja »

Now that I can play with multitexturing and normal/parallax mapping (and the shaders I'm assuming get written implicitly for normal/parallax), I'm wondering if there's a quick way to tell Irrlicht to rebuild the parallax shader and/or update the relevant inputs manually, e.g. when I know the camera-surface-light angles have changed.

I'm currently looking at a sphere with a simple parallax/normal map (basically the meat of example 11 wrapped in a new context) being lit by a point light and a directional light. When the lights move, everything of course looks fine, but when the sphere itself moves (I know, bad practice when using lighting shaders), the lights stay 'stuck' to the sphere since the shader only knows how to find the lights relative to the sphere's surface in its original location.
Post Reply