threejs-textures

Loads, configures and optimizes Three.js textures for rendering workflows.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/norrbacka/threejs_codex_base --skill threejs-textures-norrbacka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-textures
Source: https://github.com/norrbacka/threejs_codex_base/tree/main/.codex/skills/threejs-textures
Command: npx skills add https://github.com/norrbacka/threejs_codex_base --skill threejs-textures-norrbacka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you correctly load, configure, and optimize textures in Three.js so materials look right, UV issues are easier to fix, and rendering performance stays efficient.

Core Features & Use Cases

  • Texture Loading and Configuration: Handle image, data, canvas, video, and compressed texture sources with the right color space, wrapping, filtering, and mipmap settings.
  • Environment and Reflection Workflows: Set up cube textures, HDRI environments, background images, and render-target-based reflections for realistic scenes.
  • UV and Material Support: Adjust UV coordinates, create uv2 for ambient occlusion, manage texture atlases, and apply the correct maps to physically based materials.
  • Optimization and Cleanup: Improve texture quality with anisotropy and proper filtering, then dispose or pool textures to reduce memory usage.

Quick Start

Ask the Skill to configure a Three.js material with the correct texture maps, UV settings, and environment lighting for your scene.

Frequently Asked Questions about threejs-textures

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

FAQPage Schema
How do I fix UV mapping issues with textures in Three.js?

To fix UV mapping issues in Three.js, adjust UV coordinates and generate a uv2 channel for ambient occlusion maps. Proper UV layout ensures textures map correctly without stretching or overlapping.

What's the best way to optimize Three.js texture memory and rendering performance?

Optimize Three.js texture memory by tuning mipmap levels, anisotropy, and filtering settings. Dispose or pool unused textures to reduce memory usage and improve rendering performance.

How do I set up HDRI environments and cube textures for reflections in Three.js?

Set up HDRI environments and cube textures in Three.js to create realistic background images and reflections. Render-target-based reflections can also be configured for dynamic scene lighting.

Can I use video and canvas sources as textures in Three.js?

Yes, Three.js supports video and canvas sources as textures. Configure color space, wrapping, and filtering settings to ensure these dynamic sources render correctly in your scene.

How do I handle color space and compression for Three.js textures?

Handle Three.js texture color space by assigning the correct color space settings to image and data textures. Compressed texture sources are supported to reduce file size and memory overhead.