Skip to content

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
ParameterTypeDefault valueDescription
color?ColorParamundefinedLight color. Defaults to white.
label?string"AmbientLight"Light label.
Returns

AmbientLight

Overrides

Light.constructor

Methods

SetRenderPipeline()
ts
SetRenderPipeline(Pipeline, uniformName?): GPUBuffer;

Create and update an internal uniform buffer of this light's color and intensity values.

Parameters
ParameterTypeDefault valueDescription
PipelineRenderPipelineInstanceundefinedPipeline using this light.
uniformName?string"AmbientLight"Uniform buffer name.
Returns

GPUBuffer

Overrides

Light.SetRenderPipeline

Released under the MIT License.