Skip to content

Commit

Permalink
Update DQBlend.compute
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCake committed May 17, 2020
1 parent 31033a9 commit 4bd3001
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-8.8*x*x+8.8*x*x*x;
float compensation = 2.2*x-9.6*x*x+10.4*x*x*x;

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

0 comments on commit 4bd3001

Please sign in to comment.