9 lines
255 B
GLSL
9 lines
255 B
GLSL
// imitation of the Unreal Engine 1.x ambient glow effect
|
|
|
|
void SetupMaterial( inout Material mat )
|
|
{
|
|
mat.Base = getTexel(vTexCoord.st);
|
|
float glow = .25+.2*sin(timer*8.);
|
|
mat.Bright = vec4(vec3(glow),1.);
|
|
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
|
}
|