you can now print images on the screen
This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
layout(location = 0) out vec4 f_color;
|
||||
|
||||
in vec4 v_color;
|
||||
in vec2 v_texCoord;
|
||||
uniform sampler2D u_texture;
|
||||
|
||||
uniform vec4 u_color;
|
||||
|
||||
void main() {
|
||||
f_color = u_color;
|
||||
vec4 texColor = texture(u_texture, v_texCoord);
|
||||
f_color = texColor;
|
||||
}
|
||||
Reference in New Issue
Block a user