Creating a window material in Unity
Objective: Create a material in Unity that looks like a window
I wanted to create a material that would give the illusion that the object is a window and the player can see through it.
You can see the finished material above. It is very easy to create a window type material so let’s get started.
First have a game object that you want to attach the material to. I have created a 3D cube for this article.
Right-click in the project window -> create -> material. I rename my materials with the name then _mat. This makes it a lot easier to search the project in the future for materials, glass_mat.
Once it has been made, add it to the object so that any changes to the material can be seen in the scene view.
Now double-click the material so we can now make the changes. First we need to change the rendering mode of the material to transparent. I have set my material to have 0 metallic and .5 smoothness.
And thats it. If you want to have some reflections on your material you can change the smoothness to 1 and you will see some reflections appearing.