Game Development Reference
In-Depth Information
Now, click
Play
and behold the result:
Objective Complete - Mini Debriefing
Let's take a look at what we did here.
First, we added the new property (
_BumpMap
), which will be used to get the
surface normals
from our character.
Properies can be created by using the following syntax:
name ("display name", property type) = default value
F
name
is the name of property inside the shader script
F
display name
is the name that will be shown in the material inspector
F
property type
is the type of the property that we can use in our shader
programming, which can be
Range
,
Color
,
2D
,
Rect
,
Cube
,
Float
, or
Vector
F
default value
is the default value of our property