threejs-textures
>-
>-
ALWAYS use this skill when the user mentions:
texture.wrapS / wrapT, minFilter, magFilter, generateMipmaps, anisotropycolorSpace / correct handling of sRGB vs linear data mapsDataTexture, CubeTexture, compressed GPU formats, video/canvas driven texturesPMREMGenerator from environment maps for IBLIMPORTANT: textures vs loaders
| Step | Skill |
|------|--------|
| Decode file / HTTP | threejs-loaders |
| Configure GPU Texture | threejs-textures |
Trigger phrases include:
colorSpace appropriately; normal/roughness maps are non-color data.PMREMGenerator per docs; assign result to scene/env/intensity paths as required.VideoTexture / CanvasTexture.dispose() textures when replacing to free GPU memory.See examples/workflow-pmrem-env.md.
| 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 |
Texture classes and PMREMGenerator are documented under Textures and PMREMGenerator in three.js docs. Compressed and KTX2 paths often depend on threejs-loaders for transcoder setup before this skill applies.
When answering under this skill, prefer responses that:
Texture, DataTexture, CubeTexture, or PMREMGenerator as appropriate.colorSpace / filtering to threejs-renderers output and threejs-materials maps.dispose() when replacing env maps or large atlases.English: texture, cubemap, pmrem, mipmap, colorspace, compressed texture, data texture, three.js
中文: 纹理、立方体贴图、PMREM、mipmap、色彩空间、压缩纹理、three.js
确保开发环境已安装必要的依赖和工具。
根据项目需求进行基础配置。
按照示例代码实现核心功能。
运行测试确保功能正常。
完成开发后进行部署和监控。