
Threejs Textures
Three.js texture guide covering loading, color space, UV transforms, filtering, texture types, KTX2 compression, and environment maps.
- skills.sh installs
- 18.2K
- GitHub stars
- 4.3K
- last updated
- Aug 21, 2026
What it does
- Covers image loading, color spaces, UV wrap, repeat, offset and rotation, filtering, mipmaps, and anisotropy
- Includes texture types
Texture,DataTexture,CanvasTexture,VideoTexture,VideoFrameTexture, andHTMLTexturewith setup code - Enforces sRGB tagging for color maps while data maps like normal and roughness stay at
NoColorSpace - Designed for developers working with WebGLRenderer, WebGPURenderer, and TSL on images, cubemaps, and texture memory
Install
$ npx -y skills add cloudai-x/threejs-skills --skill threejs-textures -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Three.js Textures
Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.
Quick Start
import * as THREE from "three";
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 100);
camera.position.set(0, 0, 2);
// Color images must be tagged sRGB or they render too bright and washed out
const texture = new THREE.TextureLoader().load("diffuse.jpg");
texture.colorSpace = THREE.SRGBColorSpace;
const mesh = new THREE.Mesh(
new THREE.PlaneGeometry(2, 2),
new THREE.MeshBasicMaterial({ map: texture }),
);
scene.add(mesh);
renderer.setAnimationLoop(animate);
function animate() {
mesh.rotation.z += 0.01;
renderer.render(scene, camera);
}
Loading
Details
- Repository
- github.com/cloudai-x/threejs-skills
- Categories
- 3D, CAD & Modeling, Frontend & UI Code
More from cloudai-x/threejs-skills
All 10Similar to Threejs Textures
More 3D, CAD & Modeling
threejs-loaderscloudai-x/threejs-skills18.6K installsThree.js asset loading for glTF, textures, HDR environments, and progress tracking, with compression and caching guidance.
r3f-texturesenzed/r3f-skills2K installsReact Three Fiber texture guide covering color spaces, UV channels, caching, sampling, video, and render targets.
threejs-materialscloudai-x/threejs-skills21.3K installsChoosing and tuning Three.js materials, from unlit basics through PBR, toon, and WebGPU node materials.
threejs-webglfreshtechbro/claudedesignskills5.3K installsComprehensive Three.js guide for building WebGL and WebGPU scenes with cameras, lights, materials, and loaders.
threejssecondsky/claude-skills489 installsComprehensive Three.js knowledge base covering scene setup, geometry, materials, lighting, shaders, loaders, and interaction.
substance-3d-texturingfreshtechbro/claudedesignskills2.7K installsSubstance 3D Painter texturing workflow for PBR materials exported to Three.js, Babylon.js, and other real-time engines.