H16: The open sea floor reads as fully deep, so the world's edge doesn't show
From the lobby's view a pale square showed round the island: the terrain grid's edge. The floor inside is 12.4 m down, but the shader's depth curve only reached about 90% deep there, its view-space depth estimate read 7 to 11 m from the air, and the floor showed through at up to 4% opacity. The shader now takes the larger of the true vertical depth (from the world-space ray) and the old estimate, which shallows at a grazing angle still use; normalises the curve so water WaterView.OPEN_DEPTH (9 m, three quarters of the sea floor's depth) deep is fully SEA_DEEP; and makes fully deep water opaque. Re-rendered match_lobby in Forward+ and Compatibility (no square), and sea_tide_0/3, sea_shore_calm, water_shore, poi_dock and client_basin (shallows still read as shallow). Closes #85 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -89,7 +89,10 @@ or `src/app`, and on any palette colour this table doesn't list. Values are sRGB
|
||||
|
||||
The terrain shader's sand, marsh, grass, rock and summit colours are shader uniforms
|
||||
and follow the same rules. The sea shader's colours are set from the `SEA_` entries
|
||||
above by `WaterView`.
|
||||
above by `WaterView`. Water goes from `SEA_SHALLOW` to `SEA_DEEP` with its depth and
|
||||
is fully `SEA_DEEP` and opaque by `WaterView.OPEN_DEPTH` (9 m), shallower than the open
|
||||
sea floor, so from the air the sea round the island and past the world's edge is one
|
||||
colour (H16).
|
||||
|
||||
## Weather and light (A6)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user