
Description
R3F Shaders is an agent skill for writing custom GLSL or TSL materials in React Three Fiber, including uniforms and vertex deformation. It helps an AI coding agent decide first whether a custom shader is needed at all, since built-in materials cover many effects. When a custom shader is needed, the skill shows how to create one with Drei shaderMaterial or a native shaderMaterial element, keeping the material class and extend call outside render. It explains that a shader is not automatically lit, shadowed, fogged, instanced or skinned, so those features must be added on purpose. It also warns that GLSL ShaderMaterial and onBeforeCompile do not carry over to WebGPU, which uses node materials and TSL. The agent is asked to inspect the installed Fiber, Drei, Three.js and renderer versions first. It suits developers writing visual effects, animated surfaces or procedural materials for web 3D. The skill is published on skills.sh in the enzed r3f-skills collection.…
Highlights
- Decides between built-in materials and custom shaders
- Creates custom materials with Drei shaderMaterial
- Covers uniforms and vertex deformation
- Notes which WebGL features a shader does not inherit
Ratings & Reviews
No ratings yet
Be the first to rate r3f-shaders.
People also visit
r3f-shaders FAQ
What does the R3F Shaders skill do?
It helps an AI coding agent write GLSL or TSL shader materials for React Three Fiber, including uniforms and animated vertex deformation.
Who is it for?
Developers who need custom visual effects in a React Three Fiber scene and understand shader code.
How do I install it?
Run npx skills add https://github.com/enzed/r3f-skills --skill r3f-shaders in a terminal.
Does it support WebGPU?
It covers WebGL and GLSL in its example. For WebGPU it points to node materials and TSL, and notes that GLSL ShaderMaterial is not portable to that renderer.
What are the security audit results?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best r3f-shaders alternatives?
Popular alternatives to r3f-shaders include threejs-shaders, r3f-materials and r3f-postprocessing. See all r3f-shaders alternatives










