Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 60c4903

Browse files
committed
fixes cubemap z- camera orientation bug
1 parent b8ac329 commit 60c4903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codeanticode/planetarium/Dome.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private void beginFaceDraw(int face) {
394394
} else if (currentFace == PGL.TEXTURE_CUBE_MAP_POSITIVE_Z) {
395395
camera(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, -1.0f, 0.0f);
396396
} else if (currentFace == PGL.TEXTURE_CUBE_MAP_NEGATIVE_Z) {
397-
camera(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f);
397+
camera(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, -1.0f, 0.0f);
398398
}
399399

400400
scale(-1, 1, -1);

0 commit comments

Comments
 (0)