🎯

threejs-shaders

🎯Skill

from cloudai-x/threejs-skills

VibeIndex|
What it does
|

Provides Three.js shader development patterns including custom WebGL shaders, GLSL code examples, and advanced rendering effects

Overview

Three.js Shaders is a Claude Code skill that provides comprehensive guidance for writing custom GLSL shaders in Three.js using ShaderMaterial and RawShaderMaterial. It covers uniform types, vertex and fragment shaders, and the differences between built-in material convenience and full manual control for creating custom visual effects.

Key Features

  • ShaderMaterial vs RawShaderMaterial - Clear comparison between ShaderMaterial (with built-in uniforms and attributes) and RawShaderMaterial (full manual control requiring explicit precision and attribute declarations)
  • Comprehensive Uniform Types - Support for floats, integers, vectors (vec2/vec3/vec4), colors, matrices (mat3/mat4), textures, cube textures, and arrays with proper Three.js value mapping
  • Vertex Shader Patterns - Access built-in uniforms (modelMatrix, projectionMatrix, normalMatrix, cameraPosition) and attributes (position, normal, uv) for vertex transformations
  • Fragment Shader Basics - Write custom fragment shaders with uniform-driven color, time-based animations, and texture sampling
  • Animation Integration - Update shader uniforms in the render loop using clock.getElapsedTime() for time-based visual effects

Who is this for?

This skill is designed for Three.js developers who need to create custom visual effects, modify vertex positions, write fragment shaders, or extend built-in materials with GLSL code. It is particularly useful for creative developers building visually rich 3D web experiences that go beyond the capabilities of standard Three.js materials.

πŸ“¦

Same repository

cloudai-x/threejs-skills(10 items)

threejs-shaders

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add cloudai-x/threejs-skills --skill threejs-shaders
skills.sh Install⚠ Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add cloudai-x/threejs-skills --skill threejs-shaders
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/threejs-shaders/SKILL.md

SKILL.md

1,749Installs
1,181
-
Last UpdatedJan 19, 2026

More from this repository9

🎯
threejs-animation🎯Skill

Provides Three.js animation API references, patterns, and best practices for creating 3D animations and interactive experiences.

🎯
threejs-fundamentals🎯Skill

Three.js agent skills covering scene setup, cameras, renderer configuration, Object3D hierarchy, coordinate systems, and 3D rendering fundamentals.

🎯
threejs-geometry🎯Skill

Three.js agent skills covering scene setup, cameras, renderer configuration, Object3D hierarchy, coordinate systems, and 3D rendering fundamentals.

🎯
threejs-interaction🎯Skill

Three.js agent skills covering scene setup, cameras, renderer configuration, Object3D hierarchy, coordinate systems, and 3D rendering fundamentals.

🎯
threejs-materials🎯Skill

Provides Three.js material system patterns including PBR materials, textures, normal maps, environment mapping, and advanced rendering techniques

🎯
threejs-postprocessing🎯Skill

Three.js agent skills covering scene setup, cameras, renderer configuration, Object3D hierarchy, coordinate systems, and 3D rendering fundamentals.

🎯
threejs-loaders🎯Skill

Provides Three.js asset loading patterns for 3D models, textures, and animations using GLTF, OBJ, FBX, and other format loaders

🎯
threejs-lighting🎯Skill

Provides Three.js lighting patterns including light types, shadows, intensity controls, and techniques for realistic 3D scene illumination

🎯
threejs-textures🎯Skill

Provides Three.js texture patterns including texture loading, UV mapping, mipmaps, filtering, and texture animation techniques