bevy
bevy copied to clipboard
Solari: Improve specular GI
Go back to only sampling the world cache for rough and non-first-bounce surfaces, but sample direct lighting when that doesn't happen.
Mainline
This PR
Pathtraced reference
Fixes https://github.com/bevyengine/bevy/issues/21967.
There's still some weird glowing around the very edges of the monkey, but this is much closer.
@SparkyPotato please review this carefully. I'm not super confident about my MIS code (but the good news is that implementing it myself, I have a bunch better understanding now).