threejs-textures
Skill by CloudAI-X
Teaches an AI assistant how to use textures in three.js, including image loading, color spaces, UV transforms, HDR and KTX2 files, and render targets. Aimed at developers building WebGL or WebGPU scenes.
Install threejs-textures
Built from the published package, never by AI.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-skills/skills/threejs-textures ~/.claude/skills/threejs-texturesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/CloudAI-X/threejs-skills /tmp/threejs-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/threejs-skills/skills/threejs-textures ~/.gemini/antigravity-cli/skills/threejs-texturesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The threejs-textures skill gives an AI assistant guidance on textures in three.js, targeting r186. It covers loading images, color spaces, UV channels and transforms, and texture types from canvas and video to HDR and KTX2. It also covers render targets and texture memory. Examples use WebGLRenderer, and a section covers WebGPURenderer with TSL.
It is aimed at developers who put images on materials, work with UV coordinates, cubemaps or render targets, or optimize texture use in WebGL or WebGPU projects. The guidance includes code samples for each texture type. It explains tagging color maps as sRGB while leaving normal and roughness maps as data. It also covers environment maps, PMREMGenerator, and dynamic reflections with CubeCamera.
Written from the project's SKILL.md and checked against it.
What it can do
- Image loadingLoads textures with TextureLoader, including async loading and progress tracking with LoadingManager.
- Color spacesExplains which texture types should be tagged sRGB and which stay as scalar data.
- TransformsSets wrapping, repeat, offset, center and rotation on textures.
- Filtering and mipmapsCovers min and mag filters, mipmap generation and anisotropy.
- Texture typesCovers Texture, DataTexture, CanvasTexture, VideoTexture, VideoFrameTexture and HTMLTexture.
- KTX2 compressed texturesShows how to load Basis Universal KTX2 files with KTX2Loader.
- Environment mapsCovers cube maps, HDR equirectangular files, EXR and Ultra HDR loading, and scene environment controls.
- Render targetsCovers WebGLRenderTarget, depth textures, MSAA and multiple render targets.
- Dynamic reflectionsShows how to update reflections each frame with a CubeCamera.
- UV channelsExplains how texture.channel selects uv, uv1, uv2 or uv3 for a material texture.
What you need
- Three.js r186
- A WebGLRenderer or WebGPURenderer setup
Try asking
- Load a diffuse texture and set its color space to sRGB in three.js
- Set up a KTX2 compressed texture loader with detectSupport
- Create a render target and use its output as a material map
Good to know
- TextureLoader's onProgress parameter is unsupported and never fires.
- HTMLTexture stays empty where the browser lacks the HTML-in-Canvas API.
- Compressed KTX2 textures cannot be flipped or mipmapped at upload, and mipmaps must be embedded in the file.
- Equirectangular environments are converted to larger cube maps internally, which uses more memory.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-textures/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md22 KB
Alternatives to threejs-textures
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
threejs-textures: common questions
Does this skill work with WebGPU?
The examples use WebGLRenderer, and a section covers WebGPURenderer with TSL. The source says KTX2Loader detectSupport works with both renderers.
Which three.js version does it target?
The skill targets three.js r186.
Why does my color texture look too bright?
The source says color images must be tagged with SRGBColorSpace, or they render too bright and washed out.
How do I install threejs-textures?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-textures free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is threejs-textures safe to use?
It scores 82 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-textures?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
