threejs-textures

Configure Three.js textures with TextureLoader, UVs, and mipmaps.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jay6697117/jet-battle --skill threejs-textures-jay6697117
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-textures
Source: https://github.com/jay6697117/jet-battle/tree/main/.agents/skills/threejs-textures
Command: npx skills add https://github.com/jay6697117/jet-battle --skill threejs-textures-jay6697117

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Three.js projects often face difficulty coordinating texture types, UV mappings, and environment maps, leading to inconsistent visuals and higher manual setup.

Core Features & Use Cases

  • Clarifies how to load and apply regular textures, data textures, canvas textures, and video textures.
  • Explains UV mapping concepts including uv2 for AO maps, and how to use texture atlases and UV transforms.
  • Covers environment maps, cubemaps, HDR environments, PMREM processing, and mipmap settings for performance.
  • Provides practical guidance for texture configuration, including wrap modes, filtering, anisotropy, and color spaces to ensure correct rendering.

Quick Start

Use this guide to implement a robust texture pipeline in a Three.js project, starting from loading a color texture to configuring UVs and mipmaps.

Frequently Asked Questions about threejs-textures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load and apply color, normal, and roughness maps in Three.js?

To load color, normal, and roughness maps in Three.js, use TextureLoader to import image files and assign them to the corresponding material properties. This process ensures your 3D objects display correct surface details and realistic lighting interactions.

What is UV mapping and how do I use uv2 for AO maps in Three.js?

UV mapping in Three.js translates 2D texture coordinates onto 3D geometry. You use a second UV channel, uv2, specifically for Ambient Occlusion maps to ensure occlusion shadows align correctly independent of the primary color texture mapping.

How do I set up environment maps and HDR cubemaps using PMREM processing?

Setting up environment maps with HDR cubemaps requires PMREM processing in Three.js to pre-filter radiance for real-time performance. This generates accurate reflections and image-based lighting across different roughness levels on your materials.

What is the best way to optimize Three.js texture performance using mipmaps and anisotropy?

Optimizing Three.js textures involves configuring mipmaps and anisotropy to reduce aliasing at distances while sharpening oblique angles. Applying correct wrap modes, filtering, and color spaces ensures high rendering performance without visual artifacts.

Can I use video textures and canvas textures in Three.js web applications?

Yes, Three.js supports video textures and canvas textures alongside regular image data textures. You can dynamically map video streams or 2D canvas drawings onto geometries to create animated, real-time visual updates in your 3D web app.