Game Development Reference
In-Depth Information
1.
Drag each of the plants from the Project view into the garden in the scene.
2.
Create an Empty GameObject, and name it Garden Plants .
3.
Drag all of the plants onto the new parent object.
4.
Select Garden Plants, and check Static in the Inspector.
5.
Choose “Yes, change children” in the dialog.
6.
Rotate the Sunflower and CornStalk to face the view (Figure 4-37 ).
Figure 4-37. The plant assets
Upon examination, you will find three types of plants in the collection. The simplest are little more
than crossed planes. Besides the Tomato (which you saw in your terrain test), you have Carrots.
Both of these two use images to simulate thick bushy foliage. Because there are basically only two
or three crossed planes, you will not want the plants to receive shadows, and they must render the
image on both sides of the planes. The Soft Occlusion shaders used for the terrain plants will be a
good choice.
1.
Move the TomatoPlant near the Carrots so you will be able to compare shaders.
2.
Change the shader on the Carrot to Nature/Tree Soft Occlusion Leaves.
3.
Adjust its Base Light value to make it slightly brighter.
4.
Change the shader on the TomatoPlant to Transparent/Cutout/Soft
Edge Unlit.
 
Search WWH ::




Custom Search