Skip to main content
skill CX Codex

threejs-shaders · cesartevisual — Claude Code skill: what it does, how to install

threejs-shaders — a Claude Code skill for writing and debugging Three.js GLSL shaders, custom material effects, uniforms, and geometry deformation.

MIT 694 installs ★ 26 updated 2026-09-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-code
Open on GitHub

What threejs-shaders does

The agent applies the skill when working on custom Three.js materials, vertex displacement, and GLSL shader code. Before writing code, it identifies the renderer, installed revision, shader language, and material extension mechanism. Effects are built incrementally from constant output to texture sampling and complex deformations, with full compile and link error checking.

The tool handles vertex displacement by updating normals, expanding bounds for culling, and aligning shadow materials. Uniforms remain stable with updated values instead of rebuilding materials per frame. Custom program cache keys and reproducible shader fixtures help maintain compatibility across revisions.

Edge cases such as mobile precision, resizing, transparent overlap, and extreme parameter values are checked during development. Fallback options for optional features preserve rendering safety when custom shaders are unavailable.

Pronounced constraints require checking compiled outputs and verifying compatibility between WebGL and WebGPU pipelines before deployment.

What it helps with

  • write and debug Three.js GLSL shaders
  • implement custom material effects and deformation
  • manage uniforms and shader program caching
  • handle vertex displacement and shadow rendering

Example prompts for the agent

  • Write a custom water shader for Three.js using ShaderMaterial
  • Add vertex deformation to the sphere material
  • Update shader uniforms without rebuilding materials every frame

How to install threejs-shaders

1Skills CLI (Vercel)

npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-shaders/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-shaders/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-shaders

How to install threejs-shaders in Claude Code?

Run npx skills add cesartevisual/threejs-skills --skill threejs-shaders -a claude-code, then reference ~/.claude/skills/threejs-shaders/SKILL.md.

What does threejs-shaders do?

It helps write, debug, and optimize Three.js GLSL shaders, custom material effects, uniforms, and vertex deformations.

What is required to use threejs-shaders?

A project with Three.js installed and an AI coding environment supporting agent skills.

Source text

SKILL.md · MIT
---
name: threejs-shaders
description: "Write and debug Three.js GLSL shaders, custom material effects, uniforms, and shader deformation."
---

# Custom Shaders

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Identify the renderer, installed revision, shader language, and material extension mechanism before writing shader code. Use GLSL ShaderMaterial/RawShaderMaterial in a compatible pipeline; do not assume a WebGL shader is a drop-in WebGPU material.

Write down spaces for every position, normal, light vector, and varying. Transform normals correctly under nonuniform scale. Keep uniforms stable and update their values rather than rebuilding materials per frame. Avoid unnecessary per-fragment work and dynamic shader permutations.

Build effects incrementally: constant output, coordinates, texture sample, then the effect. Check compile/link logs with full errors enabled. Guard normalization of zero vectors, divisions near zero, and undefined smoothstep ranges. Derivatives require the appropriate stage and support.

When displacing vertices, update normals or calculate suitable shading, expand bounds for culling, and consider matching depth/distance materials for shadows. CPU raycasting still sees CPU geometry unless a matching solution is provided.

Treat onBeforeCompile and shader chunks as revision-sensitive. Use an appropriate custom program cache key when custom compile variations need distinct programs, and retain a reproducible shader fixture for upgrades. Verify display color/tone mapping at the output boundary.

Check extreme parameter values, resizing, mobile precision, transparent overlap, shadows, and picking. Preserve an ordinary material fallback when the feature is optional.

## API reference

Consult the [official documentation](https://threejs.org/docs/pages/ShaderMaterial.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

© cesartevisual · MIT · cesartevisual/threejs-skills

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

threejs-shaders by other authors comes first.

threejs-shaders CloudAI-X threejs-shaders guides the agent through writing GLSL shaders, custom materials, and TSL nodes for Three.js r186 across WebGL and WebGPU. CX Codex +1 22,000installs threejs-shaders calesthio Skill for Three.js shaders: write vertex and fragment shaders in GLSL, manage uniforms, and build custom visual effects. CX Codex +1 1,200installs threejs mrgoonie A coding-agent skill that walks you through Three.js scenes, shaders and VR work. Useful when a project needs WebGL or WebGPU and you want the agent to know the API. CX Codex +1 1,300installs threejs-3d-graphics omer-metin threejs-3d-graphics configures the agent as a senior Three.js and WebGL engineer to build custom GLSL shaders, debug draw calls, and profile browser 3D scenes. CX Codex +1 477installs r3f-shaders EnzeD r3f-shaders — a coding-agent skill for custom GLSL and TSL shaders in React Three Fiber. It covers uniforms, vertex deformation, and shader debugging. CX Codex +1 2,200installs shader-glsl iart-ai shader-glsl is a Claude Code skill for writing GLSL fragment shaders for animated backgrounds, image transitions, and Three.js ShaderMaterial pipelines. CX Codex +1 2,300installs 3d-ultra-realistic-water MengTo 3d-ultra-realistic-water — a Three.js skill that builds an open sea with Gerstner waves, sun glitter, foam and a Kelvin wake. Useful when your scene has a horizon and a moving camera. CX Codex +1 771installs 3d-metal-material MengTo 3d-metal-material builds realistic PBR metals in Three.js using conductor physics, measured F0 linear values, dark HDR studio setups with PMREM, and layered roughness noise. CX Codex +1 ★ 7,995repo stars

From the same set24

The whole set →
threejs-performance threejs-performance is a Claude Code skill that profiles and optimizes Three.js frame time, GPU workload, asset memory, and resource leaks. CX Codex +1 817installs threejs-web This Claude Code skill plans and builds Three.js web experiences or focused 3D features. It inspects the project and checks the result in a browser. CX Codex +1 776installs threejs-animation threejs-animation — a skill for Claude Code guides animation work in Three.js. It covers clips, skeletal motion, transitions, and scroll-driven timelines. CX Codex +1 753installs threejs-lighting The threejs-lighting Claude Code skill guides lighting and shadow work in Three.js scenes. It comes into play when setting up environment maps, direct lights, or shadow maps. CX Codex +1 694installs threejs-testing threejs-testing — a skill for Claude Code defines visual QA and browser testing guidelines for Three.js scenes. Focuses on deterministic fixtures, GPU checks, and teardown lifecycle tests. CX Codex +1 681installs threejs-interaction This Claude Code skill guides Three.js interaction work, from object picking to orbit controls. It applies when an agent is asked to add dragging, selection, or synchronized HTML controls. CX Codex +1 681installs threejs-assets The threejs-assets Claude Code skill guides loading and managing glTF models, textures, and user-provided 3D files. It applies to asset validation, compression, caching, and cleanup in Three.js projects. CX Codex +1 676installs threejs-scene This skill for Claude Code configures Three.js scene hierarchies, camera framing, coordinate transforms, and renderer lifecycles. It enforces proper GPU cleanup and bounds calculations. CX Codex +1 671installs

Project sponsors

Companies that keep this analytics open