# 3d glass rendering

**URL:** <https://forum.defold.com/t/3d-glass-rendering/80496>\
**Category:** The Defoldmine\
**Created:** [May 14, 2025, 5:00pm UTC](https://forum.defold.com/t/3d-glass-rendering/80496 "2025-05-14T17:00:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasterMind](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mastermind/32/31839_2.png) [@MasterMind](https://forum.defold.com/u/MasterMind)\
**Post date:** [May 14, 2025, 5:00pm UTC](https://forum.defold.com/t/3d-glass-rendering/80496/1 "2025-05-14T17:00:47Z")

</div>

[![glass_itchb](https://forum-defold-uploads.b-cdn.net/original/3X/c/0/c092be18dd864f4d3c2da60824fc3240736f0623.png)](https://flexyourbrain.itch.io/3dglass-rendering-defold)  
click banner to play a demo on itch

I put together a sample project showing one way to render 3d glass type models. I had a need for it in a game I am currently working on and decided to share a basic setup project for anyone interested. The glass needs to render transparency and also any topology inside the model, The rendering is done in 2 passes one for the back faces and another for the front faces with a combination blending method, one for each. The shading is just basic diffuse lighting. Cheers~

[https://github.com/FlexYourBrain/sample\_3dGlass\_POP](https://github.com/FlexYourBrain/sample_3dGlass_POP)

---

<div class="post-metadata">

**Author:** ![hipp0](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/hipp0/32/40734_2.png) [@hipp0](https://forum.defold.com/u/hipp0)\
**Post date:** [August 28, 2025, 1:30pm UTC](https://forum.defold.com/t/3d-glass-rendering/80496/2 "2025-08-28T13:30:07Z")

</div>

Is it possible to make a glass sphere with an object inside of it like a character?

I would like to make glowing ghost like characters in a glass ball.

---

<div class="post-metadata">

**Author:** ![MasterMind](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mastermind/32/31839_2.png) [@MasterMind](https://forum.defold.com/u/MasterMind)\
**Post date:** [August 31, 2025, 1:57pm UTC](https://forum.defold.com/t/3d-glass-rendering/80496/3 "2025-08-31T13:57:25Z")

</div>

I don’t see why not, you should try it out.
