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

Commit 5df55a8

Browse files
committed
fixes (hopefully) mirroring issue
1 parent 37df716 commit 5df55a8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/Basic/Basic.pde

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void setup() {
4242
void pre() {
4343
// The dome projection is centered at (0, 0), so the mouse coordinates
4444
// need to be offset by (width/2, height/2)
45-
cubeX += ((mouseX - width * 0.5) - cubeX) * 0.2;
46-
cubeY += ((mouseY - height * 0.5) - cubeY) * 0.2;
45+
cubeX += ((mouseX - width * 0.5)*2 - cubeX) * 0.2;
46+
cubeY += ((mouseY - height * 0.5)*2 - cubeY) * 0.2;
4747
}
4848

4949
// Called five times per frame.

src/codeanticode/planetarium/Dome.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ private void initDomeQuad() {
324324
domeQuad.textureMode(NORMAL);
325325
domeQuad.noStroke();
326326
// TODO
327-
domeQuad.vertex(-width * 0.5f, -height * 0.5f, 0, 0, 0);
328-
domeQuad.vertex(width * 0.5f, -height * 0.5f, 0, 1, 0);
329-
domeQuad.vertex(width * 0.5f, height * 0.5f, 0, 1, 1);
330-
domeQuad.vertex(-width * 0.5f, height * 0.5f, 0, 0, 1);
327+
domeQuad.vertex(-width * 0.5f, -height * 0.5f, 0, 1, 1);
328+
domeQuad.vertex(width * 0.5f, -height * 0.5f, 0, 0, 1);
329+
domeQuad.vertex(width * 0.5f, height * 0.5f, 0, 0, 0);
330+
domeQuad.vertex(-width * 0.5f, height * 0.5f, 0, 1, 0);
331331
domeQuad.endShape();
332332
}
333333

0 commit comments

Comments
 (0)