clouds with just right depths

This commit is contained in:
minjaesong
2023-08-22 02:55:31 +09:00
parent 7dd520393c
commit da8d620766
9 changed files with 62 additions and 23 deletions

View File

@@ -47,7 +47,7 @@ class WeatherObjectCloud(private val texture: TextureRegion, private val flipW:
val y = posY + offsetY - texture.regionHeight * scale
val z = posZ // must be at least 1.0
val w = App.scr.halfwf
val h = App.scr.halfhf // 50% to the screen height, or 35%?
val h = App.scr.hf * 0.35f
val drawX = (x + w * (z-1)) / z
val drawY = (y + h * (z-1)) / z