New advertisers: 50% off your first month with code FIRSTMONTHSee slots
enzed avatar

R3f Textures

React Three Fiber texture guide covering color spaces, UV channels, caching, sampling, video, and render targets.

skills.sh installs
2K
GitHub stars
138
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers color versus data maps, cache ownership, UV channels, sampling and filtering, and video or canvas textures
  • Includes a color-space table, a useTexture example, and version checks for Fiber 9, React 19, and Three.js r185
  • Enforces a rule against blanket sRGB conversion, so roughness, normal, and mask maps keep NoColorSpace
  • Designed for developers fixing texture appearance, memory, or orientation problems rather than model-loading workflows

Install

$ npx -y skills add enzed/r3f-skills --skill r3f-textures -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Three Fiber textures

Inspect installed Three.js, Fiber, Drei, and renderer versions first. Examples target Fiber 9 / React 19 and Three.js r185 with WebGL. Preserve correctly configured assets rather than resetting every texture.

Color versus data

Texture contentColor-space annotation
PNG/JPEG base color or emissive colorSRGBColorSpace
Roughness, metalness, normal, AO, alpha/masksNoColorSpace
Linear HDR/EXR lighting dataPreserve loader-provided linear metadata

NoColorSpace is not another name for LinearSRGBColorSpace: scalar/vector data has no color space. Do not blanket-convert every map to sRGB.

Load a color map

Mount under Suspense inside Canvas. The file path is an application asset, not a file provided by this skill.

import { useTexture } from '@react-three/drei'
import { SRGBColorSpace } from 'three'

Details

Repository
github.com/enzed/r3f-skills
Categories
3D, CAD & Modeling, Frontend & UI Code
First seen
Jun 3, 2026

More from enzed/r3f-skills

All 11

Similar to R3f Textures

More 3D, CAD & Modeling