Skip to content
SkillModel-led5,838 tokens in use

threejs-lighting

Gives an AI coding agent current three.js r186 knowledge of light types and units, shadow setup, HDR environment lighting and light probes.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-lighting
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-lighting costs

59tokens idle
5,838tokens 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-lighting covers how to light a three.js scene. It tabulates the light types with their shadow support, intensity units and notes, from ambient and hemisphere lights to directional, point, spot and rect area lights, and explains that point and spot intensity is measured in candela with inverse-square falloff.

It also covers shadow maps, fixing shadow acne, image-based lighting from HDR environments, light probes and the cost of lighting, with a WebGPU and TSL section.

What You Get

  • A quick start with a directional light, a floor, a box and shadows enabled in all three places
  • A table of light types showing shadow support, intensity units and notes
  • Guidance on candela-based intensity and falloff for point and spot lights
  • Shadow map tuning and acne fixes
  • HDR environment and light probe setup, plus a WebGPU and TSL section

Common Use Cases

  • Setting up a sun-like light with shadows
  • Fixing striped or missing shadows
  • Lighting a model with an HDR environment map
  • Choosing between point, spot and area lights
  • Keeping lighting cost low on mobile

What Makes It Unique

It states the intensity unit of every light type, which is a common source of scenes that look too dark or too bright after a version change. It names the newer SunLight addon with cascaded shadows. It is one of thirteen skills pinned to r186.

Under The Hood

The skill is a single SKILL.md of explanation, a table 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. It fetches nothing and writes no files itself.

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