How To Create Transparent Glass Materials In Unity

To start, let’s create a material. You can do this by right-clicking within the project menu and selecting Create>Material. I’m gonna name the material for this example “Glass_mat”.

Once you have a material created, you can customize a number of things within it.

To create transparent objects such as glass, change the “Rendering Mode” option to “Transparent”.

Clicking on the “Albedo” option’s color box allows you to change the RGB color value, as well as the material’s “Alpha” which affects its transparency.

The higher the Alpha, the less transparent the material is. A zero alpha would leave something completely transparent.

Here is an example of a cube with a standard shader. The rendering mode is set to “Opaque” and a texture of marble stone is applied to the “Albedo”.

Here is an example of a cube with a standard shader once again, but this time the rendering mode is set to “Transparent”, the “Smoothness” to 1, and the “Alpha Channel” within the “Albedo Color Picker” is set to 0.

Hi, my name is Adam Reed and I am a software engineer specializing in Unity and C# development. Feel free to scroll through and check out some of my work!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The unexpected journey of deploying a SonarQube Azure App Service

How to install Kubernetes Cluster on Container Linux (CoreOS)

Top 20 Junior Software Developer Interview Questions & Answers

Maluva and DRC

Answer industry course game large.

How to analyze Google Ads Leads in Google Spreadsheets

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Reed

Adam Reed

Hi, my name is Adam Reed and I am a software engineer specializing in Unity and C# development. Feel free to scroll through and check out some of my work!

More from Medium

Cleaning up the Homing Missile code

10 Commonly Used HTML Tags

Hidden Shortcuts to Make Level Design Easier in Unity.

Making Elevators In A Unity Platformer