Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improved shape approximation
  • Loading branch information
MadCake committed May 10, 2020
1 parent 2e2d266 commit 89c58b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/DQ skinning/Shaders/Compute/DQBlend.compute
Expand Up @@ -90,7 +90,7 @@ struct vertex_info SkinVertex(struct vertex_info vertinfo)
float angleCoef = saturate(2.0*sqrt(1.0-rq.w));

float x = bone_weights[1] / (bone_weights[0] + bone_weights[1]);
float compensation = 2.2*x-8.1*x*x+7.4*x*x*x;
float compensation = 2.2*x-10.0*x*x+11.2*x*x*x;

compensation *= vertinfo.compensation_coef;
compensation *= compensation_coef;
Expand Down

0 comments on commit 89c58b6

Please sign in to comment.