Showing the changes to libraries/render-utils/src/DeferredFramebuffer.cpp (1 of 11 files). Show all
Unified · Split
| @@ -73,9 +73,9 @@ 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_MIP_LINEAR); | 76 | auto smoothSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT); |
| 77 | 77 | ||
| 78 | _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, defaultSampler); | 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")); |
| 80 | _lightingFramebuffer->setRenderBuffer(0, _lightingTexture); | 80 | _lightingFramebuffer->setRenderBuffer(0, _lightingTexture); |
| 81 | _lightingFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); | 81 | _lightingFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); |