SceneModule Overview
SceneModule Overview
EnvironmentLightSource

EnvironmentLightSource

The EnvironmentLightSource class describes an environment lighting source.

Inherits From : SceneObjectBase

Properties

PropertyDescription
diffuseEnvironment
(get) (Not Available)
(set) diffuseEnvironment: TextureBase | null


Set a diffuse environment texture on this material.
specularEnvironment
(get) (Not Available)
(set) specularEnvironment: TextureBase | null


Set a specular environment texture on this material.
staticEnvironmentRotation
(get) staticEnvironmentRotation: PointSignal
(set) staticEnvironmentRotation: PointSignal


Specifies the rotation signal to be used for transformations of static environment textures.

Methods

MethodDescription
getDiffuseEnvironment
getDiffuseEnvironment(): Promise<TextureBase | null>


Returns a promise that is resolved with the diffuse environment texture associated with a given material or null if no texture was assigned.
getSpecularEnvironment
getSpecularEnvironment(): Promise<TextureBase | null>


Returns a promise that is resolved with the specular environment texture associated with a given material or null if no texture was assigned.

Was this article helpful?