Skip to content

Commit

Permalink
Merge pull request #499 from KhronosGroup/fix/deinterleave_accessors
Browse files Browse the repository at this point in the history
Fix Accessor Deinterleaving for Tangent Generation [496]
  • Loading branch information
UX3D-kanzler authored Oct 9, 2023
2 parents 98ff005 + 8b64a62 commit 1c6c7a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/gltf/primitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,8 @@ class gltfPrimitive extends GltfObject
*/
unweldAccessor(gltf, accessor, typedIndexView) {
const componentCount = accessor.getComponentCount(accessor.type);

const weldedAttribute = accessor.getTypedView(gltf);
const weldedAttribute = accessor.getDeinterlacedView(gltf);
const unweldedAttribute = new Float32Array(gltf.accessors[this.indices].count * componentCount);

// Apply the index mapping.
Expand Down

0 comments on commit 1c6c7a1

Please sign in to comment.