Skip to content

Commit

Permalink
Merge pull request #131 from stalgiag/clearDepthBuffer
Browse files Browse the repository at this point in the history
clear depth buffer bit in all VR
  • Loading branch information
stalgiag authored Jun 10, 2021
2 parents eb95032 + 08c3a2c commit 783c7d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/p5xr/p5vr/p5vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ export default class p5vr extends p5xr {
}
p5.instance.background(this.curClearColor);

// Inline sessions need to clear the depth buffer bit
if (!this.isImmersive) {
this.gl.clear(this.gl.DEPTH_BUFFER_BIT);
}
this.gl.clear(this.gl.DEPTH_BUFFER_BIT);
}

// XRReferenceSpace offset is immutable, so return a new reference space
Expand Down

0 comments on commit 783c7d6

Please sign in to comment.