From a247c0adac7b3e50c72fde9b197ef6eabfd38b0b Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 23 May 2020 11:50:54 -0500 Subject: add honey_shader_set_vec3() --- demo.fs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demo.fs') diff --git a/demo.fs b/demo.fs index 03159de..af6e190 100644 --- a/demo.fs +++ b/demo.fs @@ -2,6 +2,8 @@ in vec2 texture_coordinate; +uniform vec3 extra_color; + uniform sampler2D box_texture; uniform sampler2D happy_texture; @@ -10,6 +12,6 @@ out vec4 FragColor; void main() { FragColor = mix(texture(box_texture, texture_coordinate), - vec4(texture(happy_texture, texture_coordinate).xyz, 1.0), + vec4(extra_color.xyz, 1.0), 0.2); } -- cgit v1.2.1