3D-City Model
    Preparing search index...

    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.

    createWhiteShader() - Returns a CustomShader rendering pure white, rough, fully opaque.

    createGreenShader() - Returns a CustomShader rendering a greenish color, rough, opaque.

    createTextureShader() - Returns a CustomShader with very faint diffuse value and lowered alpha (for custom texturing).

    createDebugShader() - Returns a CustomShader using a uniform value u_colorIndex for debugging.

    createOpaqueShader() - Returns a CustomShader with OPAQUE mode for full alpha rendering.

    createAlphaShader() - Returns a CustomShader forcing 0.6 alpha with roughness and no specular.

    createPointCloudShader() - Returns a CustomShader with vertex shader to control Cesium point size by Z/elevation.

    const whiteShader = ShaderFactory.createWhiteShader();
    myTileset.customShader = whiteShader;
    Index

    Constructors

    Methods

    • Returns CustomShader

      Alpha-blended shader (semi-transparent, alpha=0.6).

    • Returns CustomShader

      Debug shader with u_colorIndex uniform (default red).

    • Returns CustomShader

      Shader for point cloud: controls vertex size by z range/height.

    • Returns CustomShader

      Lightly tinted, mostly transparent shader, intended for textures.