threejs-shaders

Build custom Three.js GLSL vertex and fragment shaders with ShaderMaterial.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/mitgar14/app-embebidos --skill threejs-shaders-mitgar14
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-shaders
Source: https://github.com/mitgar14/app-embebidos/tree/main/.claude/skills/threejs-shaders
Command: npx skills add https://github.com/mitgar14/app-embebidos --skill threejs-shaders-mitgar14

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and modify custom Three.js shaders when built-in materials are not enough for the visual effect you need.

Core Features & Use Cases

  • Custom GLSL Effects: Build vertex and fragment shaders for displacement, gradients, fresnel lighting, dissolve transitions, and other animated effects.
  • Material Extension: Adapt existing Three.js materials with shader hooks to add bespoke behavior without rewriting the full material pipeline.
  • Debugging and Performance: Inspect shader code, manage uniforms and varyings correctly, and apply practical optimization patterns for real-time rendering.

Quick Start

Use the threejs-shaders skill to create a custom ShaderMaterial for an animated glowing object with time-based color and displacement.

Frequently Asked Questions about threejs-shaders

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom GLSL shaders in Three.js when built-in materials are not enough?

To create custom GLSL shaders in Three.js, build a ShaderMaterial or RawShaderMaterial with custom vertex and fragment shaders. This enables advanced visual effects like displacement, gradients, and dissolve transitions beyond built-in materials.

What is the best way to add custom visual effects to an existing Three.js material?

The best way to add custom visual effects to an existing Three.js material is using shader hooks. This extends built-in materials with bespoke behavior for precise material control without rewriting the full material pipeline.

How do I manage uniforms and varyings correctly for Three.js fragment shaders?

Manage uniforms and varyings correctly by declaring them properly in your ShaderMaterial and handling GLSL version differences. This ensures data passes accurately between vertex and fragment shaders for real-time rendering.

Can I use ShaderMaterial for displacement and fresnel lighting effects in Three.js?

Yes, you can use ShaderMaterial for displacement and fresnel lighting effects in Three.js. Custom GLSL vertex and fragment shaders allow you to build these advanced animated effects with precise material control.

Why does my custom Three.js shader have performance issues during real-time rendering?

Custom Three.js shaders face performance issues when GLSL code lacks optimization. Inspect shader code, manage uniforms efficiently, and apply practical optimization patterns to maintain performance during real-time rendering.