Skip to content

Commit

Permalink
add antialias
Browse files Browse the repository at this point in the history
  • Loading branch information
acyanbird committed Dec 28, 2023
1 parent cd52172 commit 3524d59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions day.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let aspect = window.innerWidth/window.innerHeight;
function main() {

canvas = document.getElementById( "gl-canvas" );
renderer = new THREE.WebGLRenderer({canvas});
renderer = new THREE.WebGLRenderer({canvas, antialias: true});

camera = createCamera(3);
cameraUpper = createCamera(5);
Expand Down Expand Up @@ -332,7 +332,6 @@ function createTorus(color, z, tube){
let material = new THREE.MeshPhongMaterial( {color: color} );
let torus = new THREE.Mesh( geometry, material );
torus.castShadow = true;
torus.receiveShadow = true;
torus.position.set(0, 0, z)
scene.add( torus );
return torus;
Expand Down
2 changes: 1 addition & 1 deletion night.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let height = window.innerHeight;
let aspect = window.innerWidth/window.innerHeight;
function main() {
canvas = document.getElementById( "gl-canvas" );
renderer = new THREE.WebGLRenderer({canvas});
renderer = new THREE.WebGLRenderer({canvas, antialias: true});

camera = createCamera(3);
cameraUpper = createCamera(5);
Expand Down

0 comments on commit 3524d59

Please sign in to comment.