cesiumjs-materials-shaders

cesiumjs-materials-shaders is a skill for Claude Code from CesiumGS/cesiumjs-skills. It costs 83 tokens per session (3,165 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,165 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.03165
Opus 5 $0.00042 $0.01582
Sonnet 5 $0.00017 $0.00633
Haiku 4.5 $0.00008 $0.00316

Measured 11d ago against content hash 2f9e2f7872bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 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.143 (July 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.

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, normalMap, frequency, animationSpeed), 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" });

Custom Fabric with GLSL Source

Use source for inline GLSL. Uniforms declared in uniforms are available by name in the shader.

import { Material, Color } from "cesium";

const pulseMaterial = new Material({
  fabric: {
    uniforms: { color: Color.CYAN, speed: 2.0 },
    source: `czm_material czm_getMaterial(czm_materialInput materialInput) {
      czm_material material = czm_getDefaultMaterial(materialInput);
      float pulse = sin(czm_frameNumber * speed * 0.01) * 0.5 + 0.5;
      material.diffuse = color.rgb;
      material.alpha = color.a * pulse;
      return material;
    }`,
  },
  translucent: true,
});

Read the full file on GitHub · 293 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. 11d 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 (173 stars, last pushed 14d ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,165 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

tools-unity-ugui

Unity UI patterns including Canvas optimization, list virtualization, and mobile-friendly UI.

IdoCohen560/claude-unity-game-studio · 22 tokens

motherduck-create-dive

Create, edit, publish, share, or embed MotherDuck Dives using their React and SQL runtime.

motherduckdb/agent-skills · 27 tokens

uw-ui-toolkit-binder

Generate Unity 6+ UI Toolkit Runtime Data Binding code using MVVM pattern with [CreateProperty], DataBinding, and PropertyPath. Use when creating UI screens, HUDs, menus, inventories, settings panels, or any data-bound UI elements with UI Toolkit. Triggers on requests like "create a health bar", "build the HUD", "make…

IdoCohen560/claude-unity-game-studio · 177 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

canvas-app

Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation, direct targeted edits, complex multi-screen changes, responsive layout, per-screen self-QA, and compile-error convergence. Trigger on requests to create, build, generate, modify, update, change…

microsoft/power-platform-skills · 79 tokens

create-code-app

Creates Power Apps code apps using React and Vite. Use when building code apps, scaffolding projects, or deploying to Power Platform.

microsoft/power-platform-skills · 31 tokens