Showing the changes to libraries/render-utils/src/DeferredFramebuffer.cpp (1 of 76 files). Show all
Unified · Split
| @@ -60,7 +60,7 @@ void DeferredFramebuffer::allocate() { · 59 unmodified lines | |||
| 60 | auto width = _frameSize.x; | 60 | auto width = _frameSize.x; |
| 61 | auto height = _frameSize.y; | 61 | auto height = _frameSize.y; |
| 62 | 62 | ||
| 63 | auto defaultSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_POINT); | 63 | auto defaultSampler = Sampler(Sampler::FILTER_MIN_MAG_POINT); |
| 64 | 64 | ||
| 65 | _deferredColorTexture = gpu::Texture::createRenderBuffer(colorFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler); | 65 | _deferredColorTexture = gpu::Texture::createRenderBuffer(colorFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler); |
| 66 | _deferredNormalTexture = gpu::Texture::createRenderBuffer(linearFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler); | 66 | _deferredNormalTexture = gpu::Texture::createRenderBuffer(linearFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler); |
| @@ -84,7 +84,7 @@ void DeferredFramebuffer::allocate() { · 17 unmodified lines | |||
| 84 | _deferredFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); | 84 | _deferredFramebufferDepthColor->setDepthStencilBuffer(_primaryDepthTexture, depthFormat); |
| 85 | 85 | ||
| 86 | 86 | ||
| 87 | auto smoothSampler = gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT, gpu::Sampler::WRAP_CLAMP); | 87 | auto smoothSampler = Sampler(Sampler::FILTER_MIN_MAG_LINEAR_MIP_POINT, Sampler::WRAP_CLAMP); |
| 88 | 88 | ||
| 89 | _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler); | 89 | _lightingTexture = gpu::Texture::createRenderBuffer(gpu::Element(gpu::SCALAR, gpu::FLOAT, gpu::R11G11B10), width, height, gpu::Texture::SINGLE_MIP, smoothSampler); |
| 90 | _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting")); | 90 | _lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create("lighting")); |