diff options
Diffstat (limited to 'src/example/04_bloom/preprocess.c')
-rw-r--r-- | src/example/04_bloom/preprocess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/04_bloom/preprocess.c b/src/example/04_bloom/preprocess.c index 8dd2170..f02195f 100644 --- a/src/example/04_bloom/preprocess.c +++ b/src/example/04_bloom/preprocess.c @@ -5,10 +5,10 @@ /*varyings*/ #define _color reg_v4_00 -static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoord) { - static Vec4 p; p.xyz = in->vertex->position; p.w = 1; +static void vert(UniformCollection* uniforms, Vertex* in, Vec4* clipcoord) { + static Vec4 p; p.xyz = in->position; p.w = 1; internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord); - color_tocolor32(in->vertex->color, _color); + color_tocolor32(in->color, _color); } /*multi target*/ |