瀏覽代碼

Fix typo for fourBonesByVertex skinning.

clementlandrin 5 月之前
父節點
當前提交
3a215efb46
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/shader/Skin.hx

+ 1 - 1
h3d/shader/Skin.hx

@@ -53,7 +53,7 @@ class Skin extends SkinBase {
 			boneMatrixW = bonesMatrixes[int(input.indexes.w)];
 			skinWeights = vec4(input.weights, 0.0);
 			if(fourBonesByVertex) {
-				skinWeights.z = 1 - (input.weights.x + input.weights.y + input.weights.z);
+				skinWeights.w = 1 - (input.weights.x + input.weights.y + input.weights.z);
 			}
 
 			transformedPosition = applySkinPoint(relativePosition);