add uniform to shader

This commit is contained in:
nek0 2020-05-17 13:21:06 +02:00
parent 1a924e70ef
commit d566595b1c

View file

@ -2,7 +2,9 @@
out vec4 color; out vec4 color;
uniform vec4 u_color;
void main() void main()
{ {
color = vec4(0.0, 1.0, 0.0, 0.5); color = u_color;
} }