Flickering result when using a frame buffer object / dataTexture

Hi all, I asked this question on StackOverflow but thought I’d ask it here because I’m not sure if people on these boards frequent SO.

I am working on a scene in THREE.js that uses a Frame Buffer Object. For some reason, I’m seeing a crazy flickering / strobe effect. (The strobe goes away if one comments out the line: mesh.material.uniforms.fboData.value = renderTargetA.texture ):

Does anyone see what I’m missing? Any pointers others can provide would be greatly appreciated!

@marquizzo helped me see that the problem was in the FBO vertex shader, where I flip the uv coordinates on the y axis. Simply defining vUv = uv (rather than flipping the uv on the y axis) clears this up.

1 Like