Skill library

Agent skill Web motion

Three.js Textures

Use spatial graphics, scenes or materials to support a web experience.

  • 3D / WebGL
  • Three.js

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add CloudAI-X/threejs-skills --skill threejs-textures --agent claude-code --yes

Check this file in your project.claude/skills/threejs-textures/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add CloudAI-X/threejs-skills --skill threejs-textures

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an existing Three.js project and a local preview. Check the installed version and renderer first.

View operation manual

What this skill helps with

  • Use spatial graphics, scenes or materials to support a web experience.

Good for

  • 3D on the web
Inputs
Mesh, base-color map and one non-color data map
Exercise
Set color spaces correctly on a textured mesh
Acceptance
Compare the same viewport before and after. Verify diffuse color against the source asset and check that normals, roughness and UV alignment still look right.
Skill name
threejs-textures

Keep the change to a scene you can compare

Open-ended request

Make the whole 3D scene better.

Without a baseline and scoped inputs, you cannot tell which adjustment solved the problem.

A reproducible outcome

  1. Set color spaces correctly on a textured mesh
  2. Mesh, base-color map and one non-color data map

threejs-textures operation manual

Set color spaces correctly on a textured mesh

Mesh, base-color map and one non-color data map

  1. Check the current scene

    Check the current scene

    Prompt · Step 1
    Use CloudAI-X’s threejs-textures and read the installed SKILL.md. The scope is [Project and preview route]. List the texture inputs for [Material]. Identify which maps encode display color and which encode data such as normals or roughness. Record their current colorSpace values and UVs.
  2. Apply the documented technique

    Set color spaces correctly on a textured mesh

    Prompt · Step 2
    Use CloudAI-X’s threejs-textures and read the installed SKILL.md. The scope is [Project and preview route]. Set the base color texture’s colorSpace to SRGBColorSpace when the input is authored in sRGB. Keep the normal and roughness maps non-color data in the matching material slots. Make the change on one test material first and preserve the project’s output transform.
  3. Verify the rendered behavior

    Verify the rendered behavior

    • Compare the same viewport before and after. Verify diffuse color against the source asset and check that normals, roughness and UV alignment still look right.
    Prompt · Step 3
    Use CloudAI-X’s threejs-textures and read the installed SKILL.md. The scope is [Project and preview route]. Compare the same viewport before and after. Verify diffuse color against the source asset and check that normals, roughness and UV alignment still look right.

Look up a specific implementation problem

Ask the assistant to use the current preview and installed dependency as evidence.

What inputs are required?threejs-textures
Command or reference
SKILL.md
Examples
Mesh, base-color map and one non-color data map
How do I verify the real effect?Browser
Command or reference
Set color spaces correctly on a textured mesh
Examples
Compare the same viewport before and after. Verify diffuse color against the source asset and check that normals, roughness and UV alignment still look right.

Troubleshooting and FAQ

Why may an example fail in my project?

Confirm Three.js and its addons use matching versions and check the renderer required by that example.

How do I judge the result?

Compare the same viewport before and after. Verify diffuse color against the source asset and check that normals, roughness and UV alignment still look right.