Skip to content
Skills Library
Design & UX · Building & coding

threejs-textures

/threejs-textures

three.js textures: Texture, DataTexture, CubeTexture, CompressedTexture variants, DepthTexture, VideoTexture, CanvasTexture, 3D/array textures, Source; sampling parameters, mipmaps, anisotropy, wrap/mag/min filters; PMREMGenerator in Extras for environment map prefiltering. Use when configuring GPU texture objects and PMREM; for Draco/KTX2 transcoder file paths use threejs-loaders; for material map slots use threejs-materials; for output color pipeline use threejs-renderers.

Licence
Apache-2.0
Last repository change
04.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
11
Deprecation

No signals detected. Repository changed on 04.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

three.js textures: Texture, DataTexture, CubeTexture, CompressedTexture variants, DepthTexture, VideoTexture, CanvasTexture, 3D/array textures, Source; sampling parameters, mipmaps, anisotropy, wrap/mag/min filters; PMREMGenerator in Extras for environment map prefiltering. Use when configuring GPU texture objects and PMREM; for Draco/KTX2 transcoder file paths use threejs-loaders; for material map slots use threejs-materials; for output color pipeline use threejs-renderers.

Original author description

three.js textures: Texture, DataTexture, CubeTexture, CompressedTexture variants, DepthTexture, VideoTexture, CanvasTexture, 3D/array textures, Source; sampling parameters, mipmaps, anisotropy, wrap/mag/min filters; PMREMGenerator in Extras for environment map prefiltering. Use when configuring GPU texture objects and PMREM; for Draco/KTX2 transcoder file paths use threejs-loaders; for material map slots use threejs-materials; for output color pipeline use threejs-renderers.

How it works

  1. When to use this skill
  2. How to use this skill
  3. Doc map (official)
  4. Scope
  5. Common pitfalls and best practices
  6. Documentation and version
  7. Agent response checklist
  8. References
  9. Keywords
Original SKILL.md headings · 80 lines, 391 words
SKILL.md preview
---
name: threejs-textures
license: Apache-2.0
description: "three.js textures: Texture, DataTexture, CubeTexture, CompressedTexture variants, DepthTexture, VideoTexture, CanvasTexture, 3D/array textures, Source; sampling parameters, mipmaps, anisotropy, wrap/mag/min filters; PMREMGenerator in Extras for environment map prefiltering. Use when configuring GPU texture objects and PMREM; for Draco/KTX2 transcoder file paths use threejs-loaders; for material map slots use threejs-materials; for output color pipeline use threejs-renderers."
---
## When to use this skill

**ALWAYS use this skill when the user mentions:**

- `texture.wrapS` / `wrapT`, `minFilter`, `magFilter`, `generateMipmaps`, `anisotropy`
- `colorSpace` / correct handling of sRGB vs linear data maps
- Creating `DataTexture`, `CubeTexture`, compressed GPU formats, video/canvas driven textures
- `PMREMGenerator` from environment maps for IBL

**IMPORTANT: textures vs loaders**

| Step | Skill |
|------|--------|
| Decode file / HTTP | **threejs-loaders** |
| Configure GPU `Texture` | **threejs-textures** |

**Trigger phrases include:**

- "Texture", "CubeTexture", "PMREM", "colorSpace", "mipmap", "各向异性"
- "环境贴图", "数据纹理", "压缩纹理"

## How to use this skill

1. **Classify** texture dimensionality and format (2D, cube, depth, compressed, data).
2. **Color pipeline**: set `colorSpace` appropriately; normal/roughness maps are non-color data.
3. **Sampling**: choose filters; enable mipmaps when minification occurs; consider max anisotropy.
4. **PMREM**: feed env map through `PMREMGenerator` per docs; assign result to scene/env/intensity paths as required.
5. **Video/canvas**: understand update needs each frame for `VideoTexture` / `CanvasTexture`.
6. **Disposal**: `dispose()` textures when replacing to free GPU memory.
7. **KTX2/Basis**: transcoder wiring belongs in **threejs-loaders** before this step.

See [examples/workflow-pmrem-env.md](examples/workflow-pmrem-env.md).

## Doc map (official)

| Docs section | Representative links |
|--------------|----------------------|
| Textures | https://threejs.org/docs/Texture.html |
| Cube | https://threejs.org/docs/CubeTexture.html |
| Data | https://threejs.org/docs/DataTexture.html |
| PMREM | https://threejs.org/docs/PMREMGenerator.html |

## Scope

- **In scope:** Core Textures + PMREMGenerator; sampling and color pipeline at texture level.
- **Out of scope:** Loader configuration; post-processing passes that sample buffers (threejs-postprocessing).

## Common pitfalls and best practices

- sRGB albedo in linear workflow without proper colorSpace looks wrong next to renderer output.
- Non-power-of-two textures have mip/wrap limitations unless padded.
- Forgetting texture disposal on hot reload leaks VRAM.

## Documentation and version

Texture classes and `PMREMGenerator` are documented under [Textures](https://threejs.org/docs/#Textures) and [PMREMGenerator](https://threejs.org/docs/PMREMGenerator.html) in [three.js docs](https://threejs.org/docs/). Compressed and KTX2 paths often depend on **threejs-loaders** for transcoder setup before this skill applies.

## Agent response checklist

When answering under this skill, prefer responses that:

1. Link `Texture`, `DataTexture`, `CubeTexture`, or `PMREMGenerator` as appropriate.
2. Tie `colorSpace` / filtering to **threejs-renderers** output and **threejs-materials** maps.
3. Send Draco/KTX2 **decoder wiring** questions to **threejs-loaders** first.
4. Emphasize `dispose()` when replacing env maps or large atlases.
5. Mention [Global](https://threejs.org/docs/#Global) constants only when wrapping/filter enums matter.

## References

- https://threejs.org/docs/#Textures
- https://threejs.org/docs/Texture.html
- https://threejs.org/docs/PMREMGenerator.html

## Keywords

**English:** texture, cubemap, pmrem, mipmap, colorspace, compressed texture, data texture, three.js

**中文:** 纹理、立方体贴图、PMREM、mipmap、色彩空间、压缩纹理、three.js

Files in this package (3)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • examples/workflow-pmrem-env.md 1 KB

Versions

RepositoryScoreLicence
This page · full-stack-skills/threejs-skills100Apache-2.0
akillness/jeo-skills100MIT
cloudai-x/threejs-skills100MIT
kumaran-is/claude-code-onboarding100MIT
calesthio/OpenMontage95AGPL-3.0
LiHongwei-cn/lihongwei-cn95MIT
miaoge-ge/coding-agent-skills95MIT

Database snapshot: 13.11.2026 · package version 9f624fd23870 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100threejs-scenes
    three.js Scene graph root object, linear Fog and exponential FogExp2, Scene.background for solid colors or textures, and high-level environment background concepts that tie to PMREM and loaders in other skills. Use when configuring world container, atmospheric fog, or…
  • 100threejs-environment-color-qa
    Use for Three.js HDR environments, PMREM, exposure, tone mapping and color QA; not individual PBR surface design.
  • 100threejs-loaders
    three.js asset I/O using LoadingManager, Cache, FileLoader, image and texture loaders, GLTFLoader with DRACOLoader and KTX2Loader, and common format loaders under Addons; symmetric exporters such as GLTFExporter and texture/buffer exporters. Use when loading or exporting models,…
  • 100threejs-materials
    Three.js materials - PBR, basic, phong, shader materials, material properties. Use when styling meshes, working with textures, creating custom shaders, or optimizing material performance.
  • 100threejs-pbr-materials
    Use for Three.js PBR materials, metalness, roughness, transmission and texture role debugging; not light placement.
  • 100threejs-syntax-materials
    Use when choosing or configuring materials, loading textures, or setting up PBR workflows in Three.js. Prevents the common mistake of wrong color space on textures, forgetting material.dispose(), or not calling material.needsUpdate after changes. Covers all 15+ material types,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.