summaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-14 20:54:35 +0800
committerchai <chaifix@163.com>2020-07-14 20:54:35 +0800
commitb0235d7a0bac4994da7102887ec0ba1cd613769f (patch)
treed7315b8e99b8781e95cf9cbf016f10c989ce7afb /src/example
parentefe7768e5b65022b2dd418feff017b97012a6b24 (diff)
*misc
Diffstat (limited to 'src/example')
-rw-r--r--src/example/04_bloom/postprocess.c2
-rw-r--r--src/example/04_bloom/preprocess.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/example/04_bloom/postprocess.c b/src/example/04_bloom/postprocess.c
index ca35594..c305726 100644
--- a/src/example/04_bloom/postprocess.c
+++ b/src/example/04_bloom/postprocess.c
@@ -15,7 +15,7 @@ static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoor
*_texcoord = in->vertex->texcoord;
}
-static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color32* color) {
+static bool frag(UniformCollection* uniforms, 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 9e5bb55..8dd2170 100644
--- a/src/example/04_bloom/preprocess.c
+++ b/src/example/04_bloom/preprocess.c
@@ -15,7 +15,7 @@ static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoor
#define _frag_color out_color[0]
#define _bright_color out_color[1]
-static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color32* color) {
+static bool frag(UniformCollection* uniforms, Color32* color) {
//_frag_color->r = 1;
//_frag_color->g = 1;
//_frag_color->b = 1;