Why Your Procedural Planets Night Side Is Still Lit — UE5 Terrain, Foliage & Clouds @CodeLikeMe
Why Your Procedural Planets Night Side Is Still Lit — UE5 Terrain, Foliage & Clouds  @CodeLikeMe
Uploaded July 2026 | Updated September 2026, 2 weeks ago
My procedural UE5 planet looked great — until I flew to the night side and found glowing white clouds, a gold speckle crawling across the dark terrain, and an exposure that washed the whole frame out. This video is the debugging story and the fix: correct day/night lighting on a planet you can see whole from orbit.

────────────────────────────────────────
🪐 GET PLANETGEN
────────────────────────────────────────
► PlanetGen on Fab: com.epicgames.launcher://ue/Fab/product/96c36654-f244-4c75-a527-cfaaab2d5ac4
► Free Playable Demo + Project (Patreon): patreon.com/CodeLikeMe/posts/164408672

A planet breaks the assumptions every local scene relies on — you see the lit and the shadowed hemisphere at the same time. I walk through three separate causes and their fixes:

• Clouds — UE's Volumetric Cloud shares ONE sun-transmittance value across the whole layer, so the night side inherits the lit side's light. Fix: Use Per Sample Atmospheric Light Transmittance.

• Terrain & foliage — a directional light isn't occluded by the planet's own body (cascaded shadow maps can't span a 50 km world), so the sun lights sun-facing slopes and foliage on the night side. Fix: a shader-space day/night terminator — dot(up, sunDirection) from the macro sphere normal, driven by a Material Parameter Collection (PlanetCenter + SunDirection), multiplied into BaseColor AND Specular.

• Exposure — auto-exposure re-brightens the dark hemisphere. Fix: a fixed exposure for the from-space view.

Also covered: why shadows can't fix this, the subtraction-order / PlanetCenter-vs-ObjectPosition gotchas, only updating the parameter collection when values actually change (a static sun writes once), and how it behaves across many planets.

The lesson that generalises: when the engine's occlusion can't reach your scale, answer the lighting question analytically in the material instead of fighting a shadow system.


#UnrealEngine #UE5 #GameDev #IndieDev #ProceduralGeneration #PlanetGeneration #UE5Lighting #VolumetricClouds
Why Your Procedural Planets Night Side Is Still Lit — UE5 Terrain, Foliage & CloudsPlanetGen — Procedural Spherical Terrain for UE5 - Free Playable DemoWhy More FPS Made My UE5 Game Feel WORSEUnreal Main Map - Select/Deselect Objective Markers - Unreal Engine 5 Action RPG #215Infinite Procedural Road Network with Bridges — UE5Unreal Engine Reactive Turn Based Combat Tutorial Series - Part 1How I Fake Atmospheres on Distant Planets in UE5 — Atmosphere LODRuntime Terrain Deformation in UE5 - WorldGen V1.4 - Infinite Procedural LandscapeUnreal Mini Map - Clamp Markers To Edge - Unreal Engine 5 Action RPG #203Unreal Marker System - Stay On The Edge of the Screen - Unreal Engine 5 Action RPG #197Dynamic Terrain LOD System- WorldGen V1.5 - Unreal Engine Infinite Procedural LandscapeUE5 Damage Numbers - Unreal Engine Reactive Turn Based Combat #59
CodeLikeMe |

Why Your Procedural Planet's Night Side Is Still Lit — UE5 Terrain, Foliage & Clouds

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER