cesiumjs-materials-shaders

cesiumjs-materials-shaders is a skill for Claude Code from CesiumGS/cesiumjs-skills. It costs 83 tokens per session (3,690 once invoked), scanned A, original, Apache-2.0.

CesiumJS guidance for controlling the appearance of surfaces and lines and adding screen-level visual effects in 3D maps and globes. It covers materials, custom shader-based looks, lighting, and effects such as bloom, depth of field, and ambient occlusion.

In plain words
What is it for?
Use it to style entities or geometry, create custom surface and line materials, configure image-based lighting, or add effects such as bloom, depth of field, ambient occlusion, anti-aliasing, and tonemapping.
Why use it?
It explains how to give map objects specific colors, patterns, textures, water effects, glows, and post-processing effects while using CesiumJS’s material system.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cesiumjs-skills plugin — 15 skills, 1 hook, 1 MCP server shipped together

Good fit Use it to style entities or geometry, create custom surface and line materials, configure image-based lighting, or add effects such as bloom, depth of field, ambient occlusion, anti-aliasing, and tonemapping.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add CesiumGS/cesiumjs-skills --skill cesiumjs-materials-shaders
Clone the repo
git clone --depth 1 https://github.com/CesiumGS/cesiumjs-skills

Made for: Claude Code.

Or install cesiumjs-skills, the plugin that ships this one along with the rest of its 15 skills, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cesiumjs-materials-shaders

README.md
[![agentmods](https://agentmods.dev/badge/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders/github.svg)](https://agentmods.dev/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders)
Your own site
<a href="https://agentmods.dev/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders"><img src="https://agentmods.dev/badge/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cesiumjs-materials-shaders

Your own site · 80×15
<a href="https://agentmods.dev/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders"><img src="https://agentmods.dev/badge/skills/cesiumgs/cesiumjs-skills/cesiumjs-materials-shaders.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,690 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.03690
Opus 5.5 $0.00033 $0.01476
Sonnet 5.5 $0.00017 $0.00738
Haiku 4.5 $0.00008 $0.00369

Measured 1mo ago against content hash 09f8e26337fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cesiumjs-materials-shaders scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cesiumjs-materials-shaders/SKILL.md · 342 lines

How it starts

The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CesiumJS Materials, Shaders & Post-Processing

Version baseline: CesiumJS 1.144 (August 2026). All imports use ES module style.

Material System (Fabric JSON)

Material defines surface appearance for Primitives through a JSON schema called Fabric. Materials compile to GLSL and are consumed by MaterialAppearance or PolylineMaterialAppearance.

While a material's image loads, CesiumJS renders a placeholder texture that defaults to white. Since 1.144 the static Texture.defaultColor changes that placeholder color to avoid white flashes during material construction. Note that the Texture class is runtime-public but absent from the published TypeScript definitions, so TypeScript callers need a cast.

Built-in Material Types

Surface: Color (color), Image (image, repeat), DiffuseMap, AlphaMap, SpecularMap, EmissionMap (image, channel(s), repeat), BumpMap, NormalMap (image, channel(s), strength, repeat).

Patterns: Grid (color, cellAlpha, lineCount, lineThickness), Stripe (evenColor, oddColor, repeat), Checkerboard (lightColor, darkColor, repeat), Dot (lightColor, darkColor, repeat).

Effects: Water (baseWaterColor, blendColor, normalMap, frequency, animationSpeed, amplitude), RimLighting (color, rimColor, width), Fade (fadeInColor, fadeOutColor, maximumDistance).

Terrain: ElevationContour (color, spacing, width), ElevationRamp (image, minimumHeight, maximumHeight).

Polyline: PolylineArrow (color), PolylineDash (color, gapColor, dashLength, dashPattern), PolylineGlow (color, glowPower, taperPower), PolylineOutline (color, outlineColor, outlineWidth).

Creating Materials

import { Material, Color, Cartesian2 } from "cesium";

// Shorthand with fromType (preferred for built-in types)
const colorMat = Material.fromType("Color", { color: new Color(1.0, 0.0, 0.0, 0.5) });

// Full Fabric notation
const gridMat = new Material({
  fabric: {
    type: "Grid",
    uniforms: { color: Color.GREEN, cellAlpha: 0.1, lineCount: new Cartesian2(8, 8) },
  },
});

// Async loading -- awaits textures before first frame, no flicker
const imageMat = await Material.fromTypeAsync("Image", { image: "./textures/facade.png" });

Read the full file on GitHub · 342 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +49 lines 09f8e26337fc
  2. 2mo ago First seen · 293 lines · 83 tokens per session scan A 2f9e2f7872bc

Subscribe to this mod's changes

cesiumjs-materials-shaders is a skill published in the GitHub repository CesiumGS/cesiumjs-skills (194 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,690 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cesiumjs-materials-shaders compared with skills from other repositories

cesiumjs-materials-shaders next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cesiumjs-materials-shadersCesiumGS/cesiumjs-skillsSkill1941mo agoApache-2.0A83Claude Code
tools-unity-behavior-designerIdoCohen560/claude-unity-game-studioSkill274mo agoMITA29Claude Code
tools-unity-flowcanvasIdoCohen560/claude-unity-game-studioSkill274mo agoMITA21Claude Code
tools-unity-gameplay-ability-systemIdoCohen560/claude-unity-game-studioSkill274mo agoMITA29Claude Code
tools-unity-profilingIdoCohen560/claude-unity-game-studioSkill274mo agoMITA26Claude Code
tools-unity-state-machineIdoCohen560/claude-unity-game-studioSkill274mo agoMITA22Claude Code
eng-unity-mobile-optimizationIdoCohen560/claude-unity-game-studioSkill274mo agoMITA22Claude Code