History

Correctly represent light fbo fmt

Zach Pomerantz committed 10 years ago

Commit 12345141 parent d99dcf53 files · +8 −7Browse files

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

Unified · Split

libraries/render-utils/src/FramebufferCache.cpp+1−1
@@ -97,7 +97,7 @@ void FramebufferCache::createPrimaryFramebuffer() { · 96 unmodified lines
97 97
98 // FIXME: Decide on the proper one, let s stick to R11G11B10 for now98 // FIXME: Decide on the proper one, let s stick to R11G11B10 for now
99 //_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element::COLOR_RGBA_32, width, height, defaultSampler));99 //_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element::COLOR_RGBA_32, width, height, defaultSampler));
100 _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::R11G11B10), width, height, defaultSampler));100 _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, defaultSampler));
101 //_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler));101 //_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler));
102 _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());102 _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
103 _lightingFramebuffer->setRenderBuffer(0, _lightingTexture);103 _lightingFramebuffer->setRenderBuffer(0, _lightingTexture);