CustomShaderTranslucencyMode

An enum for controling how CustomShader handles translucency compared with the original primitive.
Properties:
Name Type Description
INHERIT number Inherit translucency settings from the primitive's material. If the primitive used a translucent material, the custom shader will also be considered translucent. If the primitive used an opaque material, the custom shader will be considered opaque.
OPAQUE number Force the primitive to render the primitive as opaque, ignoring any material settings.
TRANSLUCENT number Force the primitive to render the primitive as translucent, ignoring any material settings.
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.CustomShaderTranslucencyMode.INHERIT : number

Inherit translucency settings from the primitive's material. If the primitive used a translucent material, the custom shader will also be considered translucent. If the primitive used an opaque material, the custom shader will be considered opaque.

static constant Cesium.CustomShaderTranslucencyMode.OPAQUE : number

Force the primitive to render the primitive as opaque, ignoring any material settings.
Default Value: 1

static constant Cesium.CustomShaderTranslucencyMode.TRANSLUCENT : number

Force the primitive to render the primitive as translucent, ignoring any material settings.
Default Value: 2
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.