<?xml version="1.0" encoding="utf-8"?>
<foliageType>
    <!-- sorghum

    0 1 2 3

    1 0 0 0 - invisible
    0 1 0 0 - green small
    1 1 0 0 - green middle
    0 0 1 0 - green big
    1 0 1 0 - harvest ready
    0 1 1 0 - dead
    1 1 1 0 - harvested (cut)

    -->
    <foliageLayer cellSize="8" objectMask="16711935" decalLayer="0" densityMapChannelOffset="0" numDensityMapChannels="4" numBlocksPerUnit="1.6" shapeSource="sorghum.i3d">
        <foliageStateDefaults distanceMapLayer="1" width="1.0" height="1.0" widthVariance="0.1" heightVariance="0.2" horizontalPositionVariance="0.15" />
        <!-- default LOD distances etc -->
        <foliageLodDefaults lod="0" viewDistance="18" blendOutDistance="2" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
        <foliageLodDefaults lod="1" viewDistance="80" blendOutDistance="2" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
        <!-- 1 0 0 0 - invisible -->
        <foliageState name="invisible" />
        <!-- 0 1 0 0 - green small -->
        <foliageState name="green small" numBlocksPerUnit="2.7" distanceMap="distance/foliage_sorghum_distance2_diffuse.png" >
            <foliageShape>
                <foliageLod blockShape="0>0|0" />
                <foliageLod blockShape="0>1|0" />
            </foliageShape>
        </foliageState>
        <!-- 1 1 0 0 - green middle -->
        <foliageState name="green middle" numBlocksPerUnit="2.0" distanceMap="distance/foliage_sorghum_distance3_diffuse.png" >
            <foliageShape>
                <foliageLod blockShape="0>0|1" />
                <foliageLod blockShape="0>1|1" />
            </foliageShape>
        </foliageState>
        <!-- 0 0 1 0 - green big -->
        <foliageState name="green big" distanceMap="distance/foliage_sorghum_distance4_diffuse.png" >
            <foliageShape>
                <foliageLod blockShape="0>0|2" />
                <foliageLod blockShape="0>1|2" />
            </foliageShape>
        </foliageState>
        <!-- 1 0 1 0 - harvest ready -->
        <foliageState name="harvest ready" distanceMap="distance/foliage_sorghum_distance5_diffuse.png" >
            <foliageShape>
                <foliageLod blockShape="0>0|3" />
                <foliageLod blockShape="0>1|3" />
            </foliageShape>
        </foliageState>
        <!-- 0 1 1 0 - dead -->
        <foliageState name="dead" distanceMap="distance/foliage_sorghum_distance6_diffuse.png" >
            <foliageShape>
                <foliageLod blockShape="0>0|4" />
                <foliageLod blockShape="0>1|4" />
            </foliageShape>
        </foliageState>
        <!-- 1 1 1 0 - harvested (cut) -->
        <foliageState name="harvested" height="0.75">
            <foliageShape>
                <foliageLod blockShape="0>0|5" />
                <foliageLod blockShape="0>1|5" />
            </foliageShape>
        </foliageState>
        <!--  -->
    </foliageLayer>
</foliageType>
