threejs-screen-space-ambient-occlusion

threejs-screen-space-ambient-occlusion is a skill for Codex from scottstts/Threejs-Awesome-Graphics-Agent-Skills. It costs 51 tokens per session (299 once invoked), scanned A, original, MIT.

A guide for adding screen-space ambient occlusion to Three.js, a JavaScript 3D graphics library. Ambient occlusion estimates where nearby surfaces block soft environmental light, adding contact shading.

In plain words
What is it for?
Use it to build horizon sampling, depth and normal reconstruction, bent normals, denoising, and application of ambient occlusion to indirect lighting.
Why use it?
It helps keep the effect physically consistent and avoid artifacts such as darkened direct light, blurred edges, and screen-space halos.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: $skill-name invocation.

Good fit Use it to build horizon sampling, depth and normal reconstruction, bent normals, denoising, and application of ambient occlusion to indirect lighting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scottstts/Threejs-Awesome-Graphics-Agent-Skills --skill threejs-screen-space-ambient-occlusion
Clone the repo
git clone --depth 1 https://github.com/scottstts/Threejs-Awesome-Graphics-Agent-Skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for threejs-screen-space-ambient-occlusion

README.md
[![agentmods](https://agentmods.dev/badge/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion/github.svg)](https://agentmods.dev/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion)
Your own site
<a href="https://agentmods.dev/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion"><img src="https://agentmods.dev/badge/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for threejs-screen-space-ambient-occlusion

Your own site · 80×15
<a href="https://agentmods.dev/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion"><img src="https://agentmods.dev/badge/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-screen-space-ambient-occlusion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00299
Opus 5 $0.00026 $0.00150
Sonnet 5 $0.00010 $0.00060
Haiku 4.5 $0.00005 $0.00030

Measured 12d ago against content hash 6a02c9b10d17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

threejs-screen-space-ambient-occlusion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/threejs-screen-space-ambient-occlusion/SKILL.md · 36 lines

What it actually says

Screen-Space Ambient Occlusion

AO estimates missing ambient visibility. It must modulate indirect lighting, not repaint all scene color with a dark multiply.

Workflow

  1. Verify linear depth and view-space normals.
  2. Reconstruct view position consistently.
  3. Sample horizon visibility in a controlled radius.
  4. Estimate AO and optional bent normal.
  5. Denoise with depth/normal-aware filters.
  6. Apply to indirect diffuse and environment response.

Read references/gtao-bent-normal-pipeline.md.

Failure conditions

  • direct light and emission are darkened;
  • radius is specified only in pixels;
  • foreground silhouettes cast thick screen-space halos;
  • depth discontinuities are blurred together;
  • AO remains strong at distances where its world radius is subpixel;
  • bent normals are treated as ordinary geometric normals;
  • the implementation claims temporal accumulation even though this path has none.

Routing boundary

This skill owns GTAO gathering, bent normals, denoising, and AO application. Use $threejs-image-pipeline only when its depth/normal buffers or pass order must be coordinated with other image-space systems.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 36 lines · 51 tokens per session scan A 6a02c9b10d17

Subscribe to this mod's changes

threejs-screen-space-ambient-occlusion is a skill published in the GitHub repository scottstts/Threejs-Awesome-Graphics-Agent-Skills (800 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 299 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

worker-visualizer

A real-time data/particle/simulation visualizer whose heavy compute runs in a Web Worker (off the main thread), optionally sharing memory with the UI via SharedArrayBuffer, and renders to a canvas at 60fps. Produced as a single self-contained index.html. Use when the brief asks for a "web worker", "simulation"…

nexu-io/open-design · 123 tokens

react-three-fiber

React Three Fiber 3D renderer for json-render. Use when working with @json-render/react-three-fiber, building 3D scenes from JSON specs, rendering meshes/lights/models/environments, or integrating Three.js with json-render catalogs.

vercel-labs/json-render · 54 tokens

vgpu

Build, debug, test, and optimize WebGPU projects using vgpu, its CLI, or @vgpu packages. Use for vgpu API questions, WGSL workflows, browser or Node rendering, integrations, testing, and performance work.

vercel-labs/vgpu · 51 tokens

matterjs

Use when implementing 2D physics interactions with Matter.js, including Engine/World setup, Render/Runner configuration, adding bodies and constraints, and scroll/interaction-friendly canvas scenes.

MengTo/Skills · 39 tokens

html-to-ugui

A pipeline for turning HTML interface prototypes into Unity UGUI Prefabs, which are reusable Unity interface objects. It uses browser-rendered layout data to preserve positions, images, text, controls, and device-adaptation intentions.

Alex-Rachel/TEngine · 150 tokens

threejs-game-director

Entrypoint for building, upgrading, and finishing Three.js browser games. Routes work across the sibling threejs- skills for gameplay, graphics, UI, 3D/image/audio asset generation, debugging, and release. Use for build-a-game, upgrade, polish, premium, AAA, high-fidelity, showcase, from-scratch, endless runner…

majidmanzarpour/threejs-game-skills · 86 tokens