Creating Transparent Windows in Unity

Objective: learn how to create a transparent surface.

In the scene we worked in last time, we have two windows with mostly matching materials, but the glass of one of the windows isn’t transparent. To actually create a glass window, we need a transparent material.

Achieving this affect is easy enough. We can create a new material and change it’s rendering mode to transparent. This will allow any camera to be able to see any objects or environment on the other side of the surface.

By itself, this doesn’t fully make the surface transparent. We have to lower the alpha value of the color, which controls how “opaque” the surface is. The lower the alpha, the less of the surface we see and the more we see the things behind that surface.

After setting up the proper alpha and smoothness, our new glass material looks like this.

Now we can apply it to the unfinished window! Now we have a nice glass surface effect that game camera can properly see through.

--

--

--

I’m a passionate and talented software engineer seeking an opportunity in game development.

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

Recommended from Medium

Basic du command in Linux with Examples

3 Open-Source Projects You Can Join Right Now!

Building a Blog from the Ground-Up

API Gateway and a Service Mesh working together

Service Mesh and API Gateway

The Deterministic Finite Automata

Solutions for GeeksForGeeks interview coding question — Arrays

Data Mesh vs. Data Fabric: What Gives?!

Refactoring My First Bash Script

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
Blake Zoeckler

Blake Zoeckler

I’m a passionate and talented software engineer seeking an opportunity in game development.

More from Medium

2.5D Platformer: Creating a Physics-Based Character Controller

Enemies Straight Ahead!

P1: Creating a Gritty Office Den

Quick and Easy: Alter Your Pre-Built Unity Texture Maps using Krita.