(Vec3 fogColor3d, IBlockAccess blockAccess, double x, double y, double z)
| 1207 | } |
| 1208 | |
| 1209 | private static Vec3 getFogColor(Vec3 fogColor3d, IBlockAccess blockAccess, double x, double y, double z) |
| 1210 | { |
| 1211 | if (fogColors == null) |
| 1212 | { |
| 1213 | return fogColor3d; |
| 1214 | } |
| 1215 | else |
| 1216 | { |
| 1217 | int i = fogColors.getColorSmooth(blockAccess, x, y, z, 3); |
| 1218 | int j = i >> 16 & 255; |
| 1219 | int k = i >> 8 & 255; |
| 1220 | int l = i & 255; |
| 1221 | float f = (float)j / 255.0F; |
| 1222 | float f1 = (float)k / 255.0F; |
| 1223 | float f2 = (float)l / 255.0F; |
| 1224 | float f3 = (float)fogColor3d.xCoord / 0.753F; |
| 1225 | float f4 = (float)fogColor3d.yCoord / 0.8471F; |
| 1226 | float f5 = (float)fogColor3d.zCoord; |
| 1227 | f = f * f3; |
| 1228 | f1 = f1 * f4; |
| 1229 | f2 = f2 * f5; |
| 1230 | Vec3 vec3 = fogColorFader.getColor((double)f, (double)f1, (double)f2); |
| 1231 | return vec3; |
| 1232 | } |
| 1233 | } |
| 1234 | |
| 1235 | public static Vec3 getUnderwaterColor(IBlockAccess blockAccess, double x, double y, double z) |
| 1236 | { |
no test coverage detected