SceneLight Properties

Requires: Base Development System

Inherits from Scene»SceneNode. View the class hierarchy.

PropertyDescription
Ambient ColorReads or writes the RGBA color value of the ambient lighting. Ambient light comes from all directions equally and scatters in all directions equally after it encounters the objects in the scene, such that a source for the light cannot be distinguished. Details
At InfinityReads or writes whether the light is at an infinite distance from the scene. If TRUE, all light strikes the scene in parallel. Set this property to TRUE to create a directional light. Details
AttenuationReads or writes the factors of attenuation applied to the light. Attenuation mimics how the intensity of light diminishes as you increase distance from the light. Details
Attenuation:Constant AttenuationIndicates the constant factor of attenuation (kc) you apply to the light. The constant factor of attenuation does not change as distance from the light increases. Details
Attenuation:Linear AttenuationIndicates the linear factor of attenuation (kl) you apply to the light. The linear factor of attenuation drops in a linear manner as distance from the light increases. Details
Attenuation:Quadratic AttenuationIndicates the quadratic factor of attenuation (kq) you apply to the light. The quadratic factor of attenuation drops by the square of the distance from the light. Details
CutoffReads or writes the cutoff you apply to a spotlight to restrict the width of the light. The value you wire to this property is equivalent to half the angle of the actual spotlight. For example, if you want the spotlight to emit a 40 degree angle of light, set this property to 20. This property accepts values 0 to 90 and 180, where 180 represents no cutoff. Details
Diffuse ColorReads or writes the RGBA color of the diffuse lighting. A diffuse light originates at a specific point and scatters equally across the surface of any 3D object it encounters. Details
DirectionReads or writes the x, y, and z coordinates that define the direction of the light. Details
ExponentReads or writes the intensity distribution of the light. The intensity of the light changes as the direction of the light and the direction of the object differ. This property accepts values 0 to 128, where 0 means uniform distribution. Details
Light NumberReads or writes the number you assign to the light. This property accepts values 0 to 7. The default is 0. Details
PositionReads or writes the x, y, and z coordinates that define the position of the light relative to its owning object. Details
Specular ColorReads or writes the RGBA color value of the specular light. The light comes from a specific point and bounces off the surface of a 3D object in a direction determined by the shape of the object. When specular light encounters an object, the object acts as a mirror off which the light bounces. Details