History

fix bloom on edges

SamGondelman committed 8 years ago

Commit f9ec53a1 parent d8c30ff1 file · +1 −1Browse files

Showing the changes to libraries/render-utils/src/DeferredFramebuffer.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/DeferredFramebuffer.cpp+1−1
@@ -73,7 +73,7 @@ void DeferredFramebuffer::allocate() { · 72 unmodified lines
73 _deferredFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);73 _deferredFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);
74 74
75 75
76 auto smoothSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT);76 auto smoothSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT, gpu::Sampler::WRAP_CLAMP);
77 77
78 _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler);78 _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler);
79 _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting"));79 _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting"));