add uniform to shader
This commit is contained in:
parent
1a924e70ef
commit
d566595b1c
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue