From f1ec2a1af4557338a42ca166564893885b3d3997 Mon Sep 17 00:00:00 2001 From: "hika, maeng" Date: Fri, 8 Jun 2018 01:09:06 +0900 Subject: [PATCH] set pixelRatio to device --- web-vr/hello-world/demo/demo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-vr/hello-world/demo/demo.js b/web-vr/hello-world/demo/demo.js index 538bc587fb..136bfb12f9 100644 --- a/web-vr/hello-world/demo/demo.js +++ b/web-vr/hello-world/demo/demo.js @@ -75,7 +75,7 @@ class Demo { this._aspect = this._width / this._height; this._renderer.setSize(this._width, this._height); - + this._renderer.setPixelRatio(window.devicePixelRatio); if (!this._camera) { return; } @@ -138,4 +138,4 @@ class Demo { this._scene.add(this._box); this._scene.add(room); } -} \ No newline at end of file +}