Game Development Reference
In-Depth Information
•
Default
: This shader inherits its texture from the
Sprite Renderer
texture to draw
the sprite as is. This is a very basic functionality—just enough to draw the sprite.
(It contains its own static lighting.)
•
Diffuse
: This shader is the same as the
Default
shader; it inherits the texture of
Default
, but it requires an external light source as it does not contain any light-
ing—this has to be applied separately. It is a slightly more advanced shader,
which includes offsets and other functions.
Creating one of these materials and applying it to the
Sprite Renderer
texture of a sprite
will override its default constrained behavior. This opens up some additional shader op-
tions in the
Inspector
, as shown in the following screenshot: