diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/04_bloom/postprocess.c | 4 | ||||
-rw-r--r-- | src/example/04_bloom/preprocess.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/example/04_bloom/postprocess.c b/src/example/04_bloom/postprocess.c index fe58b96..1d476d0 100644 --- a/src/example/04_bloom/postprocess.c +++ b/src/example/04_bloom/postprocess.c @@ -9,13 +9,13 @@ static float weight[5] = { 0.2270270270, 0.1945945946, 0.1216216216, 0.0540540541, 0.0162162162 }; -static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) { +static void vert( Vertex* in, Vec4* clipcoord) { clipcoord->xyz = in->position; clipcoord->w = 1; *_texcoord = in->texcoord; } -static bool frag(UniformCollection* uniforms, Color32* color) { +static bool frag( Color32* color) { float off = 1 / 600.f; //blur *color = tex2d(_frag_tex, _texcoord); 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; |