Making a scenenode unaffected by lights?

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
UncleBob
Posts: 106
Joined: Fri May 01, 2009 8:46 am

Making a scenenode unaffected by lights?

Post by UncleBob »

I'm having some scenenodes in my scenes that are actually part of the interface, not real objects. They have an emissive color, but now that I added a lightsource they start reflecting its light, which I don't want to happen. They should not look like actually existing objects in the scene. I tried to mess around with the lighting flag (kills the emissive color), shininess (only changes the "sharpness" of the reflection, but doesn't do away with it if deactivated) and diffuse color (doesn't seem to do a thing... although the node doesn't have a texture). How do I get the result that I want (node just having its emissive color and doesn't reflect any other light whatsoever)?
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Making a scenenode unaffected by lights?

Post by hendu »

Disable lighting, and pass your color in a shader/in its vertices.
UncleBob
Posts: 106
Joined: Fri May 01, 2009 8:46 am

Re: Making a scenenode unaffected by lights?

Post by UncleBob »

Of course, vertex color. Completely forgott that was around too :lol:

Thanks, worked like a charm!
Post Reply