]> git.tdb.fi Git - libs/gl.git/commitdiff
Take ambient occlusion samples only from the forward hemisphere
authorMikko Rasa <tdb@tdb.fi>
Sat, 8 May 2021 17:33:57 +0000 (20:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 May 2021 07:53:57 +0000 (10:53 +0300)
This requires a few more samples from the depth buffer to determine the
normal, but that should not be an issue with today's GPUs.

Also generate the sample points for cosine-weighted importance sampling
to obtain physically correct occlusion values.


No differences found