Static
createAlpha-blended shader (semi-transparent, alpha=0.6).
Static
createDebug shader with u_colorIndex uniform (default red).
Static
createShader with pastel/greenish hue, fully opaque.
Static
createOpaque shader (no transparency).
Static
createShader for point cloud: controls vertex size by z range/height.
Static
createLightly tinted, mostly transparent shader, intended for textures.
Static
createShader with white color, fully opaque.
ShaderFactory – Static utility factory for initializing common CustomShader configurations for Cesium 3D Tiles, models, and point clouds.
Provides reusable methods to create shaders for white, green, debug, texture, opaque, alpha, and point cloud effects, making it easy to apply material overrides and visualization tweaks.
Static
Method
createWhiteShader() - Returns a CustomShader rendering pure white, rough, fully opaque.
Method
createGreenShader() - Returns a CustomShader rendering a greenish color, rough, opaque.
Method
createTextureShader() - Returns a CustomShader with very faint diffuse value and lowered alpha (for custom texturing).
Method
createDebugShader() - Returns a CustomShader using a uniform value u_colorIndex for debugging.
Method
createOpaqueShader() - Returns a CustomShader with OPAQUE mode for full alpha rendering.
Method
createAlphaShader() - Returns a CustomShader forcing 0.6 alpha with roughness and no specular.
Method
createPointCloudShader() - Returns a CustomShader with vertex shader to control Cesium point size by Z/elevation.
Example