18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-22 00:54:59 +01:00

feat(render): ground truth ambient occlusion darkens creases, recesses and the space under desks and frames, computed at half resolution from the reversed depth buffer with a depth-aware blur and multiplied into the image before motion blur, so it works with the default settings; thin parts in front of a surface, such as a steering wheel, shade it only from close by, and gfx.postfx.gtao.enabled, radius, intensity, directions and steps set it from the ini

This commit is contained in:
maj00r
2026-10-14 16:56:38 +02:00
parent 000b8656cc
commit a24f9fae3f
9 changed files with 271 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
in vec2 f_coords;
layout(location = 0) out vec4 out_color;
#texture (ao_tex, 0, R)
uniform sampler2D ao_tex;
#include <common>
void main()
{
out_color = vec4(vec3(pow(clamp(texture(ao_tex, f_coords).r, 0.0, 1.0), param[0].y)), 1.0);
}