Archived

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

xGambit

Why no lights in example 2?

Recommended Posts

xGambit    122
Could someone tell me why the spinning cube in example 2 (PR 2.6) is able to be seen even though no lights have been set up? Shouldn''t it render completely black? I thought there might be a default ambient light, but setting the PR_Ambient variables made no apparent difference. I''m sure I am missing something obvious here. Dave...

Share this post


Link to post
Share on other sites
Gary    122
It''s because the cube that is used in ex2 has the rendering mode TEXTURED which doesn''t take into account lighting. If you want lighting on it, change the rendering mode to GOURAUD_TEXTURED.

Gary

Share this post


Link to post
Share on other sites