threejs-textures
Skill9 starsChanged 2 months agoApache-2.0View on GitHub
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.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- codetesla51/skillstheir own version, first seen Sep 25, 2026
- ruloCode/hermes-ostheir own version, first seen Jul 9, 2026
- kumaran-is/claude-code-onboardingtheir own version, first seen May 25, 2026
- huangzida/skillstheir own version, first seen Apr 4, 2026
- ai4brands-design/claude-skillstheir own version, first seen Mar 22, 2026
Used with
Projects with it also use receiving-code-review, web-design-guidelines and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CloudflareSkillreceiving-code-review
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- calesthio/OpenMontage★ 63ksame name
- CloudAI-X/threejs-skills★ 3.5ksame name
- kumaran-is/claude-code-onboarding★ 36same name
- ruloCode/hermes-os★ 15same name
- ai4brands-design/claude-skills★ 2same name
- huangzida/skills★ 2same name
- codetesla51/skills★ 1same name
- patrickcohen/claude-skills-collection★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- threejs-animationSkill
- threejs-audioSkill
- threejs-cameraSkill
- threejs-controlsSkill
- threejs-dev-setupSkill
- threejs-geometriesSkill
- threejs-helpersSkill
- threejs-lightsSkill
- threejs-loadersSkill
- threejs-materialsSkill
- threejs-mathSkill
- threejs-node-tslSkill
- threejs-objectsSkill
- threejs-postprocessingSkill
- threejs-renderersSkill
- threejs-scenesSkill
- threejs-webxrSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
When answering under this skill, prefer responses that:
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to use this skill
ALWAYS use this skill when the user mentions:
texture.wrapS/wrapT,minFilter,magFilter,generateMipmaps,anisotropycolorSpace/ correct handling of sRGB vs linear data maps- Creating
DataTexture,CubeTexture, compressed GPU formats, video/canvas driven textures PMREMGeneratorfrom 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
- Classify texture dimensionality and format (2D, cube, depth, compressed, data).
- Color pipeline: set
colorSpaceappropriately; normal/roughness maps are non-color data. - Sampling: choose filters; enable mipmaps when minification occurs; consider max anisotropy.
- PMREM: feed env map through
PMREMGeneratorper docs; assign result to scene/env/intensity paths as required. - Video/canvas: understand update needs each frame for
VideoTexture/CanvasTexture. - Disposal:
dispose()textures when replacing to free GPU memory. - KTX2/Basis: transcoder wiring belongs in threejs-loaders before this step.
See 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 and PMREMGenerator in three.js 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:
- Link
Texture,DataTexture,CubeTexture, orPMREMGeneratoras appropriate. - Tie
colorSpace/ filtering to threejs-renderers output and threejs-materials maps. - Send Draco/KTX2 decoder wiring questions to threejs-loaders first.
- Emphasize
dispose()when replacing env maps or large atlases. - Mention 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

