Creating a Transparent Window Effect in Unity

In my last article, I applied materials and textures to some 3D game assets. My objective for this article is to complete the window materials and textures by creating a transparent glass material.

Here is the starting point on the left, and the finished product on the right.

The first object is a small window ledge at the bottom of the glass. This takes the same white marble material that I created in my last article.

The window wall has four materials to assign to different sub-meshes.

I already have white and black marble materials, so all I need now are metal and glass materials. The metal material is pretty simple, using a light grey color on the Albedo channel, as well as a healthy amount of metallic reflectivity and smoothness.

The metal material now gets assigned too the second element.

Now on to the good stuff…glass! The main thing to note here is the Rendering Mode. Typically, this is set to opaque by default. Using the Transparent setting is what really enables the glass effect! There is no metallic property added but quite a lot of smoothness.

Now that the rendering mode is using Transparent, we can go into the Albedo channel and reduce the Alpha channel dramatically to gain transparency.

This window appears to have a dark tint to it, so I change the color to black in the Albedo channel, and bring the Alpha level back up a little.

The glass material is now assigned via the inspector.

Now both window walls are looking pretty good!

Thanks for reading along! I hope you join me in my next article where I have fun with sky boxes!

--

--

--

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.

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

Recommended from Medium

Creating a video chat app

Introducing Cardalonia Ambassador Program

Create simple chatbots with Laravel and BotMan under 5 minutes

What’s the pubspec.lock file in a Flutter Project?

High Availability Architecture with AWS CLI

Benefits of Flutter: mobile-first development with Google’s Flutter.

Mastering Oracle Data Guard 21c In Less Than 4 Hours

Suraj’s Goal @ Dynatrace APJ

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
Jared Amlin

Jared Amlin

I am an artist and musician, that is currently diving headfirst into game development with C# and Unity3D.

More from Medium

HitBox Attack System in Unity

How to switch between Cinemachine cameras in Unity

Orbital Transposer Virtual Camera Explained in Unity’s Cinemachine

Player Movement in Unity