Skip to main content

<arealight>

Casts directional light rays from within a set boundary.

Props

PropTypeDescriptionDefault
colorStringColor of the canvas while image is loading.white
positionArrayPosition of the image.[0,0,0]
rotationArrayRotation of the image.[0,0,0]
widthNumberWidth of the light.2
depthNumberDepth of the light.2
intensityNumberIntensity of the light.10

Notes

  • Performance will suffer when adding multiple lights to the world or when many avatars join the world.