diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-15 17:15:42 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-15 17:16:06 +0300 |
commit | f9e4d8e93a0c2706c69f2656fa673daa74bdb165 (patch) | |
tree | f02cb6e9bdf8fe2bc6a6596a1ffe68417e644b0a /source/blender/gpu/GPU_framebuffer.h | |
parent | bdd3fd64e94460ad76c88e68d2c9c50778ef90b2 (diff) |
Clay Engine: Replace Manual depth test by depth copy.
This avoid glitches due to float comparison precision.
Diffstat (limited to 'source/blender/gpu/GPU_framebuffer.h')
-rw-r--r-- | source/blender/gpu/GPU_framebuffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_framebuffer.h b/source/blender/gpu/GPU_framebuffer.h index 9611a6f0577..15617832c9b 100644 --- a/source/blender/gpu/GPU_framebuffer.h +++ b/source/blender/gpu/GPU_framebuffer.h @@ -67,6 +67,10 @@ void GPU_framebuffer_blur( GPUFrameBuffer *fb, struct GPUTexture *tex, GPUFrameBuffer *blurfb, struct GPUTexture *blurtex); +void GPU_framebuffer_blit( + GPUFrameBuffer *fb_read, int read_slot, + GPUFrameBuffer *fb_write, int write_slot, bool use_depth); + /* GPU OffScreen * - wrapper around framebuffer and texture for simple offscreen drawing * - changes size if graphics card can't support it */ |