From d566595b1c0090a3894ed7ef88d467b5857f3eba Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 17 May 2020 13:21:06 +0200 Subject: [PATCH] add uniform to shader --- res/shaders/frag.shader | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/shaders/frag.shader b/res/shaders/frag.shader index 037ef95..c6deafe 100644 --- a/res/shaders/frag.shader +++ b/res/shaders/frag.shader @@ -2,7 +2,9 @@ out vec4 color; +uniform vec4 u_color; + void main() { - color = vec4(0.0, 1.0, 0.0, 0.5); + color = u_color; }