PreparedLight
Extends: roAssociativeArray
A light reduced to what shading needs, built once per lighting change so shading a surface doesn't re-normalize or unpack anything.
Properties
type(BGE.LightType)r(float) — color * intensity, per channel, as fractions of full brightnessg(float)b(float)toLight(BGE.Math.Vector) — directional only: unit vector from a surface toward the lightposition(BGE.Math.Vector) — point onlyrange(float)