Using Materials in Unity

Creating Transparent Window Effect in Unity

Going from Solid to Transparent

First step is to create a Material that I can use for the glass and assign it to the GameObject.

Next I use the Standard Shader setting the Rendering Mode to Transparent. How transparent this material is depends on the alpha channel of the Albedo texture and the tint color.

I use the Albedo tint color to get the look that I am going for. I changed the alpha value to 47, and change the color to black. notice that I can get some interesting effects by using different colors. A white color gives me a more frosted look.

Glass reflects light and you can things that are in front of the glass like a mirror.To get this effect I have to adjust the Smoothness. The higher the smoothness the more of the environment the object will reflect.

Now I have a window in my scene.

--

--

--

Excited about changing my hobby into a new carer with GameDevHQ course.

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

Recommended from Medium

Things i’ve learned from my 2-month Internship at GO-JEK

Kubernetes Certification: Everything you need to know to pass the CKA!

Using GitLab CI with GCP Workload Identity Federation.

The open source revolution in the Italian Public Administration

Kubernetes Simplified: RBAC basics

BlueLora: Mile-wide Sensor Networks

Emacs and PlantUML for UML Diagrams — Academic Tools

[Deprecated] How does Bitmatrix V1 multiply two integers in the absence of OP_MUL?

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
James Lafritz

James Lafritz

Excited about changing my hobby into a new carer with GameDevHQ course.

More from Medium

Creating A Scene Template In Unity 2020.2 And Above

Loading Scenes In Unity

Pushing Objects in Unity

Working with Unity’s 2D Tilemaps