17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 14:37:29 +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

@@ -26,11 +26,12 @@ void gl::postfx::apply(opengl_texture &src, framebuffer *dst)
apply({&src}, dst);
}
void gl::postfx::apply(std::vector<opengl_texture *> src, framebuffer *dst)
void gl::postfx::apply(std::vector<opengl_texture *> src, framebuffer *dst, bool clear)
{
if (dst)
{
dst->clear(GL_COLOR_BUFFER_BIT);
if (clear)
dst->clear(GL_COLOR_BUFFER_BIT);
dst->bind();
}
else