# Trouble porting Procedural Planet demo to playground

**URL:** <https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583>\
**Category:** Questions\
**Created:** [October 25, 2019, 4:15pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583 "2019-10-25T16:15:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thrice](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thrice/32/105_2.png) [@thrice](https://forum.babylonjs.com/u/thrice)\
**Post date:** [October 25, 2019, 4:15pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/1 "2019-10-25T16:15:02Z")

</div>

I’ve been trying to get the procedural planet demo working locally, mainly for the lighting aspect in a custom planet shader, but I am running into issues. Locally, it spams my console with [.WebGL-0x7fcc6105b400]RENDER WARNING: there is no texture bound to the unit 0 (and unit 1)

But the cloud / noise textures are created and work correctly if I put them on a plane.

So I put into a playground, and while I don’t see the gl errors, I am still unable to make it work correctly. (only the halo shows, and the color doesn’t seem to be fetched from the texture properly).

[https://playground.babylonjs.com/#D1RZSA#10](https://playground.babylonjs.com/#D1RZSA#10)

I am wondering if it’s something with the textureCube function, and or the vNormals and what not, because I believe no texture bound to the unit 0 (and unit 1) can be triggered if there are invalid texture lookup coordinates?

Anyone have any ideas? Tagging @Deltakosh since I believe you made that demo

(if you rotate the camera you can see the textures on planes).

---

<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:** [October 27, 2019, 7:53am UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/2 "2019-10-27T07:53:39Z")

</div>

Well here the first problem is that the procedural config file is not found. So not easy to help you debug 🙂

> <https://github.com/BabylonJS/Website/blob/master/build/Demos/Procedural/land/config.json>

---

<div class="post-metadata">

**Author:** ![thrice](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thrice/32/105_2.png) [@thrice](https://forum.babylonjs.com/u/thrice)\
**Post date:** [October 27, 2019, 7:39pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/3 "2019-10-27T19:39:41Z")

</div>

Thanks Delta. I’m probably going to go a different route, so not a big deal, but the procedural texture documentation states that the config file is no longer needed unless I am missing something? (Says you can set them as uniforms normally now, which I’m doing in the PG).

---

<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:** [October 28, 2019, 3:14pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/4 "2019-10-28T15:14:26Z")

</div>

It is still required to set up other infos ☹

---

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [July 19, 2020, 6:39pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/5 "2020-07-19T18:39:03Z")

</div>

How would one go about setting the dirtAmplifier uniform for the custom texture in this playground?

[https://www.babylonjs-playground.com/#24C4KC#17](https://www.babylonjs-playground.com/#24C4KC#17)

---

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [July 19, 2020, 6:47pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/6 "2020-07-19T18:47:06Z")

</div>

customProcText.setFloat(“dirtAmplifier”, 20.0);

doesn’t seem to do anything.

---

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [July 19, 2020, 6:50pm UTC](https://forum.babylonjs.com/t/trouble-porting-procedural-planet-demo-to-playground/6583/7 "2020-07-19T18:50:15Z")

</div>

OK, I’m seeing it now:

[https://www.babylonjs-playground.com/#24C4KC#41](https://www.babylonjs-playground.com/#24C4KC#41)
