# Create cheap glass compatible with nanite

**URL:** <https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563>\
**Category:** Asset Creation\
**Tags:** glass, unreal-engine, question\
**Created:** [April 15, 2023, 7:37pm UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563 "2023-04-15T19:37:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Texn0krat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Texn0krat](https://forums.unrealengine.com/u/Texn0krat)\
**Post date:** [April 15, 2023, 7:37pm UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/1 "2023-04-15T19:37:00Z")

</div>

Hi. I want to create a glass material but it should be compatible with nanite. I don’t need a realistic glass, simple illusion will be enough for me. the only thing I found is that example:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/6/d767e6f6f8ac12358e0cf17b543156534bd754f4.jpeg)  
but when I’m trying to re-create it by myself, I’m getting awful result:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/2/3226963172bd90d0842a6b85c16bd007d3642da3.jpeg)  
My material (I deleted nodes with custom texture because I don’t have one):  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/8/1c8408712889ed511f0f1627555bb8daaf8b00bf.jpeg)  
I thought material should capture things around and show it to camera, but seems like that material doesn’t work that way. Can you help me?

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [April 16, 2023, 11:12am UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/2 "2023-04-16T11:12:38Z")

</div>

It could be that you are missing reflection captures in your scene, which cause the result to not look as good. In the **Place Actors** panel you can find actors which has to do with reflections. Drag them out into the scene and build reflection, which hopefully helps you get a better reflection on your meshes.

---

<div class="post-metadata">

**Author:** ![Texn0krat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Texn0krat](https://forums.unrealengine.com/u/Texn0krat)\
**Post date:** [April 16, 2023, 12:51pm UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/3 "2023-04-16T12:51:10Z")

</div>

I’m using lumen reflections, so I suppose I don’t need reflection captures in scene. Oh, and I’ve disabled static lightning so I can’t use “build reflection captures” option.

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [April 17, 2023, 8:47pm UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/4 "2023-04-17T20:47:38Z")

</div>

I’m the person who authored the example material you found. You need a scene capture cube for the fake transparency to work.

You don’t necessarily need it for the reflections if you are using Lumen reflections. The transparent look is achieved by sampling an environment texture of the scene. It looks bad because you just have a default skybox cubemap.

This cubemap texture can update in real time, but it can be expensive, so it’s best to only capture the updated reflection occasionally, or save it as a texture and leave it static.

There isn’t a way to sample the reflection probes in a material without modifying the engine.

---

<div class="post-metadata">

**Author:** ![tomaaron872](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomaaron872](https://forums.unrealengine.com/u/tomaaron872)\
**Post date:** [June 2, 2023, 12:30am UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/5 "2023-06-02T00:30:01Z")

</div>

Do you mind sharing the original post/video?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [June 2, 2023, 12:38am UTC](https://forums.unrealengine.com/t/create-cheap-glass-compatible-with-nanite/1034563/6 "2023-06-02T00:38:43Z")

</div>

There isn’t much more to the original post that is taken from. But here it is:

> [@Is there a way to "bake" reflections for the 360 Panoramic Capture? Any ways to have the reflections on the render?](https://forums.unrealengine.com/t/is-there-a-way-to-bake-reflections-for-the-360-panoramic-capture-any-ways-to-have-the-reflections-on-the-render/528603/8):
>
> As other suggested you can use a capture component to generate a cube map. This can be very high quality, and then saved as a texture. Then you would use the reflection vector as the coordinates for the Cubemap sample within your material. This cubemap can also be used reused to make a fake refraction/transparency. Here is an example material I made that uses a cubemap for both reflections and transparency. Notice the roughness is set to 1 yet it still appear to have a sharp reflecti…
