Class CM3LightSpot extends CM3LightDirectional
CM3LightSpot Class
THREE.js documentation: https://threejs.org/docs/#api/en/lights/SpotLight
Copyright (C) 2020, Humboldt State University, Jim Graham
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see
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 |