Skip to content

Commit

Permalink
decrease bulge compensation in areas, affected by more than 2 bones
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCake committed Jan 26, 2020
1 parent 844b931 commit c4fc244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Code/DQ skinning/Shaders/Compute/DQBlend.compute
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ struct vertex_info SkinVertex(struct vertex_info vertinfo)
compensation *= compensation_coef;
compensation *= angleCoef;
compensation *= 1.0 - bone_weights[2] / bone_weights[1];
compensation *= bone_weights[0] + bone_weights[1];

vertinfo.position.xyz += offset * compensation;
}
Expand Down

0 comments on commit c4fc244

Please sign in to comment.