Created
June 29, 2014 01:32
-
-
Save bvssvni/f20fdf6dfd2d6a665257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
in vec4 a_v4Position; | |
in vec4 a_v4FillColor; | |
in vec2 a_v2TexCoord; | |
uniform sampler2D s_texture; | |
out vec2 v_v2TexCoord; | |
out vec4 v_v4FillColor; | |
void main() | |
{ | |
v_v2TexCoord = a_v2TexCoord; | |
v_v4FillColor = a_v4FillColor; | |
gl_Position = a_v4Position; | |
} | |
#version 330 | |
out vec4 out_color; | |
uniform sampler2D s_texture; | |
in vec2 v_v2TexCoord; | |
in vec4 v_v4FillColor; | |
void main() | |
{ | |
out_color = texture(s_texture, v_v2TexCoord) * v_v4FillColor; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment