Shadow Light script interface

The IShadowLightInstance interface derives from IWorldInstance to add APIs specific to the Shadow Light plugin.

Shadow Light APIs

lightHeight
Set or get the height of the light, used with the shadow caster object heights to calculate the length of shadow to cast. This property only has an effect if the light radius is 0, otherwise shadows always extend offscreen.
shadowColor
Set or get the color of the shadows drawn by the light, as an array with 3 elements specifying the red, green and blue components as floats in the 0-1 range.
tag
Set or get a string of the tag for this light. Combined with castFrom this allows using multiple lights that cast shadows of different sets of objects.
castFrom
A string specifying which shadow caster objects to render shadows for from this object. The possible values are:

  • "all": every shadow caster object will get a shadow rendered for this light.

  • "same-tag": shadows will only be rendered for shadow casters with the same tag.

  • "different-tag": shadows will only be rendered for shadow casters with a different tag.
Construct 3 Manual 2022-08-31

On this page