File tree Expand file tree Collapse file tree 6 files changed +6
-0
lines changed Expand file tree Collapse file tree 6 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 791
791
this . ctx . bindFramebuffer ( this . ctx . FRAMEBUFFER , glLayer . framebuffer ) ;
792
792
if ( session . isAR ) {
793
793
this . ctx . dontClearOnFrameStart = true ;
794
+ this . ctx . clear ( this . ctx . STENCIL_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
794
795
} else {
795
796
this . ctx . clear ( this . ctx . COLOR_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
796
797
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
11
11
### Fixed
12
12
- OnDisable in WebXRController.
13
+ - Depth and Stencil clear issue in Handheld AR.
13
14
14
15
## [ 0.5.1] - 2020-12-26
15
16
### Fixed
Original file line number Diff line number Diff line change 791
791
this . ctx . bindFramebuffer ( this . ctx . FRAMEBUFFER , glLayer . framebuffer ) ;
792
792
if ( session . isAR ) {
793
793
this . ctx . dontClearOnFrameStart = true ;
794
+ this . ctx . clear ( this . ctx . STENCIL_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
794
795
} else {
795
796
this . ctx . clear ( this . ctx . COLOR_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
796
797
}
Original file line number Diff line number Diff line change 791
791
this . ctx . bindFramebuffer ( this . ctx . FRAMEBUFFER , glLayer . framebuffer ) ;
792
792
if ( session . isAR ) {
793
793
this . ctx . dontClearOnFrameStart = true ;
794
+ this . ctx . clear ( this . ctx . STENCIL_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
794
795
} else {
795
796
this . ctx . clear ( this . ctx . COLOR_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
796
797
}
Original file line number Diff line number Diff line change 791
791
this . ctx . bindFramebuffer ( this . ctx . FRAMEBUFFER , glLayer . framebuffer ) ;
792
792
if ( session . isAR ) {
793
793
this . ctx . dontClearOnFrameStart = true ;
794
+ this . ctx . clear ( this . ctx . STENCIL_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
794
795
} else {
795
796
this . ctx . clear ( this . ctx . COLOR_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
796
797
}
Original file line number Diff line number Diff line change 791
791
this . ctx . bindFramebuffer ( this . ctx . FRAMEBUFFER , glLayer . framebuffer ) ;
792
792
if ( session . isAR ) {
793
793
this . ctx . dontClearOnFrameStart = true ;
794
+ this . ctx . clear ( this . ctx . STENCIL_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
794
795
} else {
795
796
this . ctx . clear ( this . ctx . COLOR_BUFFER_BIT | this . ctx . DEPTH_BUFFER_BIT ) ;
796
797
}
You can’t perform that action at this time.
0 commit comments