threejs-materials · cesartevisual — скилл для Claude Code: материалы Three.js
Скилл threejs-materials для Claude Code настраивает материалы PBR, текстуры и прозрачность в Three.js. Включается при создании поверхностей и исправлении цвета в 3D-сцене.
MIT 668 установок ★ 26 обновлён 2026-09-10
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-codeЧто делает threejs-materials
Скилл помогает подобрать материал под нужный эффект, настроить текстурные карты и разобраться с цветом и прозрачностью. Он учитывает версии Three.js и устройство проекта: например, цветовые текстуры используют нужное цветовое пространство, а карты нормалей и шероховатости остаются данными, не цветом.
Для прозрачных поверхностей он разбирает сортировку, запись глубины, ориентацию граней и тени. Смешанная прозрачность даёт артефакты при пересечении поверхностей, и один renderOrder не всегда их исправляет. Скилл также подсказывает, когда после изменения материала нужно выставить material.needsUpdate, как разделять материалы и текстуры при клонировании и освобождать принадлежащие проекту ресурсы.
Какие задачи решает
- подобрать материал под нужное освещение и поверхность
- настроить цветовое пространство для текстур
- исправить артефакты прозрачности на пересекающихся поверхностях
- определить, когда материалу нужен
material.needsUpdate
Примеры запросов агенту
- Настрой материал PBR для металлической поверхности в Three.js.
- Исправь отображение текстуры шероховатости и проверь цветовое пространство.
- Разбери артефакты прозрачности на пересекающихся объектах.
Как установить threejs-materials
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-code2Вручную: положить файлы
~/.claude/skills/threejs-materials/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/threejs-materials/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a codex2Вручную: положить файлы
.agents/skills/threejs-materials/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a cursor2Вручную: положить файлы
.cursor/skills/threejs-materials/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install cesartevisual/threejs-skills skills/threejs-materials2Вручную: положить файлы
.github/skills/threejs-materials/SKILL.md1Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a gemini-cli2Командой платформы
gemini skills install https://github.com/cesartevisual/threejs-skills --path skills/threejs-materialsВручную: положить файлы
.devin/skills/threejs-materials/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о threejs-materials
Как установить threejs-materials в Claude Code?
Выполни npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-code. Файл скилла находится по пути ~/.claude/skills/threejs-materials/SKILL.md.
Что делает threejs-materials?
Скилл помогает настраивать материалы Three.js, PBR-освещение, текстуры, прозрачность и управление цветом с учётом версии библиотеки и архитектуры проекта.
Почему renderOrder не всегда исправляет прозрачность?
Смешанная прозрачность ограничена сортировкой, а пересекающиеся поверхности могут давать артефакты. Также нужно проверять запись глубины, ориентацию граней и поведение теней.
Исходный текст
SKILL.md · MIT
--- name: threejs-materials description: "Implement Three.js PBR materials, texture mapping, transparency, and color-management fixes." --- # Materials and Textures Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions. Identify whether the material needs unlit color, PBR lighting, or a specialized physical effect. Start with the least costly material that achieves the requested surface. Physical transmission, clearcoat, and other layers can increase rendering cost. Classify textures by meaning. Color textures such as base color and emissive use the appropriate color space; normal, roughness, metallic, AO, and other data maps remain non-color data. Preserve loader-assigned glTF settings unless evidence shows they are wrong. Match UV channels, wrapping, orientation, and sampler requirements to the installed revision. Reason in linear light and apply display conversion once. Trace renderer output, tone mapping, and postprocessing together before changing exposure to hide incorrect color configuration. Check a neutral material and reference lighting when matching product color. Choose opacity treatment deliberately: opaque, cutout/alpha test, hashed coverage where supported, or blended transparency. Blended transparency has sorting limitations; renderOrder cannot solve every intersecting-surface artifact. Evaluate depthWrite, face orientation, and shadow behavior on representative overlaps. Changing a uniform-like value usually differs from changing a shader-defining feature; set material.needsUpdate when required by that feature. Clone only the material that needs independent edits and keep shared textures shared. Dispose owned materials and textures separately. Verify under neutral and final lighting, at oblique viewing angles, with overlapping transparent surfaces, and at the intended mobile texture resolution. ## API reference Consult the [official documentation](https://threejs.org/docs/pages/Material.html) for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
© cesartevisual · MIT · cesartevisual/threejs-skills
Похожие скиллы
Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →Сначала — threejs-materials от других авторов.