light.enableShadows

Section: Light

What it does

light.enableShadows enables Shadows on a light object. It takes id and mapSize. mapSize is optional.

Signature

light.enableShadows(id, mapSize?)

Arguments

  • id
  • mapSizeoptional

Example · generated

function start() {  light.createPoint('point', 0, 2, 0);  light.enableShadows('point');}

light.createPoint is there to give the call something to act on; light.enableShadows is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.

14 members in light