DDGI
DDGI copied to clipboard
Problem for moment2
psOut.distMoments.x /= distWeightSum; psOut.distMoments.y = psOut.distMoments.x * psOut.distMoments.x;
the moment2 is calculated by the square of moment1,but it should be the mean of the square.
@zq317157782 thank you for point out the issue. I submit the fix in rev https://github.com/guoxx/DDGI/commit/cc8b6b8194ff4473cdf21f72754a103cd6f8526d.
However I didn't use pre-filterred irradiance at the end, applying visibility test didn't achieve promising result in my scene setup, and it introduce artifacts like light leaking as filterable shadow map. Please let me know if you made any progress on this part.
Light leaking is always introduced if just use Chebyshev's Inequality, I'm also finding a method to progress on light leaking but until now I can't find a good method. Maybe use other shadowmap's method like ESM can help it.