The Cove's stream: a stream block whose water only runs downhill (spring to the bay), its own water ribbon, trout, on the map; scenery and landmarks keep clear
This commit is contained in:
@@ -163,6 +163,8 @@ static func render(w: Node3D) -> Image:
|
||||
|
||||
static func ground_colour(t: Node3D, x: float, z: float) -> Color:
|
||||
var h: float = t.sample_height(x, z)
|
||||
if t.near_stream(x, z, 0.3):
|
||||
return Color(0.32, 0.56, 0.66) # (the stream, a little wider than it is so it shows)
|
||||
var surface: float = t.water_level if t.inside_boundary(x, z, -2.0) else t.sea_level
|
||||
if h < surface:
|
||||
var deep := clampf((surface - h) / 6.0, 0.0, 1.0)
|
||||
|
||||
Reference in New Issue
Block a user