diff options
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) \ |