Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

3d-sky-rays

Skill by MengTo

3D Sky Rays is a skill that guides adding sun shafts and crepuscular rays to a Three.js or equivalent 3D scene. It is for developers building sunlight through trees or roofs and golden-hour architectural scenes.

  • Score 92
  • 9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install 3d-sky-rays

Built from the published package, never by AI.

git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Skills/agent-skills/3d/3d-sky-rays ~/.claude/skills/3d-sky-rays

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install 3d-sky-rays in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

3D Sky Rays is an agent skill that guides adding sun shafts and crepuscular rays to a Three.js or equivalent 3D scene. It covers scene occlusion, a projected sun position, controlled foreground spill, and scalable post-processing. The skill describes building a sky mask, marching samples from each pixel toward the projected sun, and compositing the result additively into linear scene color before tone mapping.

The skill also gives tuning and verification guidance. It suggests starting with a low sun and restrained intensity, using roughly 24 to 48 samples at half resolution, and checking roof and leaf silhouettes, camera orbit, portrait resize, and a static reduced-motion frame. It is aimed at developers who want light to appear to travel through gaps in the scene, using WebGL or WebGPU.

Written from the project's SKILL.md and checked against it.

What it can do

  • Occlusion-aware ray passBuilds a sky mask so roofs and foliage interrupt the shafts as the camera moves.
  • Sun projectionProjects a point along the sun direction from the camera and converts it to UV coordinates.
  • Radial ray accumulationDescribes a sample-marching loop with decaying weights and normalized accumulation.
  • Renderer integrationExplains how to fit the effect into an existing WebGL or WebGPU render and post-processing order.
  • Performance tuningCovers sample counts, half-resolution buffers, skipping zero-contribution passes, and cost measurement.
  • Verification checklistLists checks for silhouettes, sun turning away, interiors, resize, dusk, and reduced motion.

What you need

  • Three.js or an equivalent 3D scene
  • WebGL or WebGPU renderer

Try asking

  • Add god rays from the sun to my Three.js scene using a sky mask
  • Tune my sun shafts to use 24 to 48 samples at half resolution
  • Check my sun shaft pass for banding and reduced-motion stability

Good to know

  • The shader recipe describes a WebGL screen-space effect; WebGPU needs an equivalent node pipeline.
  • The effect is an artistic approximation, not depth-integrated volumetric scattering.
  • The reference alpha-mask convention depends on the full Seijaku render pipeline and should not be copied alone.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent-skills/3d/3d-sky-rays/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • REFERENCES.md293 B
  • SKILL.md5 KB
  • agents/openai.yaml210 B

Alternatives to 3d-sky-rays

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

3d-sky-rays: common questions

Does 3D Sky Rays work with WebGPU?

The source says to keep the existing WebGL or WebGPU backend. The shader recipe is for WebGL, and WebGPU needs the equivalent implemented in the project's node or render pipeline.

Is this real volumetric lighting?

No. The source describes it as an artistic screen-space approximation and not a substitute for depth-integrated volumetric scattering.

How many samples should I use?

The source suggests roughly 24 to 48 samples and a half-resolution ray buffer as a starting point, increasing only if visible banding appears.

How do I install 3d-sky-rays?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is 3d-sky-rays free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is 3d-sky-rays safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to 3d-sky-rays?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

3d-sky-rays Install

Add to stack

Loading.