threejs-textures

Load, configure, and apply textures in Three.js projects.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Clinscott/CStar --skill threejs-textures-clinscott
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-textures
Source: https://github.com/Clinscott/CStar/tree/main/skills_db/threejs-skills/skills/threejs-textures
Command: npx skills add https://github.com/Clinscott/CStar --skill threejs-textures-clinscott

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Three.js texture handling often involves manual setup, wrong color spaces, and inefficient textures that hurt performance. This Skill consolidates techniques for loading, configuring, and applying textures across materials, including color space, wrapping, filtering, mipmaps, and atlas usage.

Core Features & Use Cases

  • Texture loading and management with TextureLoader and canvas/data textures.
  • Detailed configuration options: color space, wrapping modes, filtering, mipmaps, anisotropy.
  • Environment maps, cube textures, and UV2 mapping for aoMap and advanced shading.

Quick Start

Load a texture using THREE.TextureLoader and apply it to a mesh material.

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 textures to a mesh in Three.js?

To load Three.js textures, use THREE.TextureLoader to fetch image files and apply the resulting texture object to your mesh material's map property. This Skill details configuration for color space, wrapping, filtering, and mipmaps to ensure correct rendering.

Why are my Three.js textures displaying with incorrect colors?

Incorrect texture colors in Three.js usually stem from wrong color space handling. This Skill specifies functional requirements for setting the correct color space on texture objects, ensuring accurate visual output across different material types and lighting setups.

What is UV2 mapping and when do I need it for Three.js materials?

UV2 mapping provides a second set of UV coordinates required by specific Three.js material properties like aoMap for advanced shading. This Skill covers UV2 considerations and explains how to configure them alongside standard UV coordinates for complex materials.

How do I use HDR environment maps for reflections in WebGL?

HDR environment maps in Three.js provide realistic reflections and lighting by wrapping a scene in a cube texture. This Skill details configuring cube textures and environment maps to achieve advanced shading and accurate material reflections.

What is the best way to optimize texture loading for WebGL performance?

Optimizing WebGL texture performance involves configuring mipmaps, anisotropy, and appropriate filtering modes. This Skill consolidates techniques for efficient texture loading and atlas usage to enhance rendering speed without sacrificing visual quality.

Can I use canvas or data textures instead of image files in Three.js?

Yes, Three.js supports canvas and data textures for procedural or dynamically generated content. This Skill covers texture loading and management using these alternatives alongside standard TextureLoader workflows for flexible web 3D projects.