Showing the changes to libraries/render-utils/src/DeferredFramebuffer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -73,7 +73,7 @@ void DeferredFramebuffer::allocate() { · 72 unmodified lines | ||
| 73 | 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 | 78 | _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler); |
| 79 | 79 | _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting")); |