Skip to content

Commit

Permalink
Set pixel ratio for high DPI screens
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Nov 2, 2024
1 parent 7d91f36 commit 354bd75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/blendjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export class BlendJS {
renderer.setSize(clientWidth, clientHeight);
// renderer.shadowMap.enabled = true;
// renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
// For high DPI screens
renderer.setPixelRatio(window.devicePixelRatio);

this.addRenderer("MainRenderer", renderer);
// Create a label renderer
Expand Down

0 comments on commit 354bd75

Please sign in to comment.