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