From 4deff343b5fd928ae9475eedcf9b6add34b31ae2 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 18 Jul 2020 03:43:19 +0800 Subject: -uniform collection --- src/example/04_bloom/preprocess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/example/04_bloom/preprocess.c') diff --git a/src/example/04_bloom/preprocess.c b/src/example/04_bloom/preprocess.c index f02195f..0956c59 100644 --- a/src/example/04_bloom/preprocess.c +++ b/src/example/04_bloom/preprocess.c @@ -5,9 +5,8 @@ /*varyings*/ #define _color reg_v4_00 -static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) { +static void vert( Vertex* in, Vec4* clipcoord) { static Vec4 p; p.xyz = in->position; p.w = 1; - internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord); color_tocolor32(in->color, _color); } @@ -15,7 +14,7 @@ static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) { #define _frag_color out_color[0] #define _bright_color out_color[1] -static bool frag(UniformCollection* uniforms, Color32* color) { +static bool frag( Color32* color) { //_frag_color->r = 1; //_frag_color->g = 1; //_frag_color->b = 1; -- cgit v1.1-26-g67d0