swwmgz_m/shaders/glsl/Overbright.fp

10 lines
275 B
GLSL

// multiplies rgb and brightmap intensity
void SetupMaterial( inout Material mat )
{
mat.Base = getTexel(vTexCoord.st);
mat.Base.rgb *= OVERFACT;
mat.Normal = ApplyNormalMap(vTexCoord.st);
mat.Bright = texture(brighttexture,vTexCoord.st);
mat.Bright.rgb *= OVERFACT;
}