History

A working prototype of ao...

samcake committed 10 years ago

Commit 2486d941 parent f4b4b6212 files · +142 −134Browse files

Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 12 files). Show all

Unified · Split

libraries/render-utils/src/FramebufferCache.cpp+1−1
@@ -105,7 +105,7 @@ void FramebufferCache::createPrimaryFramebuffer() { · 104 unmodified lines
105105
106106
107107 // 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));
109109 _depthPyramidFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
110110 _depthPyramidFramebuffer->setRenderBuffer(0, _depthPyramidTexture);
111111 _depthPyramidFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);