Skip to content

Commit

Permalink
clear depth buffer bit in all VR
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag committed Jun 10, 2021
1 parent eb95032 commit 08c3a2c
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 08c3a2c

Please sign in to comment.