Fog render fix
This commit is contained in:
parent
72e14a5e53
commit
cc1df4a290
2 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,7 @@ yarn_mappings=6
|
||||||
loader_version=0.11.3
|
loader_version=0.11.3
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.1.24
|
mod_version = 0.1.25
|
||||||
maven_group = ru.bclib
|
maven_group = ru.bclib
|
||||||
archives_base_name = bclib
|
archives_base_name = bclib
|
||||||
|
|
||||||
|
|
|
@ -100,8 +100,7 @@ public class BackgroundRendererMixin {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static float bcl_getFogDensityI(Level level, int x, int y, int z) {
|
private static float bcl_getFogDensityI(Level level, int x, int y, int z) {
|
||||||
BCL_MUT_POS.set(x, y, z);
|
Biome biome = level.getBiome(BCL_MUT_POS.set(x, y, z));
|
||||||
Biome biome = level.getBiome(BCL_MUT_POS);
|
|
||||||
BCLBiome renderBiome = BiomeAPI.getRenderBiome(biome);
|
BCLBiome renderBiome = BiomeAPI.getRenderBiome(biome);
|
||||||
return renderBiome.getFogDensity();
|
return renderBiome.getFogDensity();
|
||||||
}
|
}
|
||||||
|
@ -134,6 +133,6 @@ public class BackgroundRendererMixin {
|
||||||
a = Mth.lerp(dy, a, b);
|
a = Mth.lerp(dy, a, b);
|
||||||
b = Mth.lerp(dy, c, d);
|
b = Mth.lerp(dy, c, d);
|
||||||
|
|
||||||
return Mth.lerp(dz, c, d);
|
return Mth.lerp(dz, a, b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue