only generate interior cloud faces when inside clouds #53

Closed
rdh wants to merge 1 commits from rdh/celeritas:cloud-fixes into stonecutter
pull from: rdh/celeritas:cloud-fixes
Showing only changes of commit 44e242fb58 - Show all commits
@@ -321,7 +321,7 @@ public final class CloudRenderer {
}
// Seen from inside the clouds
if (Math.abs(x) <= 1 && Math.abs(z) <= 1) {
if (cameraPosition == CameraPosition.INSIDE_CLOUDS && Math.abs(x) <= 1 && Math.abs(z) <= 1) {
for (int direction = DIRECTION_DOWN; direction <= DIRECTION_EAST; direction++) {
this.addFace(x, z, direction, FLAG_INSIDE_FACE);
}