Skip to content

Commit

Permalink
Template antialias
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsturges committed Nov 18, 2024
1 parent 368976d commit 5ac16ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/templates/minimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 5;
const renderer = new THREE.WebGLRenderer();
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

Expand Down
2 changes: 1 addition & 1 deletion examples/templates/orbit.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 5;

const renderer = new THREE.WebGLRenderer();
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setClearColor(0x000000);
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
Expand Down
2 changes: 1 addition & 1 deletion examples/templates/shader.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
);

// Create the renderer
const renderer = new THREE.WebGLRenderer();
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

Expand Down

0 comments on commit 5ac16ef

Please sign in to comment.