Skip to content

Commit

Permalink
Update InitCommon.js
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlof committed Apr 12, 2024
1 parent 2f3ab14 commit eefd7c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions js/InitCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ let oldPinchWidthX = 0;
let oldPinchWidthY = 0;
let pinchDeltaX = 0;
let pinchDeltaY = 0;
let fontAspect;
let useGenericInput = true;
let EPS_intersect;
let textureLoader = new THREE.TextureLoader();
Expand Down Expand Up @@ -171,11 +170,6 @@ function onWindowResize(event)
renderer.setPixelRatio(pixelRatio);
renderer.setSize(SCREEN_WIDTH, SCREEN_HEIGHT);

fontAspect = (SCREEN_WIDTH / 175) * (SCREEN_HEIGHT / 200);
if (fontAspect > 25) fontAspect = 25;
if (fontAspect < 4) fontAspect = 4;
fontAspect *= 2;

pathTracingUniforms.uResolution.value.x = context.drawingBufferWidth;
pathTracingUniforms.uResolution.value.y = context.drawingBufferHeight;

Expand Down

0 comments on commit eefd7c8

Please sign in to comment.