Lights behaviour

Hey everyone,

I’ve noticed strange behaviour after one of the updates.

When the scene has no lights attached the objects are invisible.

Shouldn’t they be fully black instead ??

If you check the history of (updateLightListUniforms(), renderMultipassLighting()), you’ll see that this behavior is not new. Even the first commit / import to SVN shows this behavior.

Yeah, lighting material objects are not rendered without a light.


strange that I didn’t notice it earlier then.

But I won’t argue even though I think that they should be rendered black :wink:

This stuff changes so often. I think there was a brief period recently where the objects did render black because of a default ambient light or something.

…the issue is, no lights… no rendering pass. Since the stuff is rendered once for each light, 0 lights = 0 renders.

1 Like