skills/threejs-skills/threejs-textures/SKILL.md
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.
npx skillsauth add partme-ai/full-stack-skills threejs-texturesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.