threejs-atmosphere-aer…
Implement physically motivated sky and aerial-perspective systems in Three.js. Use for planetary atmospheres, ground-to-space…
Author physically coherent Three.js lighting, HDRI fill, global illumination, and real-time reflections. Use for single-sun direction alignment, clear-sky sun-to-sky irradiance ratios, removing the HDRI second-sun, practical and emissive fixtures lighting surroundings, character
Claude Code
$ npx -y skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi --agent claude-code
Codex
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a codex -y
Cursor
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a cursor -y
Gemini CLI
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a gemini-cli -y
GitHub Copilot
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a github-copilot -y
OpenCode
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a opencode -y
Windsurf
$ npx skills add scottstts/threejs-awesome-graphics-agent-skills --skill threejs-lighting-and-gi -a windsurf -y
name: threejs-lighting-and-gi description: Author physically coherent Three.js lighting, HDRI fill, global illumination, and real-time reflections. Use for single-sun direction alignment, clear-sky sun-to-sky irradiance ratios, removing the HDRI second-sun, practical and emissive fixtures lighting surroundings, character lighting, GPU-baked irradiance probe grids (LightProbeGrid), planar and cube-probe reflections, and diagnosing flat or overcast scenes.
Establish coherent direct light, sky fill, occluded indirect bounce, and real reflections before tuning tone mapping or color grading. Contrast, warmth, and depth belong in the light transport first.
1. Define one authoritative sun/key direction in one place so visible disc, directional light, shadows, light patches, and sky glow agree from every angle. 2. Compute physical sun-to-sky irradiance ratios with [scripts/sun-sky.mjs](scripts/sun-sky.mjs) (`diffuse/direct ≈ 0.10–0.20` for clear sky) and calibrate `DirectionalLight.intensity` against `scene.environment` / `HemisphereLight`. 3. Prepare the HDRI as image-based fill only: remove its sun energy before prefiltering, align `scene.environmentRotation` to sun azimuth, and fix mismatched lower-hemisphere ground. 4. Validate direct + sky lighting in a neutral clay render (plus grey card `0.18` and white/mirror spheres) before adding surface textures or grade. 5. Add occluded indirect light — GPU-baked irradiance probes (`LightProbeGrid` or custom SH atlas) over reachable spaces — so recesses darken and colored bounce reaches soffits and alcoves. 6. Add practical fixtures and emissive-to-world lighting with inverse-square falloff and real-extent reflections. 7. Configure real reflections per surface class (planar mirror, cube/box-projected probes, or fallback-safe SSR) and verify them at full resolution and in motion.
Read [references/sun-sky-and-hdri-lighting.md](references/sun-sky-and-hdri-lighting.md) for clear-sky irradiance anchors, Three.js unit mapping, HDRI second-sun removal, flat/overcast lighting diagnosis, and orbit-safe stylized light deviations.
Read [references/irradiance-probes-and-reflections.md](references/irradiance-probes-and-reflections.md) for GPU-baked `LightProbeGrid` setup, probe cell sizing and leak prevention, SSGI trade-offs, planar/probe/SSR reflection ownership, and full-resolution diagnostics.
Read [references/practical-emissive-and-subject-lighting.md](references/practical-emissive-and-subject-lighting.md) for practical fixtures, static light baking, sub-pixel bulb energy conservation, emissive-to-world illumination, and subject/character key-fill-rim lighting.
Run `node scripts/sun-sky.mjs <elevationDeg> [sunIntensity]` (or `--self-test`) to derive clear-sky direct/diffuse ratios and Three.js sky-fill targets.
This skill owns direct lighting, sky/HDRI fill calibration, practical/emissive lighting, irradiance-probe GI, and reflections. Use `$threejs-shadow-systems` for shadow map coverage, cascades, clipmaps, bias, and caster update policies; `$threejs-screen-space-ambient-occlusion` for small-scale contact AO; `$threejs-atmosphere-aerial-perspective` for visible sky scattering and aerial haze; `$threejs-exposure-color-grading` for exposure, tone mapping, and LUT/grade; `$threejs-bloom` for HDR glare; and `$threejs-reference-reading` to decode lighting evidence from a visual reference.
Example gallery to visually inspect included examples This is a Three.js agent skills pack for producing awesome graphics.
Implement physically motivated sky and aerial-perspective systems in Three.js. Use for planetary atmospheres, ground-to-space…
Implement production bloom in advanced Three.js scenes. Use for HDR signal ordering, physically grounded veiling glare,…
Direct advanced Three.js camera systems and solve reference-matched lenses. Use for pinhole camera solving (FOV, pitch, roll, eye…
Build a measured exposure, tone-mapping, and color-grading path in Three.js. Use for deliberate AgX, ACES, and Neutral…
Build a deliberate final-image pipeline for advanced Three.js scenes. Use for depth, normal, albedo, and history ownership;…
Build silhouette-aware parallax occlusion mapping in Three.js WebGPU and TSL. Use for height-field ray marching, relief UVs,…
Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use…
Remove visible Gemini image watermarks from local image files by calling the project's CLI. Use when the user wants an agent to…
Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures,…
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference…