light.setShadowBlur

Section: Light

What it does

light.setShadowBlur sets ShadowBlur on a light object. It takes id and blur.

Signature

light.setShadowBlur(id, blur)

Arguments

  • id
  • blur

Example · generated

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

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

14 members in light