Three.js Shaders
Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.
When to Use
- You need custom shader logic in Three.js.
- The task involves
ShaderMaterial, uniforms, GLSL, vertex deformation, or fragment-based effects.
- You are extending material behavior beyond what built-in materials provide.
Core Workflow
- Confirm the request matches this skill's trigger, scope, and risk profile.
- Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.
- Load
references/full-guidance.md when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.
- Apply only the relevant guidance instead of loading or repeating the entire reference by default.
- Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.
Topic Map
- Quick Start
- ShaderMaterial vs RawShaderMaterial
- ShaderMaterial
- RawShaderMaterial
- Uniforms
- Uniform Types
- GLSL Declarations
- Updating Uniforms
- Varyings
- Common Shader Patterns
- Texture Sampling
- Vertex Displacement
- Fresnel Effect
- Noise-Based Effects
- Gradient
- Rim Lighting
- Dissolve Effect
- Extending Built-in Materials
Reference Map
references/full-guidance.md preserves the complete original guidance, including examples and detailed edge cases.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Progressive Loading
Keep this SKILL.md as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.
1---2name: threejs-shaders3description: Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.4license: MIT5---67# Three.js Shaders89Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.1011## When to Use12- You need custom shader logic in Three.js.13- The task involves `ShaderMaterial`, uniforms, GLSL, vertex deformation, or fragment-based effects.14- You are extending material behavior beyond what built-in materials provide.1516## Core Workflow171. Confirm the request matches this skill's trigger, scope, and risk profile.182. Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.193. Load `references/full-guidance.md` when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.204. Apply only the relevant guidance instead of loading or repeating the entire reference by default.215. Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.2223## Topic Map24- Quick Start25- ShaderMaterial vs RawShaderMaterial26- ShaderMaterial27- RawShaderMaterial28- Uniforms29- Uniform Types30- GLSL Declarations31- Updating Uniforms32- Varyings33- Common Shader Patterns34- Texture Sampling35- Vertex Displacement36- Fresnel Effect37- Noise-Based Effects38- Gradient39- Rim Lighting40- Dissolve Effect41- Extending Built-in Materials4243## Reference Map44- `references/full-guidance.md` preserves the complete original guidance, including examples and detailed edge cases.4546## Limitations47- Use this skill only when the task clearly matches the scope described above.48- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.49- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.5051## Progressive Loading52Keep this `SKILL.md` as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.