diff --git a/Code/DQ skinning/Shaders/Compute/DQBlend.compute b/Code/DQ skinning/Shaders/Compute/DQBlend.compute index e3c3844..71a998e 100644 --- a/Code/DQ skinning/Shaders/Compute/DQBlend.compute +++ b/Code/DQ skinning/Shaders/Compute/DQBlend.compute @@ -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; }