# GLTF Parser Hooks

**URL:** <https://forum.babylonjs.com/t/gltf-parser-hooks/950>\
**Category:** Questions\
**Created:** [January 25, 2019, 10:59am UTC](https://forum.babylonjs.com/t/gltf-parser-hooks/950 "2019-01-25T10:59:51Z")\
**Posts on this page:** 1\
**Showing post:** 144

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [March 28, 2019, 12:15am UTC](https://forum.babylonjs.com/t/gltf-parser-hooks/950/144 "2019-03-28T00:15:26Z")

</div>

The code is here: [Babylon.js/glTFLoader.ts at master · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/blob/master/loaders/src/glTF/2.0/glTFLoader.ts#L668)

Basically, the idea is that we need to check if the mesh primitives can be merged (i.e. if they have the same kinds of attributes). If they do, then call VertexData.merge to merge all the primitives into a single vertex data.

---

_[View the full topic](https://forum.babylonjs.com/t/gltf-parser-hooks/950)._
