Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 3 files). Show all
Unified · Split
| @@ -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 now | 98 | // 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); |