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
7373 _deferredFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);
7474
7575
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);
7777
7878 _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler);
7979 _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting"));