Class ClimateColorInfo
java.lang.Object
zombie.iso.weather.ClimateColorInfo
TurboTuTone.
A pair of colors for global light interior and exterior, the alpha of the colors is blend intensity.
When outside the shader is used to apply global light, when inside a room its using a different method (using the weather mask) to do the coloring of outside parts.
This requires separate balancing of colors as using one and the same for both methods doesn't always look right.
-
Constructor Summary
ConstructorsConstructorDescriptionClimateColorInfo
(float r, float g, float b, float a) ClimateColorInfo
(float r, float g, float b, float a, float r2, float g2, float b2, float a2) -
Method Summary
Modifier and TypeMethodDescriptioninterp
(ClimateColorInfo to, float t, ClimateColorInfo result) static ClimateColorInfo
interp
(ClimateColorInfo source, ClimateColorInfo target, float t, ClimateColorInfo resultColorInfo) void
load
(DataInputStream input, int worldVersion) void
read
(ByteBuffer input) void
save
(DataOutputStream output) void
scale
(float val) void
setExterior
(float r, float g, float b, float a) void
setExterior
(Color other) void
setInterior
(float r, float g, float b, float a) void
setInterior
(Color other) void
setTo
(ClimateColorInfo other) void
write
(ByteBuffer output) static boolean
-
Constructor Details
-
ClimateColorInfo
public ClimateColorInfo() -
ClimateColorInfo
public ClimateColorInfo(float r, float g, float b, float a) -
ClimateColorInfo
public ClimateColorInfo(float r, float g, float b, float a, float r2, float g2, float b2, float a2)
-
-
Method Details
-
setInterior
-
setInterior
public void setInterior(float r, float g, float b, float a) -
getInterior
-
setExterior
-
setExterior
public void setExterior(float r, float g, float b, float a) -
getExterior
-
setTo
-
interp
-
scale
public void scale(float val) -
interp
public static ClimateColorInfo interp(ClimateColorInfo source, ClimateColorInfo target, float t, ClimateColorInfo resultColorInfo) -
write
-
read
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
writeColorInfoConfig
public static boolean writeColorInfoConfig()
-