# Can we disable normals and/or uv's?

**URL:** <https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028>\
**Category:** Questions\
**Created:** [May 22, 2023, 11:44am UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028 "2023-05-22T11:44:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mise](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mise/32/37506_2.png) [@mise](https://forum.babylonjs.com/u/mise)\
**Post date:** [May 22, 2023, 11:44am UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028/1 "2023-05-22T11:44:47Z")

</div>

Continuing the discussion from [Why WebGPU backend is slower?](https://forum.babylonjs.com/t/why-webgpu-backend-is-slower/24091/3):

@Evgeni_Popov you mention that “In WebGPU you have a call to set the index buffer and one or more calls to setup the vertex buffers (on average 3 calls if you have position, normals and uvs).”

is there a way to prevent 2 of these calls by not shipping normals and/or uv’s? My scene uses only ambient light, but I’m not sure if normals are still mandatory.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [May 22, 2023, 12:27pm UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028/2 "2023-05-22T12:27:00Z")

</div>

It wont get called if your meshes do not have them.

---

<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:** [May 22, 2023, 10:23pm UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028/3 "2023-05-22T22:23:23Z")

</div>

As @sebavan said, if your meshes don’t have normals / uvs, the vertex buffers won’t be created and you will save the `setVertexBuffer` calls. Normals are required for lighting, but if you don’t provide them they will be computed in the shader.

---

<div class="post-metadata">

**Author:** ![mise](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mise/32/37506_2.png) [@mise](https://forum.babylonjs.com/u/mise)\
**Post date:** [May 23, 2023, 9:09am UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028/4 "2023-05-23T09:09:03Z")

</div>

are they also computed by the shader if there is only ambient light? if so, it will mean a performance hit as well.

---

<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:** [May 23, 2023, 9:44am UTC](https://forum.babylonjs.com/t/can-we-disable-normals-and-or-uvs/41028/5 "2023-05-23T09:44:15Z")

</div>

No, the normal should be computed only if it is needed afterwards.

In any case, the driver should remove any unused code at compilation time.
