- Add gl_shadowmap_quality cvar that controls the resolution of the 1D shadow map texture

This commit is contained in:
Magnus Norddahl 2017-06-04 00:44:49 +02:00
commit 7acb492852
8 changed files with 47 additions and 14 deletions

View file

@ -40,6 +40,7 @@ void FShadowMapShader::Bind()
mShader.SetFragDataLocation(0, "FragColor");
mShader.Link("shaders/glsl/shadowmap");
mShader.SetAttribLocation(0, "PositionInProjection");
ShadowmapQuality.Init(mShader, "ShadowmapQuality");
}
mShader.Bind();
}