diff options
author | chai <chaifix@163.com> | 2020-07-18 03:25:53 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-07-18 03:25:53 +0800 |
commit | 4984946caf0397a13da7605bc1ee406ea7354628 (patch) | |
tree | 0e87b71ae7639b8f12dbf3e8ec94e2087390acef /src/example/04_bloom/preprocess.c | |
parent | e5e995103377f9bb79123ef8257d8680ed0945fc (diff) |
-VertexShaderIn
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*/ |