بنقرة واحدة
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).