ImageBasedLighting

external class ImageBasedLighting(source)

Properties for managing image-based lighting on tilesets and models. Also manages the necessary resources and textures.

If specular environment maps are used, ImageBasedLighting.destroy must be called when the image-based lighting is no longer needed to clean up GPU resources properly. If a model or tileset creates an instance of ImageBasedLighting, it will handle this. Otherwise, the application is responsible for calling destroy().

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Cesium adds lighting from the earth, sky, atmosphere, and star skybox. This cartesian is used to scale the final diffuse and specular lighting contribution from those sources to the final color. A value of 0.0 will disable those light sources.

Link copied to clipboard

The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. This is used when ImageBasedLighting.specularEnvironmentMaps and ImageBasedLighting.sphericalHarmonicCoefficients are not defined.

Link copied to clipboard

A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.

Link copied to clipboard

The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When undefined, a diffuse irradiance computed from the atmosphere color is used.