Skip to content

Commit 4f6c03b

Browse files
authored
Update InitCommon.js
1 parent 9bafbe0 commit 4f6c03b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

js/InitCommon.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ let oldPinchWidthX = 0;
5757
let oldPinchWidthY = 0;
5858
let pinchDeltaX = 0;
5959
let pinchDeltaY = 0;
60-
let fontAspect;
6160
let useGenericInput = true;
6261
let EPS_intersect;
6362
let textureLoader = new THREE.TextureLoader();
@@ -171,11 +170,6 @@ function onWindowResize(event)
171170
renderer.setPixelRatio(pixelRatio);
172171
renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);
173172

174-
fontAspect = (SCREEN_WIDTH / 175) * (SCREEN_HEIGHT / 200);
175-
if (fontAspect > 25) fontAspect = 25;
176-
if (fontAspect < 4) fontAspect = 4;
177-
fontAspect *= 2;
178-
179173
pathTracingUniforms.uResolution.value.x = context.drawingBufferWidth;
180174
pathTracingUniforms.uResolution.value.y = context.drawingBufferHeight;
181175

0 commit comments

Comments
 (0)