Setting up Windows in Unity

Hal Brooks
Aug 5, 2021

Objective: Create a glass material to behave like a window.

Before and after adding mats, including Glass_mat, to Window Wall.

In Unity environmental objects require materials to give then different appearances in game. Above we see on the left the window with a standard shader. To get a window that passes light through it, as shown on the right, create a material named Glass_mat. The default sets the Rendering mode to opaque. Change the rendering mode to transparent. The mat is still opaque until the albedo transparency, A, is decreased, as shown below.

Creating a transparent material

Add the new Glass_mat to Materials element3, see below, and suddenly the window passes light through the pane. Element0 is for the white wall. Element1 is for the Black marble trim at the bottom, and element2 is the metal rails framing the window pane.

Materials assigned to the Window Wall.

--

--