improved fur appearance
This commit is contained in:
parent
02ae0fcd14
commit
1ebbe9ec52
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ vertex_shader [[
|
||||||
v_normal = mat3(model_mtx) * a_normal;
|
v_normal = mat3(model_mtx) * a_normal;
|
||||||
v_tangent = mat3(model_mtx) * a_tangent;
|
v_tangent = mat3(model_mtx) * a_tangent;
|
||||||
#ifdef FUR
|
#ifdef FUR
|
||||||
v_wpos = model_mtx * vec4(a_position + (a_normal + vec3(0, -Model.fur_gravity, 0)) * Model.layer * Model.fur_scale, 1);
|
v_wpos = model_mtx * vec4(a_position + (a_normal + vec3(0, -Model.fur_gravity * Model.layer, 0)) * Model.layer * Model.fur_scale, 1);
|
||||||
#else
|
#else
|
||||||
v_wpos = model_mtx * vec4(a_position, 1);
|
v_wpos = model_mtx * vec4(a_position, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue