roc_samples/data/shaders/sprite.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

17 lines
No EOL
416 B
GLSL
Executable file

varying vec4 ambientGlobal/*,ambientA[8],diffuseA[8]*/;
varying vec4 pixelpos;
uniform sampler2D tex;
void main()
{
vec4 color = ambientGlobal;
vec4 white = vec4(1.0, 1.0, 1.5, 1.0);
//color = white;
vec4 texcolor = texture2D(tex, gl_TexCoord[0].st);
color = clamp(texcolor * color, 0.0, 1.0);
//color = color * vec4(1.0, 1.0, 1.0, 0.5);
gl_FragColor = color;
// gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}