diff options
Diffstat (limited to 'data/shaders/sprite-fragment.glsl')
-rw-r--r-- | data/shaders/sprite-fragment.glsl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/shaders/sprite-fragment.glsl b/data/shaders/sprite-fragment.glsl new file mode 100644 index 0000000..3dd10f1 --- /dev/null +++ b/data/shaders/sprite-fragment.glsl @@ -0,0 +1,8 @@ +#version 120 + +uniform sampler2D color_texture; +uniform vec4 color; + +void main (void) { + gl_FragColor = texture2D(color_texture, gl_TexCoord[0].st) * color; +} |