Make sure we never pass a negative value to pow, and optimize gamma uniform

This commit is contained in:
Magnus Norddahl 2016-08-16 00:01:18 +02:00
commit a8d1197ea7
4 changed files with 7 additions and 7 deletions

View file

@ -60,7 +60,7 @@ void FPresentShader::Bind()
mShader.SetAttribLocation(0, "PositionInProjection");
mShader.SetAttribLocation(1, "UV");
InputTexture.Init(mShader, "InputTexture");
Gamma.Init(mShader, "Gamma");
InvGamma.Init(mShader, "InvGamma");
Contrast.Init(mShader, "Contrast");
Brightness.Init(mShader, "Brightness");
Scale.Init(mShader, "UVScale");