UWAL / AmbientLight
Classes
AmbientLight
A light used to equally illuminate all meshes in the scene. There should be only one source; it cannot cast shadows and does not have a direction.
See
Primitives / Lights for reference.
Extends
Constructors
Constructor
ts
new AmbientLight(color?, label?): AmbientLight;Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
color? | ColorParam | undefined | Light color. Defaults to white. |
label? | string | "AmbientLight" | Light label. |
Returns
Overrides
Methods
SetRenderPipeline()
ts
SetRenderPipeline(Pipeline, uniformName?): GPUBuffer;Create and update an internal uniform buffer of this light's color and intensity values.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
Pipeline | RenderPipelineInstance | undefined | Pipeline using this light. |
uniformName? | string | "AmbientLight" | Uniform buffer name. |
Returns
GPUBuffer