Skip to content

Commit

Permalink
fog is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Cresythe authored Jan 4, 2024
1 parent 67c7724 commit aff8aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fogTesting.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

const scene = new THREE.Scene();
//for foreground fog
scene.fog = new THREE.Fog("white", 10, 15);
scene.fog = new THREE.Fog(0xff0000, 10, 15);
scene.fog = true;
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.set( -13, 0, 100);
Expand Down

0 comments on commit aff8aa1

Please sign in to comment.