Skip to content

Commit

Permalink
renabled occlusion
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Jan 16, 2024
1 parent 6a8f229 commit d530de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ts/planemos/telluricPlanemo/terrain/chunks/planetChunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { TelluricPlanemoModel } from "../../telluricPlanemoModel";
import { BoundingSphere } from "../../../../bodies/common";
import { PhysicsMotionType, PhysicsShapeType } from "@babylonjs/core/Physics/v2/IPhysicsEnginePlugin";
import { LockConstraint } from "@babylonjs/core/Physics/v2/physicsConstraint";
import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh";

export class PlanetChunk implements Transformable, BoundingSphere {
public readonly mesh: Mesh;
Expand Down Expand Up @@ -69,8 +70,8 @@ export class PlanetChunk implements Transformable, BoundingSphere {
this.transform.parent = parentAggregate.transformNode;
this.mesh.parent = this.transform;

//this.mesh.occlusionQueryAlgorithmType = AbstractMesh.OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE;
//this.mesh.occlusionType = AbstractMesh.OCCLUSION_TYPE_OPTIMISTIC;
this.mesh.occlusionQueryAlgorithmType = AbstractMesh.OCCLUSION_ALGORITHM_TYPE_CONSERVATIVE;
this.mesh.occlusionType = AbstractMesh.OCCLUSION_TYPE_OPTIMISTIC;

this.parent = parentAggregate.transformNode;
this.parentAggregate = parentAggregate;
Expand Down

0 comments on commit d530de7

Please sign in to comment.