mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder
This commit is contained in:
commit
a1df690ae4
2 changed files with 6 additions and 2 deletions
|
@ -326,9 +326,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
floor.color = floorcolor.WithAlpha(255).ToInt();
|
||||
floor.brightnessbelow = sector.Brightness;
|
||||
floor.colorbelow = lightcolor.WithAlpha(255);
|
||||
floor.d64color = ColorFloor;
|
||||
ceiling.color = ceilingcolor.WithAlpha(255).ToInt();
|
||||
ceiling.brightnessbelow = sector.Brightness;
|
||||
ceiling.colorbelow = lightcolor.WithAlpha(255);
|
||||
ceiling.d64color = ColorCeiling;
|
||||
|
||||
//mxd. Store a copy of initial settings
|
||||
floor.CopyProperties(floorbase);
|
||||
|
@ -623,8 +625,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
brightness = PixelColor.FromInt(mode.CalculateBrightness(lightceiling));
|
||||
else
|
||||
brightness = PixelColor.FromInt(mode.CalculateBrightness(src.brightnessbelow));
|
||||
|
||||
PixelColor color = PixelColor.Modulate(src.colorbelow, brightness);
|
||||
|
||||
PixelColor color = PixelColor.Modulate(target.d64color, PixelColor.Modulate(src.colorbelow, brightness));
|
||||
return color.WithAlpha(255).ToInt();
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// When this is 0, it takes the color from the sector above
|
||||
public int brightnessbelow;
|
||||
public PixelColor colorbelow;
|
||||
public PixelColor d64color; // own color of the plane
|
||||
public bool disablelighting; //mxd
|
||||
public bool restrictlighting; //mxd
|
||||
public bool resetlighting; //mxd
|
||||
|
@ -66,6 +67,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
target.color = this.color;
|
||||
target.brightnessbelow = this.brightnessbelow;
|
||||
target.colorbelow = this.colorbelow;
|
||||
target.d64color = this.d64color;
|
||||
target.affectedbyglow = this.affectedbyglow; //mxd
|
||||
target.disablelighting = this.disablelighting; //mxd
|
||||
target.restrictlighting = this.restrictlighting; //mxd
|
||||
|
|
Loading…
Reference in a new issue