Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 16 files). Show all
Unified · Split
| @@ -107,7 +107,7 @@ void FramebufferCache::createPrimaryFramebuffer() { · 106 unmodified lines | ||
| 107 | 107 | |
| 108 | 108 | // For AO: |
| 109 | 109 | auto pointMipSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_MIP_POINT); |
| 110 | − _depthPyramidTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::RGB), width, height, pointMipSampler)); | |
| 110 | + _depthPyramidTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::RGB), width, height, gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_MIP_LINEAR))); | |
| 111 | 111 | _depthPyramidFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create()); |
| 112 | 112 | _depthPyramidFramebuffer->setRenderBuffer(0, _depthPyramidTexture); |
| 113 | 113 | _depthPyramidFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); |