Skip to content
SkillModel-led5,411 tokens in use

threejs-textures

Gives an AI coding agent current three.js r186 knowledge of loading textures, color spaces, UV channels, render targets and texture memory.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-textures
npx skills add cloudai-x/threejs-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing threejs-textures costs

68tokens idle
5,411tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter12/15
  • Structure17/25
  • Examples15/15
  • Output10/15
  • Size11/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

threejs-textures covers images on three.js materials. Its quick start loads a texture with TextureLoader and tags it as sRGB, since color images render too bright and washed out without that tag.

The skill explains which maps need sRGB and which scalar data maps keep no color space, how UV channels and transforms work, texture types from canvas to HDR and KTX2, render targets and texture memory.

What You Get

  • A quick start that loads and tags a color texture
  • A color space guide listing which maps need sRGB
  • Loading patterns with load and loadAsync, and progress through a LoadingManager
  • Coverage of UV channels, transforms, render targets and special texture types
  • Notes on texture memory

Common Use Cases

  • Fixing a texture that looks washed out
  • Mapping an image onto a mesh and adjusting its UVs
  • Drawing to a canvas and using it as a texture
  • Rendering a scene into a render target
  • Reducing texture memory

What Makes It Unique

It states the color space rule for each kind of map, which is the most common texture mistake. It also records that TextureLoader’s onProgress callback never fires and shows the LoadingManager route. It is one of thirteen skills pinned to r186.

Under The Hood

The skill is a single SKILL.md of explanation and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. The examples load image files from relative paths in the browser; the skill itself fetches nothing and writes no files.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers