From b5cc7ebec2a5c101260ce1d204e937966de33b05 Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Fri, 17 Feb 2023 23:48:45 +0300 Subject: [PATCH] Respect device pixel ratio. Dramatic clarity increase. --- index.html | 16 ---------------- src/Mockup.vue | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 index.html diff --git a/index.html b/index.html deleted file mode 100644 index 47eb886..0000000 --- a/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - vue-three-d-mockup - - - -
- - - diff --git a/src/Mockup.vue b/src/Mockup.vue index d8cfc60..0c1c338 100644 --- a/src/Mockup.vue +++ b/src/Mockup.vue @@ -167,6 +167,7 @@ export default { }; renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }); + renderer.setPixelRatio(window.devicePixelRatio) renderer.setSize(container.value.clientWidth, container.value.clientHeight); environmentInit();