Texturing your Prefabs
While the mechanics of the game have been developed, we're still using our initial place holder prefabs. We can add a texture to the prefabs really easily and it should hopefully improve the look of the game immensely.
Import the package texturesAndMaterials.unitypackage from the files for this chapter, you should have the following new files:
Materials/crate.mat
Materials/moonsurface.mat
Materials/rock_seamless_256.mat
Scripts/AstroDude.shader
Skyboxes/MoonReflection.cubemap
Textures/astrod00d_selfillum.tif
Textures/flag.png
Textures/moonsurface.tif
Textures/moonsurface_normals.tif
Textures/stars.tif
First things first, we need to update some of the materials and textures to be better suited to our prefabs. Click on Textures/ rock_seamless_256, and in the Inspector panel, change the Max Size to 64 as shown in the following screenshot. Do the same with rocks_normals, moonsurface, and moonsurface_normals:
It's because our materials and textures came from the...