# AnisotropyBarnLamp.glb gives an error in WebGPU mode

**URL:** <https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734>\
**Category:** Bugs\
**Created:** [February 23, 2025, 8:12am UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734 "2025-02-23T08:12:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cx20](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cx20/32/46_2.png) [@cx20](https://forum.babylonjs.com/u/cx20)\
**Post date:** [February 23, 2025, 8:12am UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734/1 "2025-02-23T08:12:18Z")

</div>

I tried testing whether I could display a Khronos sample model in Babylon.js.  
I attempted to display the model below using Babylon.js v7.50.0 in both WebGL mode and WebGPU mode.  
While WebGL mode works fine, it seems that an error occurs with WGSL in WebGPU mode.

> <https://github.com/KhronosGroup/glTF-Sample-Assets/blob/main/Models/AnisotropyBarnLamp/README.md>

WebGL Mode:  
`https://sandbox.babylonjs.com/?assetUrl=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb`

WebGPU Mode:  
`https://sandbox.babylonjs.com/?assetUrl=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb&webgpu`

```auto
BJS - [17:04:47]: Babylon.js v7.50.0 - WebGPU1 engine
logger.ts:107 BJS - [17:04:50]: WebGPU uncaptured error (1): [object GPUValidationError] - Error while parsing WGSL: :1270:2 error: unresolved value 'vTBN'
,vTBN
 ^^^^

 - While validating [ShaderModuleDescriptor ""fragment""]
 - While calling [Device "BabylonWebGPUDevice0"].CreateShaderModule([ShaderModuleDescriptor ""fragment""]).

```

OS : Windows 11  
Browser : Chrome 133  
GPU : GeForce RTX 2060

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [February 24, 2025, 9:12am UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734/2 "2025-02-24T09:12:19Z")

</div>

Assigned @Evgeni\_Popov on February 24, 2025, 9:12am UTC



---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [February 24, 2025, 10:16am UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734/3 "2025-02-24T10:16:16Z")

</div>

Thanks for reporting, here’s the fix:

> <https://github.com/BabylonJS/Babylon.js/pull/16208>
>
> See https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgp…u-mode/56734
> 
> It crashed when the mesh had normals + tangents defined.

---

<div class="post-metadata">

**Author:** ![cx20](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cx20/32/46_2.png) [@cx20](https://forum.babylonjs.com/u/cx20)\
**Post date:** [February 24, 2025, 10:42am UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734/4 "2025-02-24T10:42:07Z")

</div>

Thanks! I confirmed that it is fixed.

`https://sandbox.babylonjs.com/?snapshot=refs/pull/16208/merge&assetUrl=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb&webgpu`

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [February 24, 2025, 12:46pm UTC](https://forum.babylonjs.com/t/anisotropybarnlamp-glb-gives-an-error-in-webgpu-mode/56734/5 "2025-02-24T12:46:02Z")

</div>

Unassigned @Evgeni\_Popov on February 24, 2025, 12:46pm UTC


