# Diamond Using Nodes

**URL:** <https://forum.babylonjs.com/t/diamond-using-nodes/23178>\
**Category:** Questions\
**Tags:** documentation, blender, lighting, material, shader\
**Created:** [August 18, 2021, 5:17pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178 "2021-08-18T17:17:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madquake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/madquake/32/17503_2.png) [@Madquake](https://forum.babylonjs.com/u/Madquake)\
**Post date:** [August 18, 2021, 5:17pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/1 "2021-08-18T17:17:16Z")

</div>

Hello,  
I started a new post about diamonds as in the first one I started asking different questions about lights, shadows, etc.

So I made a new tread just for this.  
I set up the node material, and I’ll keep updating this.

I didn’t study programming in Uni (I studied art), so I may be slower than real programmers to grasp the concepts… but I started using Babylon exactly two days ago… so I am quite proud of my progresses.

This is the playground.  
[https://playground.babylonjs.com/#FEEK7G#331](https://playground.babylonjs.com/#FEEK7G#331)

The node setup is linked inside.

If you like to follow, play with it or ask questions it would be great, so I can also benefit from the answers 😅

---

<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:** [August 18, 2021, 5:31pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/2 "2021-08-18T17:31:25Z")

</div>

Pretty neat!

---

<div class="post-metadata">

**Author:** ![Madquake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/madquake/32/17503_2.png) [@Madquake](https://forum.babylonjs.com/u/Madquake)\
**Post date:** [August 18, 2021, 6:02pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/3 "2021-08-18T18:02:40Z")

</div>

Thank you!!!  
I have to say I have been helped a lot!!!

I hope that slowly I manage to make a nice shader and help other newbies!!!

---

<div class="post-metadata">

**Author:** ![Madquake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/madquake/32/17503_2.png) [@Madquake](https://forum.babylonjs.com/u/Madquake)\
**Post date:** [August 19, 2021, 4:06pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/4 "2021-08-19T16:06:46Z")

</div>

I just wanted to share the progression… (is quite small… I know… but I had to watch tutorials etc 😅 )

[https://playground.babylonjs.com/#FEEK7G#338](https://playground.babylonjs.com/#FEEK7G#338)

I am working on making the diamonds iridescent… then I’ll be working on creating transparency and refraction…

---

<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:** [August 20, 2021, 3:18pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/5 "2021-08-20T15:18:18Z")

</div>

This is pretty good already!

---

<div class="post-metadata">

**Author:** ![Madquake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/madquake/32/17503_2.png) [@Madquake](https://forum.babylonjs.com/u/Madquake)\
**Post date:** [August 20, 2021, 3:42pm UTC](https://forum.babylonjs.com/t/diamond-using-nodes/23178/6 "2021-08-20T15:42:32Z")

</div>

I have been watching the tutorial of @PatrickRyan on the creation of a die made of acrylic.  
The technique is really cool also because it generated the back of the material. I think that the same technique can be used to generate the extremely refractive material of a diamond… Together with an iridescent material, it could work really well.

At the moment the problem is that the rgb channel mix just in the last lerp… so basically the one I posted shows blue and green shades.  
Also I used the normals of the world to make sure that each face reflects in a different colour… but it is not the right node in my opinion… it should be something that reflects a particular colour depending on the tangent from the camera I guess

P.S. I am still learning them… so probably I didn’t encounter the right node yet…
