extending light draw size so that 'lagging-behind' update won't exhibit 'camera seam'

This commit is contained in:
minjaesong
2021-08-15 00:29:16 +09:00
parent 3d5bb55514
commit deb2dcf28b
2 changed files with 8 additions and 21 deletions

View File

@@ -752,6 +752,6 @@ object IngameRenderer : Disposable {
val xrem = -(WorldCamera.x.toFloat() fmod TILE_SIZEF) - (xoff * TILE_SIZEF)
val yrem = -(WorldCamera.y.toFloat() fmod TILE_SIZEF) - (yoff * TILE_SIZEF)
return xrem to yrem
return (xrem - LightmapRenderer.LIGHTMAP_OVERRENDER * TILE_SIZEF) to (yrem - LightmapRenderer.LIGHTMAP_OVERRENDER * TILE_SIZEF)
}
}