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

Disable two-finger swipe left/right page navigation gesture of Chromium-based browsers on macOS.

Graphs Data Structure: Depth First Search

Hardware and Software ft You.

Development of the App for Audiobooks Selling — Joy Dev Blog

caMicroscope Development Environment

How Redis manages it storage in a distributed concept and how it handles the failover and utilize…

RFC: Eng Team Handbook—An open-sourced guide to leading engineering teams

How you deal with thinking in depths of complexity

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

In just 4 steps, Make a modular moving platform in Unity

How to Make the Camera Shake Using Impulse Listener Extensions in Cinemachines Virtual Cameras

Script communication in unity using GetComponent:

Adding a burst laser powerup