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 brightness
  • g (float)
  • b (float)
  • toLight (BGE.Math.Vector) — directional only: unit vector from a surface toward the light
  • position (BGE.Math.Vector) — point only
  • range (float)