Blender Git Commit Log
Git Commits -> Revision dee94af
Revision dee94af by Clément Foucault (master) February 21, 2021, 00:33 (GMT) |
EEVEE: Ambient Occlusion Node: Support inverted and distance parameters This adds an approximation of inverted AO by reversing the max horizon search (becoming a min horizon). The horizons are correctly clamped in the reverse direction to the shading and geometric normals. The arc integration is untouched as it seems to be symetrical. The limitation of this technique is that since it is still screen-space AO you don't get other hidden surfaces occlusion. This is more problematic in the case of inverted AO than for normal AO but it's better than no support AO. Support of distance parameter was easy thanks to recent AO refactor. |
Commit Details:
Full Hash: dee94afd039de7b7d3002ff2f8f1f0bf4c515bb3
Parent Commit: 7640826
Lines Changed: +71, -37
4 Modified Paths:
/source/blender/draw/engines/eevee/shaders/ambient_occlusion_lib.glsl (+57, -30) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_gtao_frag.glsl (+1, -1) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_ambient_occlusion.glsl (+10, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.c (+3, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/effect_gtao_frag.glsl (+1, -1) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_ambient_occlusion.glsl (+10, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_ambient_occlusion.c (+3, -1) (Diff)