Added piece of code that was left out in previous commit.

This commit is contained in:
Jean-Philip Desjardins 2015-12-08 22:12:11 -05:00
parent 54ef78db8c
commit 2e79950800

View File

@ -143,6 +143,12 @@ Framework::OpenGl::CShader CGSH_OpenGL::GenerateFragmentShader(const SHADERCAPS&
shaderBuilder << "uniform float g_alphaRef;" << std::endl;
shaderBuilder << "uniform vec3 g_fogColor;" << std::endl;
if(caps.texClampS == TEXTURE_CLAMP_MODE_REGION_REPEAT || caps.texClampT == TEXTURE_CLAMP_MODE_REGION_REPEAT)
{
shaderBuilder << s_andFunction << std::endl;
shaderBuilder << s_orFunction << std::endl;
}
shaderBuilder << "vec4 expandAlpha(vec4 inputColor)" << std::endl;
shaderBuilder << "{" << std::endl;
if(caps.texUseAlphaExpansion)