Time for action - creating a global ambient light
We are now going to set the light color for a global ambient light that will affect all the objects in the scene.
- Choose File | New to create a new scene in irrEdit.
- Select the topmost level node, which is a scene node, called root in our case.
- You'll see an attribute called AmbientLight in the Properties panel. Change this color to something else other than default black, let's say yellow:
- Select the testCube node from the explorer and the choose Materials tab in the Properties panel. By default, Lighting property is unchecked. Check this checkbox and you'll see the result immediately as shown in the ...