# How to change color according to height in Node Geometry Editor?

**URL:** <https://forum.babylonjs.com/t/how-to-change-color-according-to-height-in-node-geometry-editor/43978>\
**Category:** Questions\
**Tags:** geometry-nodes\
**Created:** [September 10, 2023, 1:11am UTC](https://forum.babylonjs.com/t/how-to-change-color-according-to-height-in-node-geometry-editor/43978 "2023-09-10T01:11:26Z")\
**Posts on this page:** 3\
**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:** [September 10, 2023, 1:11am UTC](https://forum.babylonjs.com/t/how-to-change-color-according-to-height-in-node-geometry-editor/43978/1 "2023-09-10T01:11:26Z")

</div>

I’m currently trying to see if I can express the `Grand Canyon` by combining a height map and a node geometry editor.

> **[Babylon.js Playground](https://playground.babylonjs.com/#JI7CRS%238)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/c/8c4b5d644ffd2bf2707005835819d076995527e7.jpeg)

If possible, I would like to change the color depending on the height, but that didn’t work. Can you tell me how to do it?  
For example, I would like to make it green (land) if it is above the ground, and blue (river) if it is below the ground.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 11, 2023, 11:26am UTC](https://forum.babylonjs.com/t/how-to-change-color-according-to-height-in-node-geometry-editor/43978/2 "2023-09-11T11:26:53Z")

</div>

Hello! I don’t think you can change the color in an instance per instance basis, but you can change the individual vertices colors depending on the position:  
[Node Geometry Editor Test | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#JI7CRS#12)

Note that you could also use NME for this: [Node Geometry Editor Test | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#JI7CRS#13)

---

<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:** [September 11, 2023, 1:01pm UTC](https://forum.babylonjs.com/t/how-to-change-color-according-to-height-in-node-geometry-editor/43978/3 "2023-09-11T13:01:31Z")

</div>

Thank you for teaching me that. I think I probably achieved what I wanted to do.

> **[Babylon.js Playground](https://playground.babylonjs.com/#JI7CRS%2314)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/1/2196852b9024b568294891d34e7da89b81b13e3b.jpeg)

Thank you for teaching me how to do NME as well. I don’t know much about NGE/NME, so I would like to try various things.
