From: Mikko Rasa Date: Sat, 8 May 2021 17:33:57 +0000 (+0300) Subject: Take ambient occlusion samples only from the forward hemisphere X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=28965eccb61d06a497645e0770826de161b0e4cb;hp=28965eccb61d06a497645e0770826de161b0e4cb;p=libs%2Fgl.git Take ambient occlusion samples only from the forward hemisphere 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. ---