mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
Fix shadow colour broken from a few dev builds ago (Thanks fam0r)
This commit is contained in:
parent
64c6f78360
commit
948167cd7c
@ -189,7 +189,8 @@ namespace ClassicalSharp.Map {
|
|||||||
public void SetSunlight(FastColour col) {
|
public void SetSunlight(FastColour col) {
|
||||||
if (col == Sunlight) return;
|
if (col == Sunlight) return;
|
||||||
|
|
||||||
FastColour.GetShaded(Sunlight, out SunXSide,
|
Sunlight = col;
|
||||||
|
FastColour.GetShaded(col, out SunXSide,
|
||||||
out SunZSide, out SunYBottom);
|
out SunZSide, out SunYBottom);
|
||||||
Sun = Sunlight.Pack();
|
Sun = Sunlight.Pack();
|
||||||
game.WorldEvents.RaiseEnvVariableChanged(EnvVar.SunlightColour);
|
game.WorldEvents.RaiseEnvVariableChanged(EnvVar.SunlightColour);
|
||||||
@ -200,7 +201,8 @@ namespace ClassicalSharp.Map {
|
|||||||
public void SetShadowlight(FastColour col) {
|
public void SetShadowlight(FastColour col) {
|
||||||
if (col == Shadowlight) return;
|
if (col == Shadowlight) return;
|
||||||
|
|
||||||
FastColour.GetShaded(Shadowlight, out ShadowXSide,
|
Shadowlight = col;
|
||||||
|
FastColour.GetShaded(col, out ShadowXSide,
|
||||||
out ShadowZSide, out ShadowYBottom);
|
out ShadowZSide, out ShadowYBottom);
|
||||||
Shadow = Shadowlight.Pack();
|
Shadow = Shadowlight.Pack();
|
||||||
game.WorldEvents.RaiseEnvVariableChanged(EnvVar.ShadowlightColour);
|
game.WorldEvents.RaiseEnvVariableChanged(EnvVar.ShadowlightColour);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user