LightingModel

The lighting model to use for lighting a ModelExperimental.
Properties:
Name Type Description
UNLIT Number Use unlit shading, i.e. skip lighting calculations. The model's diffuse color (assumed to be linear RGB, not sRGB) is used directly when computing gl_FragColor. The alpha mode is still applied.
PBR Number Use physically-based rendering lighting calculations. This includes both PBR metallic roughness and PBR specular glossiness. Image-based lighting is also applied when possible.
Experimental

This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.

Members

static constant Cesium.LightingModel.PBR : Number

Use physically-based rendering lighting calculations. This includes both PBR metallic roughness and PBR specular glossiness. Image-based lighting is also applied when possible.
Default Value: 1

static constant Cesium.LightingModel.UNLIT : Number

Use unlit shading, i.e. skip lighting calculations. The model's diffuse color (assumed to be linear RGB, not sRGB) is used directly when computing gl_FragColor. The alpha mode is still applied.