Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dabbf80

Browse files
committedMay 7, 2023
implementation of eye() for AR
1 parent ef45677 commit dabbf80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎mode/libraries/ar/src/processing/ar/ARGraphics.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ protected PGL createPGL(PGraphicsOpenGL pGraphicsOpenGL) {
120120
}
121121

122122

123+
@Override
124+
public void eye() {
125+
super.ortho(0, width, -height, 0, -1, +1);
126+
127+
eyeDist = 1;
128+
resetMatrix();
129+
}
130+
123131
@Override
124132
public void beginDraw() {
125133
super.beginDraw();

0 commit comments

Comments
 (0)
Please sign in to comment.