DirectionalLight
Extends: Light
A light shining in one direction from infinitely far away. Every surface facing against direction is lit equally, however far away it is.
Properties
direction(BGE.Math.Vector) — The direction the light travels in (needn't be normalized). World space has +y up,
Constructor
new DirectionalLight(
direction: BGE.Math.Vector,
color?: integer,
intensity?: float,
): DirectionalLightParameters
direction(BGE.Math.Vector) — the direction the light travels incolor(integer, optional, default: "BGE.ColorsRGB.White") — RGB colorintensity(float, optional, default: "1.0")