Game Development Reference
In-Depth Information
Illustration 7: The textured version of the scene
One of the interesting properties of shaders is Tiling . Tiling specifies how many times the
texture should be repeated on each surface of the object on both x and y coordinates of the
image of the texture. Offset , on the other hand, specifies whether the texture should be shif-
ted vertically or horizontally. We can make use of tiling to enhance the view of the objects.
Let's set tiling values for Sand to 5 on both x and y axes, and for Brick to 5 on x axis only.
As for Wood , each box surface should show the texture only once; therefore we keep the
tiling values at 1. You can see the final result in Illustration 7, the result can also be found
in the accompanying project in scene1 textured .
Search WWH ::




Custom Search