Draw a real sky, horizon haze and sky ambient #79
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#48 Rain and snow
elsie/liuverse
Reference
elsie/liuverse#79
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The sky is an unlit sphere filled with the fog color
(
liuverse-render/src/renderer.rs), plus one unlit moon sphere. Daytime fog isswitched off entirely (
fog_on = !(frame.daytime || frame.rts)), and theprocedural sky and sun disc are in ARCHITECTURE.md's Dropped list. Ambient is one
flat color multiplied into every surface.
The result is the biggest single limit on the look: a flat blue backdrop, a hard
line where the baked ground ends, and roofs that shade exactly like the walls
under them.
What it needs:
skypipeline that shades the existing sky sphere (or a fullscreen triangleusing
view_proj_inv) from the view ray: zenith-to-horizon gradient, sun discwith a glow, stars at night.
fog_colorand the daytime haze.Keep haze on by day and only fade its strength; the current hard horizon exists
because fog is binary.
downward ones, replacing
G.ambientin the shared fragment. Near-free and itgives every roof, slab underside and facade readable form.
Do this before the sky is asked to do reflections (#91) or weather (#48).
Related: #7 is the broad lighting revamp this is the cheap half of. #39 and #64
are what night should look like once there is a sky to be dark. #48 would fall from it.
The sky is real now. The haze and the ambient are not.
The sky is its own pipeline: a zenith-to-horizon gradient under a procedural 360 degree cloud panorama that drifts with the view and fades into the fog color at the horizon (
9869e30; the panorama is painted at startup, so no bytes ship). The palette now blends with the day and night fade, so the sky fades with the light (#92).What is still missing is the rest of this issue:
Status check: unchanged. The sky pipeline (zenith gradient, drifting cloud panorama, horizon fading into
fog_color, day/night palette blend) holds, but the rest is still open: daytime fog is still switched off entirely, ambient is still one flat color scaled by the bakedaochannel, and there are no stars and no sun disc — the disc sits on ARCHITECTURE.md's dropped list.