# SceneLoader.ImportMesh

**URL:** <https://forum.babylonjs.com/t/sceneloader-importmesh/52571>\
**Category:** Bugs\
**Created:** [August 6, 2024, 1:35am UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571 "2024-08-06T01:35:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![troy](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@troy](https://forum.babylonjs.com/u/troy)\
**Post date:** [August 6, 2024, 1:35am UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571/1 "2024-08-06T01:35:10Z")

</div>

[https://playground.babylonjs.com/#KBS9I5#36570](https://playground.babylonjs.com/#KBS9I5#36570)  
The scene loads normally in WebGL but throws errors directly in WebGPU mode

---

<div class="post-metadata">

**Author:** ![docEdub](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/docedub/32/14525_2.png) [@docEdub](https://forum.babylonjs.com/u/docEdub)\
**Post date:** [August 6, 2024, 1:57am UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571/2 "2024-08-06T01:57:04Z")

</div>

@Deltakosh

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [August 6, 2024, 5:05am UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571/3 "2024-08-06T05:05:33Z")

</div>

There is a small bug in the shader.

This PR fixes it:

> <https://github.com/BabylonJS/Babylon.js/pull/15361>
>
> https://forum.babylonjs.com/t/sceneloader-importmesh/52571
> 
> There is a small b…ug in the shader. \`clamp\` is called with \`vec3\` instead of \`f32\`.

You can try it out here:  
[https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15361/merge/index.html#KBS9I5#36570](https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/15361/merge/index.html#KBS9I5#36570)

Result:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/0/90c8dc409c657af6cf2d051f8c766ce6f1ff8d59.jpeg)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 6, 2024, 1:49pm UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571/4 "2024-08-06T13:49:17Z")

</div>

You rock dude!

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [August 6, 2024, 5:27pm UTC](https://forum.babylonjs.com/t/sceneloader-importmesh/52571/5 "2024-08-06T17:27:12Z")

</div>

Thank you, but credits goes to the Chrome WebGPU team! The WebGPU error messages on Chrome are so verbose (finally what the developers deserve) so just a completely uninvolved would miss it 😃

If I correctly remember Safari was/or still is very stingy when it cames to spitting out the error message associated with especially the framebuffer completeness GL errors. Nothing is reported to the console. 🙈 You had to have a great time while debugging stuff for Safari while working on babylon.js 😃 So did I when tried to be cool (loyal to the brand lol) and use Safari to try out WebGL stuff.
