Skip to content

Commit 418d5dc

Browse files
authored
[FIX] glTF parser not handling accessor.normalized (playcanvas#2054)
1 parent 0d41281 commit 418d5dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resources/parser/glb-parser.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ Object.assign(pc, function () {
254254
vertexDesc.push({
255255
semantic: semantic,
256256
components: getNumComponents(accessor.type),
257-
type: getComponentType(accessor.componentType)
257+
type: getComponentType(accessor.componentType),
258+
normalize: accessor.normalized
258259
});
259260
// store the info we'll need to copy this data into the vertex buffer
260261
var size = getNumComponents(accessor.type) * getComponentSizeInBytes(accessor.componentType);

0 commit comments

Comments
 (0)