Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 2 files). Show all
Unified · Split
| @@ -88,9 +88,9 @@ void FramebufferCache::createPrimaryFramebuffer() { · 87 unmodified lines | ||
| 88 | 88 | _selfieFramebuffer->setRenderBuffer(0, tex); |
| 89 | 89 | |
| 90 | 90 | //_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element::COLOR_RGBA_32, width, height, defaultSampler)); |
| 91 | − _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::R11G11B10), width, height, defaultSampler)); | |
| 92 | − // _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler)); | |
| 93 | − _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create()); | |
| 91 | + //lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::R11G11B10), width, height, defaultSampler)); | |
| 92 | + _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler)); | |
| 93 | + _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create()); | |
| 94 | 94 | _lightingFramebuffer->setRenderBuffer(0, _lightingTexture); |
| 95 | 95 | _lightingFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); |
| 96 | 96 | } |