10 lines
275 B
GLSL
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;
|
|
}
|