enzed avatar

R3f Materials

This is your reference guide for materials in React Three Fiber, covering everything from basic unlit surfaces to advanced PBR workflows. You get practical examples of meshStandardMaterial and meshPhysicalMaterial for realistic rendering, plus the specialized Drei materials like MeshReflectorMaterial for mirrors, MeshTransmissionMaterial for better glass, and animated options like MeshWobbleMaterial. The skill includes a useful comparison table showing which material needs lighting and when to use each type. Most helpful when you're setting up PBR textures, creating glass or metallic surfaces, or just need to remember which properties control roughness versus metalness. The examples are copy-paste ready with actual property values.

skills.sh installs
2.1K
GitHub stars
135
last updated
Aug 21, 2026

Install

$ npx -y skills add enzed/r3f-skills --skill r3f-materials --agent claude-code

Installs into .claude/skills of the current project.

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

NeedStarting pointConstraint
Unlit artwork or UI surfacemeshBasicMaterialStill participates in output color/tone-mapping policy
Ordinary PBR surfacemeshStandardMaterialMetals especially need an environment or suitable lights
Clearcoat, transmission, sheenmeshPhysicalMaterialEnable only needed features; more shader work
Stylized lightingmeshToonMaterialNeeds lights; gradient maps need appropriate filtering
Normal debuggingmeshNormalMaterialUseful for geometry/normal inspection
Custom shadingShaderMaterial or node materialMatch 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'

Sponsors

Details

Repository
github.com/enzed/r3f-skills
Categories
Frontend Development, Go, Design & UI/UX, Game Development
First seen
May 16, 2026

More from enzed/r3f-skills

All 11
1enzed avatarr3f-geometryenzed/r3f-skillsReact Three Fiber geometry - built-in shapes, BufferGeometry, instancing with Drei. Use when creating 3D shapes, custom meshes, point clouds, lines, or optimizi2.1Kskills.sh installs
2enzed avatarr3f-shadersenzed/r3f-skillsReact Three Fiber shaders - GLSL, shaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shader2.1Kskills.sh installs
3langgenius avatarbackend-code-reviewlanggenius/difyUse only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do no2.1Kskills.sh installs
4zernie avatartest-harnesszernie/vigilesInstall vigiles and test a Claude Code harness — hooks, skills, settings, CLAUDE.md — by picking the right tier (unit / deterministic / eval) and writing a test2.1Kskills.sh installs
5payloadcms avatarcms-migrationpayloadcms/skillsUse when user wants to migrate content from another CMS (WordPress, Contentful, Strapi, Sanity, Webflow, etc.) to Payload CMS2Kskills.sh installs
6nexu-io avatarredesign-existing-projectsnexu-io/open-designUpgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without bre2Kskills.sh installs