Skip to content

Commit

Permalink
clouds: maximum offset
Browse files Browse the repository at this point in the history
Bixilon committed Dec 15, 2023
1 parent 5cc1daa commit 5a816d1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -165,6 +165,9 @@ class CloudRenderer(
val over = (baseHeight - y)
if (over > 0.0f) {
yOffset = -(over / 15.0f).pow(2)
if (yOffset < -100.0f) {
yOffset = -100.0f
}
}
shader.yOffset = yOffset
}

0 comments on commit 5a816d1

Please sign in to comment.