mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-11 08:27:29 -04:00
clouds: maximum offset
This commit is contained in:
parent
5cc1daabd9
commit
5a816d1403
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user