File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1466,9 +1466,15 @@ class TemporalResolvePass extends Pass {
14661466 renderer . setRenderTarget ( this . renderTarget )
14671467 renderer . render ( this . scene , this . camera ) // save the render target's texture for use in next frame
14681468
1469- renderer . copyFramebufferToTexture ( zeroVec2 , this . accumulatedTexture )
1470- renderer . setRenderTarget ( this . velocityPass . renderTarget )
1471- renderer . copyFramebufferToTexture ( zeroVec2 , this . lastVelocityTexture )
1469+ if ( Number ( REVISION ) >= 165 ) {
1470+ renderer . copyFramebufferToTexture ( this . accumulatedTexture , zeroVec2 )
1471+ renderer . setRenderTarget ( this . velocityPass . renderTarget )
1472+ renderer . copyFramebufferToTexture ( this . lastVelocityTexture , zeroVec2 )
1473+ } else {
1474+ renderer . copyFramebufferToTexture ( zeroVec2 , this . accumulatedTexture )
1475+ renderer . setRenderTarget ( this . velocityPass . renderTarget )
1476+ renderer . copyFramebufferToTexture ( zeroVec2 , this . accumulatedTexture )
1477+ }
14721478 }
14731479}
14741480
You can’t perform that action at this time.
0 commit comments