Skip to content

Commit

Permalink
replaces ground plane with a simpler geometry (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCodeTherapy authored Jun 11, 2024
1 parent bc97b49 commit b7a45d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/3d-web-client-core/src/ground-plane/GroundPlane.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
CanvasTexture,
CircleGeometry,
FrontSide,
Group,
LinearMipMapLinearFilter,
Mesh,
MeshStandardMaterial,
NearestFilter,
PlaneGeometry,
RepeatWrapping,
Texture,
} from "three";
Expand All @@ -25,7 +25,7 @@ ctx.fillRect(1, 1, 1, 1);
export class GroundPlane extends Group {
private readonly floorSize = 210;
private readonly floorTexture: Texture | null = null;
private readonly floorGeometry = new CircleGeometry(this.floorSize, this.floorSize);
private readonly floorGeometry = new PlaneGeometry(this.floorSize, this.floorSize, 1, 1);
private readonly floorMaterial: MeshStandardMaterial;
private readonly floorMesh: Mesh | null = null;

Expand Down

0 comments on commit b7a45d7

Please sign in to comment.