From 4984946caf0397a13da7605bc1ee406ea7354628 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 18 Jul 2020 03:25:53 +0800 Subject: -VertexShaderIn --- src/example/04_bloom/preprocess.c | 6 +++--- 1 file changed, 3 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 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*/ -- cgit v1.1-26-g67d0