mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-10 16:01:50 -04:00
fix sky color and block color when fog color is set
This commit is contained in:
parent
51993e1646
commit
3fada12014
@ -31,7 +31,7 @@ class FogManager(
|
|||||||
private val player = context.connection.player
|
private val player = context.connection.player
|
||||||
|
|
||||||
private var interpolation = FogInterpolationStart()
|
private var interpolation = FogInterpolationStart()
|
||||||
private val state = FogState()
|
val state = FogState()
|
||||||
private var options: FogOptions? = null
|
private var options: FogOptions? = null
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Minosoft
|
* Minosoft
|
||||||
* Copyright (C) 2020-2023 Moritz Zwerger
|
* Copyright (C) 2020-2024 Moritz Zwerger
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
@ -202,6 +202,7 @@ class SkyboxColor(
|
|||||||
|
|
||||||
|
|
||||||
fun calculate(): RGBColor? {
|
fun calculate(): RGBColor? {
|
||||||
|
sky.context.camera.fogManager.state.color?.let { return it }
|
||||||
val properties = sky.effects
|
val properties = sky.effects
|
||||||
val time = sky.time
|
val time = sky.time
|
||||||
if (properties.fixedTexture != null) {
|
if (properties.fixedTexture != null) {
|
||||||
|
@ -25,6 +25,6 @@ out vec4 foutColor;
|
|||||||
#include "minosoft:animation"
|
#include "minosoft:animation"
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
applyTexel();
|
|
||||||
applyTint();
|
applyTint();
|
||||||
|
applyTexel();
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ out vec4 foutColor;
|
|||||||
#include "minosoft:animation"
|
#include "minosoft:animation"
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
applyTexel();
|
|
||||||
applyTint();
|
applyTint();
|
||||||
|
applyTexel();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user