roc_samples/data/shaders/test.frag
cecilkorik 12cb7128f7 split everything in roc_samples out of the main roc project
refactored as needed to make roc work as a shared library, without any stupid import hacks
2017-05-08 23:49:09 -07:00

12 lines
No EOL
263 B
GLSL

varying vec3 normal;
varying vec3 lightdir;
uniform sampler2D tex;
void main()
{
float intensity;
intensity = dot(lightdir, normalize(normal));
var;
gl_FragColor = texture2D(tex, gl_TexCoord[0].st) * vec4(intensity, intensity, intensity, 1.0);
}