3d Sky Background
Meng ToCommunityCreated by Meng To
- Skill
- Guidelines
- Design and creative
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides technical guidance for building sky backgrounds in 3D environments. It covers the integration of procedural skies and panoramas, ensuring that visual elements like the horizon, sun position, and atmospheric haze remain consistent with the scene's lighting and camera movement. The instructions emphasize maintaining coherence between the visible background, environment reflections, and direct sun lighting while addressing technical considerations like texture mapping, color space management, and performance optimization for environment updates.
What it does
- Defines methods for integrating procedural skies and panoramic textures into 3D scenes.
- Explains how to align sun direction with visible sky elements and environment lighting.
- Provides techniques for managing horizon haze and atmospheric transitions.
- Outlines strategies for handling color space, tone mapping, and texture wrapping.
- Offers guidance on optimizing environment lighting updates to manage rendering costs.
- Lists verification steps to ensure visual consistency during camera movement and time-of-day changes.
When to use it
- When developing architectural visualizations or outdoor 3D environments.
- When implementing day-to-night transitions or dynamic lighting changes.
- When setting up environment maps that must match directional sun shadows.
- When troubleshooting visual artifacts like seams, stretching, or mismatched lighting in a skybox.
Advantages
- Ensures visual consistency between the sky background and scene lighting.
- Provides a structured approach to handling both procedural and photographic sky assets.
- Helps prevent common rendering issues like texture seams and parallax errors.
- Includes performance-conscious strategies for updating environment lighting.
Usage examples
- “How do I ensure my skybox doesn't look disconnected from my scene's lighting?”
- The skill provides a framework for separating the sky background, reflection environment, and direct sun lighting, ensuring all three are aligned and use consistent color spaces.
- “What is the best way to handle a day-to-night transition in a 3D scene?”
- It suggests using continuous weights for colors, sun glow, and fog, while interpolating cached environments to avoid expensive per-frame rebuilds.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/mengto/3d-sky-background/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip 3d-sky-background.zip -d .agents/skills
Documentation by Meng To
3D Sky Background
Build a sky that surrounds the world, with a readable horizon and lighting that belongs to the same atmosphere.
Choose the representation
Inspect the project's renderer, camera range, color pipeline, environment lighting, and existing assets. Use an existing licensed panorama when its cloud composition matters, a procedural sky when changing sun position matters, or a restrained hybrid. Keep the project's rendering backend and version; do not add a second renderer for the sky.
Keep three responsibilities explicit: the visible sky background, the reflection/ambient environment, and direct sun lighting. A background photograph alone does not light PBR objects. A PMREM environment does not supply a shadow-casting directional sun. See the PMREM documentation.
Build a stable surrounding sky
Use the engine's background facility, a fullscreen direction shader, or an inward-facing dome with depth writes disabled and fog disabled. A dome must fit inside the camera's clipping range and follow camera translation; it should retain world orientation as the camera rotates.
Derive color from the normalized viewing direction. Blend a pale warm horizon through a muted middle band into a cooler zenith. Keep the lower hemisphere compatible with the ground haze rather than leaving an exposed hard edge.
Use a shared sun direction for the visible disk, glow, directional light, and any sky-ray pass. A broad halo and a small disk are separate terms; avoid a large white blob.
Add distant silhouettes only when the composition needs depth. Keep them low contrast, with a hue and value close to the horizon.
Map a panorama deliberately
A true equirectangular sky wraps a full 360° horizontally and 180° vertically. Establish a consistent world-axis convention, rotate the texture so its photographed sun matches the scene sun, and inspect both the seam and zenith.
A wide landscape photograph is a partial panorama. Record its angular coverage and horizon position; do not stretch it indiscriminately over a sphere. Seijaku aligns a partial sky image around the sun and mirrors its back coverage. That is a composition-specific shortcut; repeated cloud shapes may be visible during a full orbit. Prefer a complete panorama for unrestricted cameras.
When a custom shader wraps longitude, a discontinuity at the seam can cause bad texture derivatives and a blurred stripe. Prefer continuous sampling coordinates with texture wrapping; otherwise supply corrected gradients appropriate to the shader version. Test the seam while orbiting, not only in the initial view.
Keep color and lighting coherent
Annotate display-referred color images as sRGB and keep lighting calculations in linear space. Apply tone mapping and output conversion once at the intended final stage. Do not copy a fitted inverse tone-map function from another project: Seijaku's fit is coupled to its custom final shader and exposure. Decide explicitly whether a photograph should be tone-mapped with the scene or composited through a separate display-referred path.
Provide a procedural gradient immediately, then load the sky asset asynchronously and blend it in. An asset error should leave a usable sky. Fit texture resolution to the visible angular coverage and target display; do not gate first interaction on an oversized sky image.
Generate a prefiltered environment when needed and reuse it. During a day/night or season transition, interpolate cached environments where supported or refresh at meaningful state changes. Rebuilding PMREM every frame can dominate the scene cost. Dispose superseded environment render targets without disposing textures still in use.
Day, dusk, and night
Use continuous weights for horizon/zenith colors, sun glow, fog tint, exposure, moon, and stars. Fade stars after the sky darkens. Preserve enough ambient illumination to read materials at night. Animate cloud movement slowly, pause when hidden, and retain a designed still sky for reduced motion.
Verify
A full orbit and vertical look reveal no seam, stretched clouds, dome edge, or camera translation parallax.
Sun direction, shadows, rays, and reflections agree at the intended hero view.
Day/dusk/night changes avoid flashes, double tone mapping, and mismatched fog.
The sky remains useful before its image loads and when that image fails.
Mobile and 2× rendering preserve the horizon and avoid unexpected environment rebuilds.
Read REFERENCES.md for source inspection and official APIs. Seijaku's relevant functions are makeSky, makeHills, makeStars, and its environment update path.
Files
- ATTRIBUTION.mdAdded by AutoGineer848 B
- LICENSELicence file added by AutoGineer1.0 KiB
- REFERENCES.md387 B
- SKILL.md4.9 KiB
- agents/openai.yaml228 B
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "3d-sky-background", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 5ea1661a0e05d82b054553daaa6baf6d0233c33c
Created by: Meng To (https://github.com/MengTo)
Publisher: Meng To (https://github.com/MengTo)
Licence: MIT License (https://github.com/MengTo/Skills/blob/5ea1661a0e05d82b054553daaa6baf6d0233c33c/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Meng To
- Publisher
- Meng To (Community)
- Source
- MengTo/Skills · agent-skills/3d/3d-sky-background · commit 5ea1661
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Meng To.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download 3d-sky-background.zip