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, ): DirectionalLight

Parameters

  • direction (BGE.Math.Vector) — the direction the light travels in
  • color (integer, optional, default: "BGE.ColorsRGB.White") — RGB color
  • intensity (float, optional, default: "1.0")