[No coding] Editing Shaders

Information
Step 1
In this lesson we'll work on editing shaders, texture sheets and making stuff looks very metal/shiny!
Ezgif.com video to gif %286%29
Step 2
Create a new scene or stay on the current scene/project if you have Unity opened.
Temp1544473412
Step 3
It will be hard to see shaders on regular 3D cubes, spheres, etc. Let's use swords! Download this pack! (3.5mb)
Temp1544473161

Click on the Asset Store tab, look up "Basic Sword Pack" and import.

Temp1544473216 Temp1544473297
Step 4
Open the package folder, open the models folder, and choose a sword, click and drag it into the scene/hierarchy.
Temp1544475114

I chose an Ancient Sword.

Step 5
The sword current looks dark, let's rotate it first so we can see the long side facing up.
Step 6
The sword is too small, scale it to 2 for x,y,z. Then create a cube over it so half of the sword has a shadow.
Step 7
Select the sword in the Hierarchy and let's see what the inspector for this object is like!
Temp1544522894
Step 8
Change the shader type to Standard
Temp1544524527
Step 9
Hmm, we need a light to see how shiny the sword is. Let's make a point light! Create one in the Hierarchy.
Step 10
Let's move this point light up above the sword so it shines on it properly. And the light Icon is too big.
Temp1544526750

Click Gizmos near top right of Scene window and uncheck 3D Icons to make the giant light icon shrink/disappear.

Check Your Work
Step 11
Now we can click and drag our light around the sword to see it's shader's shininess!
Step 12
Now let's try editing our shader! First let's try changing the color tint.
Temp1544527418

Click color box for Albedo and then pick any color.

Step 13
Next let's try to Change the Metallic to maximum and then rotate the sword slowly. To see how it works with lighting.
Step 14
To make it look even more metal or crystal-like, let's also set the smoothness to maximum!
Information
Step 15
Let's now move onto texture sheets. Did you notice all the texture images in the project? They all connect to 3D models!
Temp1544528245
Step 16
Find that file, open the folder where it's located, and then open it with paint.

First Right click on the texture sheet image, Open in Explorer.

After opening it in the folder explorer, right click on the file, and then Open with Paint.

Planning
Step 17
Here we have all the sword parts mapped onto our 3D sword in Unity! Try to mess around, save it, and look at Unity!
Temp1544528892
Step 18
In Paint, let's draw something random all over, press CTRL+S to save, then switch back over to Unity. What do you see?

Even pasting images over into the texture sheet could work too!!

Information
Step 19
This works from how the sword is mapped from whichever 3D program it was created from.
Temp1544529636

3D programs that the sword was made in, could be Maya, Blender, SketchUp, Fusion 360, etc.

Step 20
Let us try one more shader type called "Unlit". Select the sword, change shader to Unlit>Color.
Temp1544529896
Step 21
This means to make the sword one single color that is always Lit or light up completely. So no light will reflect on it.
Temp1544530004
Step 22
Let's try Unlit>Texture next. This means it's using it's own texture sheet at 100% brightness, no shadows or light.
Temp1544530077
Step 23
This 3D model only has 1 shader on it, let's do another 3D model with multiple shaders!
Step 24
After downloading the Hedgehog, click and drag it into your project panel.
Step 25
You notice that a Materials folder is automatically created. This is where your 3D model's materials will be.
Temp1544557457
Step 26
Click and drag your 3D model into the Hierarchy. Click on the drop down arrow on it and click on "Circle" to select it.
Check Your Work
Step 27
With "Circle" selected, look at inspector on the right of the screen.

You'll see a list of 5 shaders all connected to the Hedgehog 3D model.

Temp1544557879
Step 28
In the Materials folder on your project panel, you'll see the same materials from this model.
Temp1544557965
Challenge
Step 29
Try changing the hedgehog's colors to any color you want using these 5 materials!
Temp1544558129
Challenge
Step 30
Play with more settings and customize this 3D model's shaders as much as needed!
Step 31
You're done with this lesson! Click submit and continue on the next part on Lighting!
[No coding] Editing Shaders Info

Account

MVCode Clubs

Created By

Nepgear tina (instructor)

Course:

[No coding] Unity Basics

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach