Skip to content

Commit 399c687

Browse files
committed
fixed issue with ortho flipping on y axis
1 parent 73cd65d commit 399c687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assets/learn/basic3d/cameraExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function draw() {
2020

2121
if(cameraType === 'ortho') {
2222
camera(200,-200,200)
23-
ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);
23+
ortho(-width / 2, width / 2, -height / 2, height / 2, 0, 500);
2424
} else if(cameraType === 'perspective'){
2525
camera(200,-200,200)
2626
perspective(fovSlider.value)

0 commit comments

Comments
 (0)