Hello everyone, hope you are having a great day.
I’m looking for a way to create reflections of parts of the model.
It only reflects with scene.enviroment.
Hello everyone, hope you are having a great day.
I’m looking for a way to create reflections of parts of the model.
It only reflects with scene.enviroment.
is those materials using mesh standard
and
is roughness close to 1 ?
I have solved. It’s about ‘selects’ in ssrPass.
I have a problem that FXAA is NOT working.
I’m trying to try fxaa but it’s not working.
composer = new EffectComposer( renderer );
ssrPass = new SSRPass( {
renderer,
scene,
camera,
width: container.offsetWidth ,
height: container.offsetHeight,
encoding: THREE.sRGBEncoding,
} );
composer.addPass( ssrPass );
composer.addPass( new ShaderPass( GammaCorrectionShader ) );
fxaaPass = new ShaderPass( FXAAShader );
const pixelRatio = renderer.getPixelRatio();
fxaaPass.material.uniforms[ 'resolution' ].value.x = 1 / ( container.offsetWidth * pixelRatio );
fxaaPass.material.uniforms[ 'resolution' ].value.y = 1 / ( container.offsetHeight * pixelRatio );
composer.addPass( fxaaPass );
Hello, AFAIK, FXAA depends only on the final result img of previous passes, i.e. the writeBuffer, what is already supported by SSRPass.
And tried SSRPass with FXAA, saw them do work togeter.
But, for performance reason, FXAA it self is a very approximately antialias solution, so may not has very good result.
I’ll comfirm if SSRPass works with other AAPasses.