light.enableShadows

Section: Light

Ce que fait ce membre

light.enableShadows active Shadows sur un objet light. Il prend id et mapSize. mapSize est facultatif.

Signature

light.enableShadows(id, mapSize?)

Arguments

  • id
  • mapSizefacultatif

Exemple · engendré

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

light.createPoint est là pour donner à l'appel quelque chose sur quoi agir : light.enableShadows est la ligne qui compte. Le code est dans start(), que l'engine appelle une fois, à l'apparition de l'entité.

14 membres dans light