Game Development Reference
In-Depth Information
6.
Then, go to the
Textures
folder, and click on
Normal.tga
to bring up its
Inspector
view. In the
Inspector
view, change the
(Texture Importer)
|
Texture Type
to
Normal
Map
, then uncheck
Generate from greyscale
, and click on the
Apply
buton, as
shown in the following screenshot:
Why do we set it up this way? First, we want our model scale factor
default equal to 1. Then, we set the
Texture Type
for the
Normal.tga
to
Normal map
type, which we will use for the bump map.
Engage Thrusters
Here, we will put the 3D model into our scene and start wriing our custom shader
programming:
1. First, we drag the
Heroine.FBX
model in the
FBX
folder from the
Project
view to
the
Hierarchy
view.
2. Next, we will click on the
Heroine.FBX
model in the
Hierarchy
view to bring up its
Inspector
view. Then, we will go to the
Inspector
view and set rotaion
Y
to
180
, as
shown in the following screenshot: