cesiumjs-custom-shader
Installation
SKILL.md
CesiumJS CustomShader
Version baseline: CesiumJS 1.142. All imports use ES module style.
CustomShader injects user GLSL into the Model / Cesium3DTileset / VoxelPrimitive rendering pipeline. It exposes glTF attributes, feature IDs, and EXT_structural_metadata to per-vertex and per-fragment code, and returns values through the built-in czm_modelVertexOutput and czm_modelMaterial structs.
Use this skill for writing the shader body. Use:
cesiumjs-materials-shaders— for FabricMaterial,ImageBasedLighting,PostProcessStage(bloom, SSAO, FXAA, tonemapping).cesiumjs-3d-tiles— for declarative per-feature coloring viaCesium3DTileStyle, and forVoxelPrimitivesetup/configuration.cesiumjs-models-particles— forModel.fromGltfAsync, animations,ModelFeature.getProperty().
Out of scope
- Fabric
Materialfor entity polylines/polygons/walls — seecesiumjs-materials-shaders. PostProcessStagescreen-space effects — seecesiumjs-materials-shaders.ImageBasedLighting— seecesiumjs-materials-shaders.Cesium3DTileStyledeclarative JSON styling — seecesiumjs-3d-tiles. Do not combine with CustomShader on the same tileset.- Authoring
EXT_structural_metadata/EXT_mesh_featuresin glTF — tooling concern, not runtime.