Archived

This topic is now archived and is closed to further replies.

FlakHappy

Lighting in Jims RPG book

Recommended Posts

I am working with jims book on the node tree demo and everthing works but im not getting the lighting anymore since i updated to the 8.1 code. If i switch the light type to a directional light it works but the point light that follows you around does not work. I tried differant attenuation values for attenuation 0. I also noticed in the frame() function a light is created that is never used but i don''t think that is causing the problems. If anyone is using this book and had this problem knows what it is please let me know. Thank you.

Share this post


Link to post
Share on other sites
Nevermind i figured it out. the Attenuation 1 value was set to 1.0f somewhere in the code, when i set it to 0.0f it worked the way it was supposed to.

Share this post


Link to post
Share on other sites