Agent skill Web motion
3D Sky Rays
Use spatial graphics, scenes or materials to support a web experience.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-sky-rays --skill 3d-sky-rays --agent claude-code --yesCheck this file in your project.claude/skills/3d-sky-rays/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/3d/3d-sky-rays --skill 3d-sky-raysSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A 3D scene with separate sky and occluders, an existing renderer and post-processing pipeline, and access to a linear-color render target.
View operation manualWhat this skill helps with
- Use spatial graphics, scenes or materials to support a web experience.
Good for
- 3D on the web
- Publisher
- Meng To
- Control points
- sky mask · projected sun UV · sample count · ray-buffer scale
- Verification target
- Roof and cutout foliage interrupt shafts and a behind-camera sun produces no mirrored flash.
- Skill name
3d-sky-rays- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Apply a radial bloom to every bright object.
An unrelated emissive object can look like a new sun and unmasked shafts can cover solid geometry.
Use these steps
- Inspect inputs and rendering context
- Apply the documented technique
- Verify on the actual project route
Project walkthrough
Build a screen-space ray pass that responds to sky occlusion and the actual sun direction.
Build a screen-space ray pass that responds to sky occlusion and the actual sun direction.
Inspect inputs and rendering context
Inspect inputs and rendering context
Prompt · Step 1Use 3D Sky Rays on [grove scene]. Identify the renderer, final color conversion, sunlight direction, and two occluders: a roof edge and alpha-cutout foliage. Capture the current unmodified view.Apply the documented technique
Apply the documented technique
Prompt · Step 2Render a dedicated sky mask with open sky white and opaque surfaces black, matching foliage cutouts and deformation. Project the shared sun direction and reject a source behind the camera. Start with a half-resolution ray buffer and 24–48 normalized radial samples, compositing before final tone mapping.Verify on the actual project route
Roof and cutout foliage interrupt shafts and a behind-camera sun produces no mirrored flash.
- Roof and cutout foliage interrupt shafts and a behind-camera sun produces no mirrored flash.
Prompt · Step 3Frame the sun behind roof and leaves, then turn the view away and resize to portrait. Inspect the mask, halo edges, and unrelated emissive objects. Record ray-buffer dimensions and frame times with rays enabled and disabled.
Implementation lookup
Check these values in your existing project and its installed dependencies.
Find the documented controlsInputs
- Command or reference
sky mask · projected sun UV · sample count · ray-buffer scale- Examples
- Roof and cutout foliage interrupt shafts and a behind-camera sun produces no mirrored flash.
FAQ
What should I open after installing?
Open SKILL.md and REFERENCES.md in the installed skill directory. Apply the technique to your own scene or component and verify the specified result on that route.
How do I show the result is ready?
Roof and cutout foliage interrupt shafts and a behind-camera sun produces no mirrored flash.