8 lines
277 B
GLSL
8 lines
277 B
GLSL
// Make canvas textures fullbright, basically
|
|
|
|
void SetupMaterial( inout Material mat )
|
|
{
|
|
mat.Base = texture(scrtex,vec2(vTexCoord.s,1.-vTexCoord.t)); // canvas textures are upside-down when used by models
|
|
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
|
mat.Bright = vec4(1.);
|
|
}
|