What problem does it solve?
Three.js texture setup can be confusing and error-prone, leading to incorrect colors, broken UVs, blurry or aliased surfaces, and inefficient rendering.
Core Features & Use Cases
- Texture loading and async workflows: Load image textures safely and efficiently for materials, including Promise-based patterns.
- Correct texture configuration: Use proper color spaces (sRGB vs data), wrapping, repeat/offset/rotation, filtering, anisotropy, and mipmaps to get the look you expect.
- Environment mapping and advanced texture types: Apply cube maps, HDR/equirectangular reflections, render targets, compressed textures (KTX2), and video textures for realistic lighting.
- UV mapping and texture data pipelines: Read/modify UV attributes, manage secondary UVs for AO (uv2), and build texture atlases for batching.
- Performance and memory management: Dispose textures/material maps and optimize for web delivery constraints (size limits, compression, reuse).
Quick Start
Apply texture images by loading them with a Three.js TextureLoader and assigning the loaded texture to a material map for your mesh.