Game Development Reference
In-Depth Information
Engage thrusters
Now, we will put the 3D model into our scene and start writing our custom shader. Follow
the ensuing steps:
1. First, we drag the Heroine model in the FBX folder from the Project view to the
Hierarchy view.
2. Next, we will click on the Heroine model in the Hierarchy view to bring its In-
spector view up. Then, we will go to the Inspector view and set the value of Y
under Rotation to 180 , as shown in the following screenshot:
3. If we go to the material component, we will see Diffuse applied to the shader in
this material, which has two properties, Main Color and Base (RGB) . Main Col-
or takes the color that we edited and then applies it to our model. Base (RGB)
takes the texture that is used for our model. Both properties can be edited and ad-
justed in the Unity editor to get the best look for our model, as shown in the fol-
lowing screenshot:
Search WWH ::




Custom Search