Skip to content

Commit

Permalink
hi-dpi scaling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xDUDSSx committed May 24, 2024
1 parent ddaa866 commit e4a7419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/VolumeWorld.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default class VolumeWorld {

let rendererSize = new THREE.Vector2();
this.renderer.getSize(rendererSize);
rendererSize = rendererSize.multiplyScalar(this.renderer.getPixelRatio());

this.clearview = new Clearview(this.raymarcher, rendererSize, volumeBox, this.settings);

Expand Down

0 comments on commit e4a7419

Please sign in to comment.