提交 a392de66 编写于 作者: G Garrett Johnson

revert pixel ratio chane

上级 ac6861eb
...@@ -80,9 +80,10 @@ ...@@ -80,9 +80,10 @@
const width = window.innerWidth || 1; const width = window.innerWidth || 1;
const height = window.innerHeight || 1; const height = window.innerHeight || 1;
const aspect = width / height; const aspect = width / height;
const devicePixelRatio = window.devicePixelRatio || 1;
renderer = new THREE.WebGLRenderer(); renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( 1 ); // ensure pixel ratio is always 1 for performance reasons renderer.setPixelRatio( devicePixelRatio );
renderer.setSize( width, height ); renderer.setSize( width, height );
document.body.appendChild( renderer.domElement ); document.body.appendChild( renderer.domElement );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册