File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2019,13 +2019,22 @@ define([
2019
2019
var commandList = frameState . commandList = [ ] ;
2020
2020
scene . _debugVolume . update ( frameState ) ;
2021
2021
2022
+ command = commandList [ 0 ] ;
2023
+
2024
+ var frustum = scene . camera . frustum ;
2025
+ var useLogDepth = scene . _logDepthBuffer && ! ( frustum instanceof OrthographicFrustum || frustum instanceof OrthographicOffCenterFrustum ) ;
2026
+ if ( useLogDepth ) {
2027
+ var logDepth = DerivedCommand . createLogDepthCommand ( command , context ) ;
2028
+ command = logDepth . command ;
2029
+ }
2030
+
2022
2031
var framebuffer ;
2023
2032
if ( defined ( debugFramebuffer ) ) {
2024
2033
framebuffer = passState . framebuffer ;
2025
2034
passState . framebuffer = debugFramebuffer ;
2026
2035
}
2027
2036
2028
- commandList [ 0 ] . execute ( context , passState ) ;
2037
+ command . execute ( context , passState ) ;
2029
2038
2030
2039
if ( defined ( framebuffer ) ) {
2031
2040
passState . framebuffer = framebuffer ;
You can’t perform that action at this time.
0 commit comments