Showing the changes to libraries/render-utils/src/FramebufferCache.cpp (1 of 5 files). Show all
Unified · Split
| @@ -59,8 +59,8 @@ void FramebufferCache::createPrimaryFramebuffer() { · 58 unmodified lines | ||
| 59 | 59 | _deferredFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create()); |
| 60 | 60 | _deferredFramebufferDepthColor = gpu::FramebufferPointer(gpu::Framebuffer::create()); |
| 61 | 61 | |
| 62 | − // auto colorFormat = gpu::Element::COLOR_RGBA_32; | |
| 63 | 62 | auto colorFormat = gpu::Element::COLOR_SRGBA_32; |
| 63 | + auto linearFormat = gpu::Element::COLOR_RGBA_32; | |
| 64 | 64 | auto width = _frameBufferSize.width(); |
| 65 | 65 | auto height = _frameBufferSize.height(); |
| 66 | 66 | |
| @@ -70,7 +70,8 @@ void FramebufferCache::createPrimaryFramebuffer() { · 3 unmodified lines | ||
| 70 | 70 | _primaryFramebuffer->setRenderBuffer(0, _primaryColorTexture); |
| 71 | 71 | |
| 72 | 72 | _deferredColorTexture = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width, height, defaultSampler)); |
| 73 | − _deferredNormalTexture = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width, height, defaultSampler)); | |
| 73 | + | |
| 74 | + _deferredNormalTexture = gpu::TexturePointer(gpu::Texture::create2D(linearFormat, width, height, defaultSampler)); | |
| 74 | 75 | _deferredSpecularTexture = gpu::TexturePointer(gpu::Texture::create2D(colorFormat, width, height, defaultSampler)); |
| 75 | 76 | |
| 76 | 77 | _deferredFramebuffer->setRenderBuffer(0, _deferredColorTexture); |