Using Materials and Textures in Unity

Kinga Osińska
5 min readJun 7, 2021

--

Today we will talk about materials and textures. I will show you how elements of this scene were build.

To follow along you can go to asset store and download this project here:

Open the Environment_Start scene. We will go though all this elements to see how to use textures and materials.

First think you need to know is that you need to generate the lighting for your scene. Go to Window ->Rendering ->Lightining Setting and check if Auto Generate is checked

If it is, your lightning will be generated everytime you change something in your scene. It may take a while. It depends on how good in your computer and how many GameObject are in the scene.

Let’s look at the pillars first.

When you import models to Unity, they will look like the pillar on the right. After importing you will need to and textures and materials to make it look like the pillar on the left.

To do this, we need to select the pillar go to the material that is attached to this pillar and find the Albedo parameter and click on the circle with a dot inside. Find the texture that is called “BlackMarbleColumn” and select it. You can see that the pillar is starting to look similar.

The pillar is not dark enough and the tiling of the texture is too big. We will change it now. Go to tiling and change it to 4 on x and y. I also change the offset so the pattern match and it is easier to compare.

Change the Metallic parameter to about 0.8 and Smoothness to 0.35 to make is more metallic and to make it more smooth. Also, change the albedo color to make it darker.

Let’s go to the next element.

If you select the column on the right you can see that it shares two materials on one object. This are called Sub Meshes.

To make this column look like it supposed to we need to make three new materials. Go to the Materials folder and create: “Black_mat”, “Gold_Diamond_mat” and “White_wall_mat”.

Attach the materials to the right places on the Objects.

Change the Albedo parameter in the black and white materials to Black Marble and White Marble. Change the Metallic ans Smoothness.

In the GoldDecor Object change the Albedo color and make it smooth and metallic.

The end result is pretty similar. To make it look better, you need to spend more time with the parameters available.

Next, I will show you how to make glass material.

Create a new material called Glass_mat. Change the rendering mode to Transparent. This is what will allow us to see though the object. Add the material as the Element3 in you Object. The rest of the materials are made the same as in the previous example so I will skip it.

Change the transparent channel in the Albedo color selection to about 0.1. Also, change Metallic to 0 and Smoothess to almost 1. Change the color to black.

--

--