fxaa

Three.js post process: FXAA does not work with SSAO enabled

有些话、适合烂在心里 提交于 2020-01-17 02:21:08
问题 In this simple test scene, I need SSAO and FXAA effects composed together, but I can't get it work. When SSAO is enabled, if I also enable FXAA the render gets black. In the fiddle, if you uncomment composer.addPass(FXAA_effect); you'll see the issue. I check different examples of how to add these effects one at time, they work individually, but I can't get them together. What am I missing? JSFiddle: http://jsfiddle.net/ur3tpwag/ That's the code: var scene = new THREE.Scene(); var camera =