- expanded hard limits for saturation to -15.0/15.0

- added menu option for saturation
- tried to get the new saturation shader to consume less GPU power by turning it off when it is 1.0
This commit is contained in:
Rachael Alexanderson 2017-06-26 03:50:49 -04:00
commit bd02893ce7
5 changed files with 14 additions and 8 deletions

View file

@ -866,7 +866,7 @@ void FGLRenderer::DrawPresentTexture(const GL_IRECT &box, bool applyGamma)
mPresentShader->InvGamma.Set(1.0f / clamp<float>(Gamma, 0.1f, 4.f));
mPresentShader->Contrast.Set(clamp<float>(vid_contrast, 0.1f, 3.f));
mPresentShader->Brightness.Set(clamp<float>(vid_brightness, -0.8f, 0.8f));
mPresentShader->Saturation.Set(clamp<float>(vid_saturation, -3.0f, 3.f));
mPresentShader->Saturation.Set(clamp<float>(vid_saturation, -15.0f, 15.f));
}
mPresentShader->Scale.Set(mScreenViewport.width / (float)mBuffers->GetWidth(), mScreenViewport.height / (float)mBuffers->GetHeight());
RenderScreenQuad();