MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getSkyColor

Method getSkyColor

src/main/java/net/optifine/CustomColors.java:1183–1207  ·  view source on GitHub ↗
(Vec3 skyColor3d, IBlockAccess blockAccess, double x, double y, double z)

Source from the content-addressed store, hash-verified

1181 }
1182
1183 public static Vec3 getSkyColor(Vec3 skyColor3d, IBlockAccess blockAccess, double x, double y, double z)
1184 {
1185 if (skyColors == null)
1186 {
1187 return skyColor3d;
1188 }
1189 else
1190 {
1191 int i = skyColors.getColorSmooth(blockAccess, x, y, z, 3);
1192 int j = i >> 16 & 255;
1193 int k = i >> 8 & 255;
1194 int l = i & 255;
1195 float f = (float)j / 255.0F;
1196 float f1 = (float)k / 255.0F;
1197 float f2 = (float)l / 255.0F;
1198 float f3 = (float)skyColor3d.xCoord / 0.5F;
1199 float f4 = (float)skyColor3d.yCoord / 0.66275F;
1200 float f5 = (float)skyColor3d.zCoord;
1201 f = f * f3;
1202 f1 = f1 * f4;
1203 f2 = f2 * f5;
1204 Vec3 vec3 = skyColorFader.getColor((double)f, (double)f1, (double)f2);
1205 return vec3;
1206 }
1207 }
1208
1209 private static Vec3 getFogColor(Vec3 fogColor3d, IBlockAccess blockAccess, double x, double y, double z)
1210 {

Callers 3

getWorldSkyColorMethod · 0.95
renderSkyMethod · 0.95
beginRenderMethod · 0.45

Calls 2

getColorSmoothMethod · 0.80
getColorMethod · 0.65

Tested by

no test coverage detected