CanvasMap
Getting Started Tutorials 3D Reference

Class CM3LightSpot extends CM3LightDirectional

CM3LightSpot Class

THREE.js documentation: https://threejs.org/docs/#api/en/lights/SpotLight

Settings Group: SpotLight

Setting Name Type Options Default Comments
angle angle CMTYPE_FLOAT Math.PI / 5
penumbra penumbra CMTYPE_FLOAT 0.3
castShadow castShadow CMTYPE_BOOLEAN false
ShadowNear ShadowNear CMTYPE_FLOAT 8
ShadowFar ShadowFar CMTYPE_FLOAT 300
ShadowMapWidth ShadowMapWidth CMTYPE_FLOAT 1024
ShadowMapHeight ShadowMapHeight CMTYPE_FLOAT 1024

TargetPosition Target Position CMTYPE_VECTOR [0,0,0] x,y, and z values to offset the item