mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
improve fog start distance
This commit is contained in:
parent
307ac014ec
commit
0cd5396421
@ -66,7 +66,7 @@ class FogManager(
|
||||
var fogStart = if (!renderWindow.connection.profiles.rendering.fog.enabled) {
|
||||
Float.MAX_VALUE
|
||||
} else {
|
||||
renderWindow.connection.world.view.viewDistance * ProtocolDefinition.SECTION_WIDTH_X - (ProtocolDefinition.SECTION_WIDTH_X / 2.0f) // could be improved? basically view distance in blocks and then the center of that chunk
|
||||
(renderWindow.connection.world.view.viewDistance - 2.0f) * ProtocolDefinition.SECTION_WIDTH_X // could be improved? basically view distance in blocks and then the center of that chunk
|
||||
}
|
||||
var fogEnd = fogStart + 15.0f
|
||||
var color: RGBColor? = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user