This commit is contained in:
2020-03-25 10:11:56 -05:00
parent d293772690
commit 87ae77a9cb
4 changed files with 20 additions and 5 deletions

View File

@@ -82,6 +82,12 @@ class IMICFPS
end
def lighting(lights)
@g_buffer.bind_for_reading
@g_buffer.set_read_buffer(:diffuse)
glBlitFramebuffer(0, 0, @g_buffer.width, @g_buffer.height,
0, 0, @g_buffer.width / 2, @g_buffer.height / 2,
GL_COLOR_BUFFER_BIT, GL_LINEAR)
end
def post_processing