원클릭으로
sky-and-lighting
Covers SkyPlugin and IBLPlugin, explaining procedural sun cycles and dynamic environment map baking.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Covers SkyPlugin and IBLPlugin, explaining procedural sun cycles and dynamic environment map baking.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Architectural instructions for the standalone Cascaded Shadow Maps (CSM) Plugin. Explains how CSMShadowNode integrates with the lighting system and WebGPU nodes.
Outlines the DebugUIPlugin architecture and its schema-driven design for safe settings injection.
Explains how GrassPlugin maps InstancedMesh pools to QuadTreeLOD chunks, including TSL wind animations and exclusion maps.
Documents PlayerControllerPlugin and InputPlugin, detailing how movement interacts with the procedural terrain.
Explains how PostProcessPlugin intercepts the Three.js pipeline for WebGPU-compatible Bloom and Color Grading.
Details how WaterPlugin generates dynamic, depth-based shoreline foam and TSL normal map blending.
| name | sky-and-lighting |
| description | Covers SkyPlugin and IBLPlugin, explaining procedural sun cycles and dynamic environment map baking. |
The atmospheric rendering and global illumination are handled cooperatively by two plugins: SkyPlugin.ts and IBLPlugin.ts.
The SkyPlugin implements a procedural atmospheric scattering model.
THREE.DirectionalLight (the primary sun) and uses spherical coordinates (phi, theta) to calculate its position.Sky shader (often imported from Three.js examples or custom TSL) to calculate Rayleigh and Mie scattering based on the sun's position.update() loop parameter increments the sun's elevation, dynamically changing the sky from midday blue to sunset orange, and eventually into a star-lit night sky.The IBLPlugin (Image-Based Lighting) ensures that PBR materials correctly reflect the procedural sky.
IBLPlugin uses a PMREMGenerator (Prefiltered Mipmap Radiance Environment Map).IBLPlugin triggers a re-bake. It renders the current SkyPlugin output into a specialized cubemap and filters it for roughness mipmaps.scene.environment and scene.background, providing realistic ambient light and reflections for water, grass, and terrain.IBLPlugin requires the SkyPlugin to be fully initialized and updated before baking.DebugUIPlugin.ts (e.g., sun elevation, rayleigh scattering amounts).