mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Enable pixel ratio
This commit is contained in:
parent
b45870a7f9
commit
b77f8f21c8
@ -135,7 +135,7 @@ class OutlineModelViewer extends HTMLElement {
|
||||
alpha: true,
|
||||
});
|
||||
|
||||
// renderer.setPixelRatio( window.devicePixelRatio );
|
||||
renderer.setPixelRatio(window.devicePixelRatio);
|
||||
renderer.setSize(canvas_rect.width, canvas_rect.height, false);
|
||||
|
||||
const light = new THREE.DirectionalLight(0xffffff, 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user