@@ -202,29 +202,29 @@ class SSAOPass extends Pass {
202202
203203 this . copyMaterial . uniforms [ 'tDiffuse' ] . value = this . ssaoRenderTarget . texture ;
204204 this . copyMaterial . blending = NoBlending ;
205- this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : writeBuffer ) ;
205+ this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : readBuffer ) ;
206206
207207 break ;
208208
209209 case SSAOPass . OUTPUT . Blur :
210210
211211 this . copyMaterial . uniforms [ 'tDiffuse' ] . value = this . blurRenderTarget . texture ;
212212 this . copyMaterial . blending = NoBlending ;
213- this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : writeBuffer ) ;
213+ this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : readBuffer ) ;
214214
215215 break ;
216216
217217 case SSAOPass . OUTPUT . Depth :
218218
219- this . renderPass ( renderer , this . depthRenderMaterial , this . renderToScreen ? null : writeBuffer ) ;
219+ this . renderPass ( renderer , this . depthRenderMaterial , this . renderToScreen ? null : readBuffer ) ;
220220
221221 break ;
222222
223223 case SSAOPass . OUTPUT . Normal :
224224
225225 this . copyMaterial . uniforms [ 'tDiffuse' ] . value = this . normalRenderTarget . texture ;
226226 this . copyMaterial . blending = NoBlending ;
227- this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : writeBuffer ) ;
227+ this . renderPass ( renderer , this . copyMaterial , this . renderToScreen ? null : readBuffer ) ;
228228
229229 break ;
230230
0 commit comments