diff options
author | chai <chaifix@163.com> | 2020-07-11 00:29:49 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-07-11 00:29:49 +0800 |
commit | e849a07762a2feb3f124a08d50adeed52f085d5b (patch) | |
tree | 69207f80cf3372c6d5801d006966888f219e2a19 /src/shaders/common.h | |
parent | 44e6647ab365a9261c904be839e356c06a545907 (diff) |
*加internal前缀
Diffstat (limited to 'src/shaders/common.h')
-rw-r--r-- | src/shaders/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shaders/common.h b/src/shaders/common.h index 61066e5..8d0ac83 100644 --- a/src/shaders/common.h +++ b/src/shaders/common.h @@ -63,14 +63,14 @@ if(cond) return 0; \ #define MVP_PROCESS \ do{ \ static Vec4 p; p.xyz = in->vertex->position; p.w = 1; \ -mat4_mulvec4(uniforms->mvp, &p, clipcoord); \ +internal_mat4_mulvec4(uniforms->mvp, &p, clipcoord); \ }while(0) -#define object2clip(pos, out) mat4_mulvec4(_mvp_matrix, pos, out); +#define object2clip(pos, out) internal_mat4_mulvec4(_mvp_matrix, pos, out); /*need defined _it_model_matrix of model matrix, i-nverse, t-ranspose*/ #define object2world_normal(normal, out) \ -mat4_mulvec4(_it_model_matrix, normal, out) +internal_mat4_mulvec4(_it_model_matrix, normal, out) /*take sample from normal map and translate to normal*/ #define unpack_normal(color, out_v3) \ |