Skip to main content
skill CX Codex

threejs-materials · cesartevisual — Claude Code skill for Three.js materials

The threejs-materials Claude Code skill configures Three.js PBR materials, textures, transparency, and color handling. It activates when a scene needs a surface setup or a material-related color fix.

MIT 668 installs ★ 26 updated 2026-09-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-code
Open on GitHub

What threejs-materials does

The skill helps choose a material for the requested surface and set up its texture maps, lighting, and color behavior. It follows the project's installed Three.js version and structure. Color maps use the appropriate color space, while normal and roughness maps stay in data space.

For transparent surfaces, it examines sorting, depth writes, face orientation, and shadows. Blended transparency can produce artifacts where surfaces intersect, and renderOrder does not resolve every case. The guidance also covers when a material feature change requires material.needsUpdate, how to clone only the material being edited, and how to dispose of owned materials and textures separately.

What it helps with

  • choose a material for a target surface and lighting setup
  • set the correct color space for texture maps
  • diagnose artifacts on intersecting transparent surfaces
  • decide when a material change requires material.needsUpdate

Example prompts for the agent

  • Set up a PBR material for a metal surface in Three.js.
  • Fix the roughness texture mapping and check its color-space handling.
  • Diagnose transparency artifacts where two objects intersect.

How to install threejs-materials

1Skills CLI (Vercel)

npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-code

2Manually: put the files in place

~/.claude/skills/threejs-materials/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/threejs-materials/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about threejs-materials

How do I install threejs-materials in Claude Code?

Run npx skills add cesartevisual/threejs-skills --skill threejs-materials -a claude-code. The skill file is located at ~/.claude/skills/threejs-materials/SKILL.md.

What does threejs-materials do?

It guides Three.js material setup, including PBR lighting, texture maps, transparency, and color management, while taking the project's installed version and structure into account.

Why can renderOrder fail to fix transparent surfaces?

Blended transparency has sorting limits, so intersecting surfaces can still show artifacts. The skill also considers depth writing, face orientation, and shadow behavior.

Source text

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

Similar skills

All skills for Game dev and 3D: Unity, Unreal, Godot, Blender →

threejs-materials by other authors comes first.

threejs-materials CloudAI-X Skill for Claude Code, Codex, Cursor and other platforms: choosing and configuring three.js materials — from basic to PBR, toon shading and point clouds. Runs when you need to style a mesh, tune blending or switch to WebGPU. CX Codex +1 21,100installs threejs-materials calesthio Reference for Three.js materials: PBR, basic, phong, custom shaders. Helps you pick the right material for a mesh, configure textures, and optimize rendering. CX Codex +1 1,200installs threejs-materials-lighting gamedev-skills The threejs-materials-lighting Claude Code skill configures materials, lighting, and shadows in three.js scenes. It kicks in when meshes render black or washed out, shadows misbehave, or EffectComposer darkens the image. CX Codex +1 11,100installs blender-materials RobLe3 blender-materials is a Claude Code skill that creates and assigns PBR materials in Blender via Principled BSDF for requests such as “make it look like copper” or “matte finish”. CX Codex +1 3,100installs r3f-materials EnzeD r3f-materials — a Claude Code skill that picks React Three Fiber materials for a surface and flags the cheaper options. Also runs in Codex, Cursor, Copilot, Gemini CLI and OpenCode. CX Codex +1 2,200installs ue-materials-rendering quodsoler ue-materials-rendering is a Claude Code skill for writing Unreal Engine 5.8 C++ materials and rendering code, including dynamic material instances, parameter collections, Render Targets, and shaders. CX Codex +1 1,600installs blockbench-pbr-materials jasonjgardner blockbench-pbr-materials — a skill for building and editing PBR materials in Blockbench through MCP: Bedrock texture_set.json import and export, normal maps, packed MER textures. CX Codex +1 970installs materials https://github.com/arjun988 The materials skill automates PBR and stylized material creation in Blender via MCP. It is triggered during look development, procedural shader design, and production asset preparation. CX Codex +1 708installs

From the same set24

The whole set →
threejs-testing threejs-testing — a skill for Claude Code defines visual QA and browser testing guidelines for Three.js scenes. Focuses on deterministic fixtures, GPU checks, and teardown lifecycle tests. CX Codex +1 681installs threejs-interaction This Claude Code skill guides Three.js interaction work, from object picking to orbit controls. It applies when an agent is asked to add dragging, selection, or synchronized HTML controls. CX Codex +1 681installs threejs-assets The threejs-assets Claude Code skill guides loading and managing glTF models, textures, and user-provided 3D files. It applies to asset validation, compression, caching, and cleanup in Three.js projects. CX Codex +1 676installs threejs-scene This skill for Claude Code configures Three.js scene hierarchies, camera framing, coordinate transforms, and renderer lifecycles. It enforces proper GPU cleanup and bounds calculations. CX Codex +1 671installs threejs-debugging The threejs-debugging Claude Code skill traces rendering faults in Three.js scenes. It kicks in for blank canvases, missing meshes, color issues, flicker, picking failures, or lost graphics context. CX Codex +1 658installs threejs-postprocessing This Claude Code skill adds or debugs Three.js postprocessing. It handles tasks involving bloom, antialiasing, ambient occlusion, depth effects, and render-target composition. CX Codex +1 651installs threejs-particles Claude Code skill for building Three.js particle systems, point clouds, and GPU simulations. CX Codex +1 648installs threejs-accessibility The threejs-accessibility Claude Code skill makes Three.js interactions usable with keyboards and assistive technology. It applies when adding accessibility to 3D scenes and controls. CX Codex +1 644installs

Project sponsors

Companies that keep this analytics open