Lights

Enabling Lights

In order for lights to be enabled on your objects, you need to specifcy it on an object’s material. You do so as follows:

Point Lights

Point lights are lights that are part of the environment, have a specific color and position and illuminate any materials (light enabled materials that is) around it.

Direction Lights

Directional lights are lights that affect every object with a light enabled material in your scene and like their name implies, emit in a specific direction. They have no position. They are comparable to the light from a source like the Sun.

The following is an example of how to create a directional light

Specular Lighting

Ambient lighting

Ambient lighting is a color that illuminates the entire scene with no specific direction.

You can set up ambient lighting as follows