Material Plugins add SSAO,material Plugins not working

Thank you very much for helping me!

use material plugin, and SSAO
SSAO work, but material plugin not working

I found a case on the official website,
add SSAO
PG:

SSAO work and material plugin work

What’s the difference between them?
@Evgeni_Popov

You inject your code too late in the fragment shader, you should inject it at the “CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR” tag and update the finalColor property:

This way, the updated color will correctly be taken into account by the pre-pass renderer.

2 Likes