Browse Source

Manual: Avoid usage of minimum pixel ratio. (#23489)

Michael Herzog 3 years ago
parent
commit
560e694c62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      manual/resources/threejs-lesson-utils.js

+ 2 - 2
manual/resources/threejs-lesson-utils.js

@@ -17,7 +17,7 @@ export const threejsLessonUtils = {
       powerPreference: 'low-power',
       ...options.threejsOptions,
     });
-    this.pixelRatio = Math.max(2, window.devicePixelRatio);
+    this.pixelRatio = window.devicePixelRatio;
 
     this.renderer = renderer;
     this.elemToRenderFuncMap = new Map();
@@ -272,4 +272,4 @@ export const threejsLessonUtils = {
   },
 };
 
-window.threejsLessonUtils = threejsLessonUtils;
+window.threejsLessonUtils = threejsLessonUtils;