- Home /
Why I can see object in a scene without any lights?
Recently I create a scene and put a Cube in front of camera, there is only one cube in the scene, without any lights. I run the game by Play button and I found i still can see the cube with its default material color. I wonder why I can see an object without lighting it. Is the default material emit light? BTW: I have already closed the default light in the Scene view.
Answer by DaveA · Aug 13, 2012 at 07:32 PM
The Ambient light is probably not exactly black.
Good to have multiple $$anonymous$$ds on the same question ;)
+1
Answer by Bunny83 · Aug 13, 2012 at 03:58 PM
It's because the default clear-color of your camera is this nice blue. The cube is rendered totally black since it's not lighted. When you set a black clear color, you won't see the cube.
Note that there are also shaders that a "Self-Illuminated". Those don't require any lights.
Hopefully you know that lighting is always faked in computer graphics. There is not light that sends out rays which would hit the surface. The cube is always drawn. The shader checks where the light is and calculates the shades for each fragment. That's why it's called "shader" ;)
Thx Bunny, I found the reason. There is a Ambient Light with White Color in Render Settings.
Your answer
Follow this Question
Related Questions
Why isn't my flashing script working? 1 Answer
Rendering sun-shafts even when light is not in view. 0 Answers
Flashlight Flickering 1 Answer