Glass Shader
Glass Material Shader
Quality
Users can select between a simple, efficient rendering method or a more accurate, physically accurate shading technique.
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7df3355079.png)
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7dfb475aa5.png)
Glass Blur
The shader allows for control over glass blur by adjusting roughness values. A slider can be used to modulate the blur effect.
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7db4935bc2.png)
Refraction
The index of refraction can be adjusted within the shader to achieve desired visual effects.
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b8494e70ae7.png)
Overlay Layer
This feature is useful when adding elements on top of the glass material, such as grime or grating patterns.
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7e196487f2.png)
Shadows
Shadows are approximated by the diffraction of glass, and can be controlled by adjusting the albedo tint color and roughness values.
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7e5af769ee.png)
![image.png](https://files.facepunch.com/wiki/files/76d7b/8db3b7e5de031b3.png)