WasmGPU.createLight¶
Summary¶
WasmGPU.createLight is the light factory facade. It creates ambient, directional, point, and spot lights for scene lighting; returned lights are plain scene resources and are not added to a scene automatically.
Syntax¶
Available APIs¶
- createLight.ambient creates ambient illumination.
- createLight.directional creates a directional light.
- createLight.point and createLight.spot create local lights.
- createLight#enabled, createLight#color, and createLight#intensity document shared light state.
- createLight.directional#direction and createLight.point#range document type-specific state.