Skip to content

Commit

Permalink
Remove fog (wasn't doing anything)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcoder committed Dec 30, 2024
1 parent c266c82 commit cefb729
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/webgl-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
Color,
ColorRepresentation,
Euler,
Fog,
Group,
Material,
MeshLambertMaterial,
Expand Down Expand Up @@ -176,9 +175,6 @@ export class WebGLPreview {
this.renderer.localClippingEnabled = true;
this.camera = new PerspectiveCamera(25, this.canvas.offsetWidth / this.canvas.offsetHeight, 10, 5000);
this.camera.position.fromArray(this.initialCameraPosition);
const fogFar = (this.camera as PerspectiveCamera).far;
const fogNear = fogFar * 0.8;
this.scene.fog = new Fog(this._backgroundColor, fogNear, fogFar);

this.resize();

Expand Down

0 comments on commit cefb729

Please sign in to comment.