David Catuhe 5 年之前
父节点
当前提交
5482b8fb08
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Materials/Node/Blocks/Vertex/morphTargetsBlock.ts

+ 4 - 0
src/Materials/Node/Blocks/Vertex/morphTargetsBlock.ts

@@ -215,6 +215,10 @@ export class MorphTargetsBlock extends NodeMaterialBlock {
                 if (hasTangents) {
                     state.attributes.push(VertexBuffer.TangentKind + index);
                 }
+
+                if (hasUVs) {
+                    state.attributes.push(VertexBuffer.UVKind + "_" + index);
+                }
             }
         }
     }