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 ClimateColorInfointerp(ClimateColorInfo source, ClimateColorInfo target, float t, ClimateColorInfo resultColorInfo) voidload(DataInputStream input, int worldVersion) voidread(ByteBuffer input) voidsave(DataOutputStream output) voidscale(float val) voidsetExterior(float r, float g, float b, float a) voidsetExterior(Color other) voidsetInterior(float r, float g, float b, float a) voidsetInterior(Color other) voidsetTo(ClimateColorInfo other) voidwrite(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()
-