# Procedural material not working

**URL:** <https://forum.babylonjs.com/t/procedural-material-not-working/43889>\
**Category:** Questions\
**Tags:** material\
**Created:** [September 6, 2023, 7:11am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889 "2023-09-06T07:11:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reyna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/reyna/32/34841_2.png) [@Reyna](https://forum.babylonjs.com/u/Reyna)\
**Post date:** [September 6, 2023, 7:11am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/1 "2023-09-06T07:11:36Z")

</div>

Hello guys so I am having this problem where I created procedural terrain material inside Blender and when I upload it here in BabylonJs it doesnt load at all. Im very new to this. Should I make some type of shader inside Babylon or what are my options? Thank you for any kind of help!

 ![terrain](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/5/8572e8c1d92fce6bb105159babe5a218109cde82.jpeg)  
 ![this](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/5/b57641a85cd440983b7469d9d90c4aeb9179bab8.jpeg)

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [September 6, 2023, 7:42am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/2 "2023-09-06T07:42:12Z")

</div>

Hi! I’m no expert on getting shaders from blender to babylon, but an option could be to bake the generated material to a texture and using that in babylon: [https://www.youtube.com/watch?v=AioskAgcU2U](https://www.youtube.com/watch?v=AioskAgcU2U)

---

<div class="post-metadata">

**Author:** ![Reyna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/reyna/32/34841_2.png) [@Reyna](https://forum.babylonjs.com/u/Reyna)\
**Post date:** [September 6, 2023, 7:57am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/3 "2023-09-06T07:57:51Z")

</div>

Thank you for your reply! Yes, you are very right, I tried to do it that way but the texture I baked is extremely big so I cannot use it that way ☹ Im trying so many things now and I have no idea what Im missing. But thank you for trying to help, I appreciate it!

---

<div class="post-metadata">

**Author:** ![HedwigAR](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hedwigar/32/33214_2.png) [@HedwigAR](https://forum.babylonjs.com/u/HedwigAR)\
**Post date:** [September 6, 2023, 8:00am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/4 "2023-09-06T08:00:03Z")

</div>

Ah, I see. Have you seen this? [Blender to Babylon.js exporter | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/Exporters/Blender)

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [September 6, 2023, 8:12am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/5 "2023-09-06T08:12:58Z")

</div>

Maybe you could try just baking a low res mix map.

> **[Mix Material | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/assetLibraries/materialsLibrary/mixMat)**
>
> The Babylon.js materials library mix map textures.

---

<div class="post-metadata">

**Author:** ![Reyna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/reyna/32/34841_2.png) [@Reyna](https://forum.babylonjs.com/u/Reyna)\
**Post date:** [September 6, 2023, 8:18am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/6 "2023-09-06T08:18:58Z")

</div>

I tried it with this exporter and the mesh is having a black and red texture on it… but at least Its doing something haha

---

<div class="post-metadata">

**Author:** ![Reyna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/reyna/32/34841_2.png) [@Reyna](https://forum.babylonjs.com/u/Reyna)\
**Post date:** [September 6, 2023, 8:20am UTC](https://forum.babylonjs.com/t/procedural-material-not-working/43889/7 "2023-09-06T08:20:14Z")

</div>

Oh, I will try this, thank you for the tip.
