mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 17:58:43 +02:00
Nothing fancy
This commit is contained in:
parent
ede375a889
commit
c74bbda663
2 changed files with 4 additions and 4 deletions
|
@ -88,9 +88,9 @@ void FramebufferCache::createPrimaryFramebuffer() {
|
|||
_selfieFramebuffer->setRenderBuffer(0, tex);
|
||||
|
||||
//_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element::COLOR_RGBA_32, width, height, defaultSampler));
|
||||
_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::R11G11B10), width, height, defaultSampler));
|
||||
// _lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler));
|
||||
_lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
|
||||
//lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC3, gpu::NUINT8, gpu::R11G11B10), width, height, defaultSampler));
|
||||
_lightingTexture = gpu::TexturePointer(gpu::Texture::create2D(gpu::Element(gpu::VEC4, gpu::HALF, gpu::RGBA), width, height, defaultSampler));
|
||||
_lightingFramebuffer = gpu::FramebufferPointer(gpu::Framebuffer::create());
|
||||
_lightingFramebuffer->setRenderBuffer(0, _lightingTexture);
|
||||
_lightingFramebuffer->setDepthStencilBuffer(_primaryDepthTexture, depthFormat);
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ void ToneMappingEffect::init() {
|
|||
// Manually gamma correct from Ligthing BUffer to color buffer
|
||||
// outFragColor.xyz = pow( fragColor.xyz , vec3(1.0 / 2.2) );
|
||||
|
||||
fragColor *= 4.0; // Hardcoded Exposure Adjustment
|
||||
fragColor *= 2.0; // Hardcoded Exposure Adjustment
|
||||
vec3 x = max(vec3(0.0),fragColor.xyz-0.004);
|
||||
vec3 retColor = (x*(6.2*x+.5))/(x*(6.2*x+1.7)+0.06);
|
||||
|
||||
|
|
Loading…
Reference in a new issue