Skip to content

Commit 41a55b3

Browse files
committed
DrawingLotsOf3dText. Simplification
1 parent 429b0dd commit 41a55b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sketches/DrawingLotsOf3dText/src/Sketch.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ void Sketch::draw()
5252
.rotateX(CAMERA_ELEVATION * D2R);
5353

5454
Matrix panMatrix;
55-
panMatrix
56-
.translate(-pan)
57-
.inverse();
55+
panMatrix.translate(pan);
5856

5957
State()
6058
.setShaderMatrix<MVP>(panMatrix * camera.getViewProjectionMatrix())

0 commit comments

Comments
 (0)