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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user