-
Notifications
You must be signed in to change notification settings - Fork 3
Light
Represents a light source.
lightType : “point”
The light source type. ‘point’ for point lights, ‘spot’ for spot lights. Point lights don’t cast shadows.
colour : “1 1 1”
The diffuse colour component of the light.
specular : “0.4 0.4 0.4”
The specular colour component of the light.
attenuation : “10 0 0 0.1”
Four values describing the attenuation function of the light. The first part is the ‘range’ of the light, or the distance up to which the light affects the surroundings. After that, the light is ignored. The light ‘brightness’ at a point is multiplied by 1/(a2 + a3*d + a4*d*d), where ‘d’ is the distance of that point from the light, and ‘a2, a3, a4’ are the 2nd, 3d and 4th parts of the attenuation value.
innerAngle : “0”
For spot lights, a degree measure of the angle in the inner spotlight cone.
outerAngle : “45”
For spot lights, a degree measure of the angle in the outer spotlight cone.