Introduction
This article demonstrates how to apply materials, shaders, and textures to objects in Unity.
Prerequisites
Unity Environment version 5.6.1
Step 1 Create object
First, you have to open the Unity 3D project. The Unity window looks like this,
Select the GameObject menu in menu bar. The GameObject Menu has several objects to create a game. Select 3D object and pick the cube option.
The cube object will be display in the Scene View.
Increase the object size using Scaling tool. Pull the arrow for x-axis, y-axis and z-axis. The object size can be increased.
Step 2 Create materials
Select the Assets menu in menu bar. Select "Create" and pick the "Material" option.
The material is displayed in the assets. Now change the material name to red.
Select the Material (red) and click the color box. Color box is displayed on the left side. Choose the red color. The color is applied to your material (red).
Drag the red and drop it in the cube. The object can be changed into a red color.
Step 3 Create shaders and textures
Right click on the assets, Select Import the asset.
Already I have brick wall images. If you want to apply any other images, you can apply them. Now I have selected brick wall image. Click to Import button.
The brick wall image is added into assets. Select the image drag and drop the image into object. The object can be changed fully to a brick wall. Now the new material added into the assets.
Now delete the brick wall image and double click on the new material. Delete the brick wall material.
Select the material, press F2, and rename the new material to Textures.
Now, double click on the textures, open the brick wall image, and drag and drop the image into Textures.
Right click on the assets, select Create and pick the Material option.
Give the name for the Brick wall.
Select the Brick wall and go to standard list box. Choose the Legacy shaders and pick Diffuse option.
When you select diffuse, the window is displayed like this.
Click on the select option in your right side. Select Texture window open in your left side. Double click on the Brick wall. The brick wall material can be changed.
Now, drag and drop the Brick wall in your object. The object is fully changed into a brick wall. It’s in a darker shade.
Pick the red marked tool. Press alt key and scroll the mouse. You can see all sides in your object with brick wall fully applied.
Step 4
Now, select the red material and go to standard list box. Choose the Legacy shaders and pick specular option.
The object can be displayed in more shine.
Summary
I hope, you understood how to apply materials, shaders and textures to objects in Unity.