David Catuhe 5 năm trước cách đây
mục cha
commit
5482b8fb08
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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);
+                }
             }
         }
     }