
R3f Materials
Choosing React Three Fiber materials for PBR, transparency, and transmission, with shader guidance split out separately.
- skills.sh installs
- 2.2K
- GitHub stars
- 138
- last updated
- Aug 21, 2026
What it does
- Covers material selection from unlit basic through standard, physical, toon, and custom ShaderMaterial or node materials
- Includes a PBR example with a procedural Drei
EnvironmentandLightformerso no remote preset is needed - Enforces color-space rules: albedo and emissive maps use sRGB, while roughness, metalness, normal, and AO maps use
NoColorSpace - Designed for developers styling meshes who must weigh visual fidelity against GPU cost, with WebGL and WebGPU differences noted
Install
$ npx -y skills add enzed/r3f-skills --skill r3f-materials -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Three Fiber materials
Inspect the installed renderer, Three.js, Fiber, and Drei versions first. Examples use Fiber 9 / React 19 with WebGL. Do not assume Drei shader-based materials work unchanged with WebGPU.
Choose the least complex material that fits
| Need | Starting point | Constraint |
|---|---|---|
| Unlit artwork or UI surface | meshBasicMaterial | Still participates in output color/tone-mapping policy |
| Ordinary PBR surface | meshStandardMaterial | Metals especially need an environment or suitable lights |
| Clearcoat, transmission, sheen | meshPhysicalMaterial | Enable only needed features; more shader work |
| Stylized lighting | meshToonMaterial | Needs lights; gradient maps need appropriate filtering |
| Normal debugging | meshNormalMaterial | Useful for geometry/normal inspection |
| Custom shading | ShaderMaterial or node material | Match WebGL/GLSL versus WebGPU/TSL |
PBR surface with environment lighting
Mount below Canvas. This small procedural environment avoids a remote preset dependency.
import { Environment, Lightformer } from '@react-three/drei'
Details
- Repository
- github.com/enzed/r3f-skills
- Categories
- 3D, CAD & Modeling, Frontend & UI Code
- First seen
- May 16, 2026
More from enzed/r3f-skills
All 11Similar to R3f Materials
More 3D, CAD & Modeling
r3f-shadersenzed/r3f-skills2.2K installsCustom GLSL and TSL materials for React Three Fiber, with uniform handling and vertex deformation guidance.
threejs-materialscloudai-x/threejs-skills21.3K installsChoosing and tuning Three.js materials, from unlit basics through PBR, toon, and WebGPU node materials.
r3f-texturesenzed/r3f-skills2K installsReact Three Fiber texture guide covering color spaces, UV channels, caching, sampling, video, and render targets.
godot-3d-materialsthedivergentai/game-dev-agentic-skills260 installsExpert PBR material patterns for Godot's StandardMaterial3D, covering ORM packing, transparency, and performance.
substance-3d-texturingfreshtechbro/claudedesignskills2.7K installsSubstance 3D Painter texturing workflow for PBR materials exported to Three.js, Babylon.js, and other real-time engines.
threejssecondsky/claude-skills489 installsComprehensive Three.js knowledge base covering scene setup, geometry, materials, lighting, shaders, loaders, and interaction.