# Expose worldNormal input in NodeMaterial ClearCoatBlock

**URL:** <https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225>\
**Category:** Feature requests\
**Created:** [April 10, 2022, 5:16pm UTC](https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225 "2022-04-10T17:16:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiikaH](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/miikah/32/23054_2.png) [@MiikaH](https://forum.babylonjs.com/u/MiikaH)\
**Post date:** [April 10, 2022, 5:16pm UTC](https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225/1 "2022-04-10T17:16:34Z")

</div>

Could a worldNormal input be added to `ClearCoatBlock` as a new optional parameter? If it isn’t connected then a `PBRMetallicRoughnessBlock` worldNormal is used instead like it currently does always.

Right now only way to apply perturbedNormal to clear coat in NME is to send a normal map color as input. However, it is possible that there are other changes to the normal than just a normal map. For example in my case normal can also be affected by height based “bump maps”, so I have no other way to make clearcoat include all surface bumps than to feed perturbedNormal to both `PBRMetallicRoughnessBlock` worldNormal AND perturbedNormal inputs.

It should be mostly matter of exposing this variable here like the position above: [Babylon.js/clearCoatBlock.ts at 38d9baea7bf81f6ef293f736daaca45c6a9102b0 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/blob/38d9baea7bf81f6ef293f736daaca45c6a9102b0/packages/dev/core/src/Materials/Node/Blocks/PBR/clearCoatBlock.ts#L273)

---

<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:** [April 11, 2022, 4:02pm UTC](https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225/2 "2022-04-11T16:02:22Z")

</div>

cc @sebavan and @Evgeni_Popov

---

<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:** [April 11, 2022, 11:16pm UTC](https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225/3 "2022-04-11T23:16:55Z")

</div>

I guess I have the code locally but I kinda broke my devenv 🙂

I ll push the enhancement tomorrow

---

<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:** [April 12, 2022, 5:20pm UTC](https://forum.babylonjs.com/t/expose-worldnormal-input-in-nodematerial-clearcoatblock/29225/4 "2022-04-12T17:20:14Z")

</div>

Will be available in [Add normal input to clear coat Block by sebavan · Pull Request #12388 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/12388)
