Skip to content

Commit

Permalink
improved shape approximation
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCake committed May 16, 2020
1 parent 477e152 commit 31033a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/DQ skinning/Shaders/Compute/DQBlend.compute
Original file line number Diff line number Diff line change
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-10.0*x*x+11.2*x*x*x;
float compensation = 2.2*x-8.8*x*x+8.8*x*x*x;

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

0 comments on commit 31033a9

Please sign in to comment.