diff options
author | chai <chaifix@163.com> | 2020-07-18 03:43:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-07-18 03:43:19 +0800 |
commit | 4deff343b5fd928ae9475eedcf9b6add34b31ae2 (patch) | |
tree | d9108f5fedc9f0dd57bf964763edc508983c80c5 /src/example/04_bloom/preprocess.c | |
parent | 4984946caf0397a13da7605bc1ee406ea7354628 (diff) |
-uniform collection
Diffstat (limited to 'src/example/04_bloom/preprocess.c')
-rw-r--r-- | src/example/04_bloom/preprocess.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |