summaryrefslogtreecommitdiff
path: root/src/example/04_bloom/postprocess.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-11 00:29:49 +0800
committerchai <chaifix@163.com>2020-07-11 00:29:49 +0800
commite849a07762a2feb3f124a08d50adeed52f085d5b (patch)
tree69207f80cf3372c6d5801d006966888f219e2a19 /src/example/04_bloom/postprocess.c
parent44e6647ab365a9261c904be839e356c06a545907 (diff)
*加internal前缀
Diffstat (limited to 'src/example/04_bloom/postprocess.c')
-rw-r--r--src/example/04_bloom/postprocess.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/example/04_bloom/postprocess.c b/src/example/04_bloom/postprocess.c
index 1ec10e4..06cb105 100644
--- a/src/example/04_bloom/postprocess.c
+++ b/src/example/04_bloom/postprocess.c
@@ -19,18 +19,18 @@ static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color32* col
float off = 1 / 600.f;
//blur
*color = tex2d(_frag_tex, _texcoord);
- vec4_scale(color, weight[0], color);
+ internal_vec4_scale(color, weight[0], color);
Vec2 p = {0, _texcoord->y};
Color32 c;
for (int i = 1; i < 5; ++i) {
p.x = _texcoord->x + off * i;
c = tex2d(_frag_tex, &p);
- vec4_scale(&c, weight[i], &c);
- vec4_add(color, &c, color);
+ internal_vec4_scale(&c, weight[i], &c);
+ internal_vec4_add(color, &c, color);
p.x = _texcoord->x - off * i;
c = tex2d(_frag_tex, &p);
- vec4_scale(&c, weight[i], &c);
- vec4_add(color, &c, color);
+ internal_vec4_scale(&c, weight[i], &c);
+ internal_vec4_add(color, &c, color);
}
return 1;
}