Property | Type | Description | |
---|---|---|---|
CreateVegetationGeometry | Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent | ||
GenerateBillboard | void | ||
GenerateVegetation | void | ||
PickRandomPoint | void |
Method | Description | |
---|---|---|
Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent |
Override the main Process method.
|
Method | Description | |
---|---|---|
CreateVegetationGeometry ( float width, float height, float windAmount, Microsoft.Xna.Framework.Content.Pipeline.ContentIdentity identity ) : Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent |
Helper function creates a new geometry object, and sets it to use our billboard effect.
|
|
GenerateBillboard ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent mesh, Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent geometry, Vector3 position, Vector3 normal ) : void |
Helper function adds a single new billboard sprite to the output geometry.
|
|
GenerateVegetation ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent node, Microsoft.Xna.Framework.Content.Pipeline.ContentIdentity identity ) : void |
Recursive function adds vegetation billboards to all meshes.
|
|
PickRandomPoint ( Vector3 position1, Vector3 position2, Vector3 position3, Vector3 normal1, Vector3 normal2, Vector3 normal3, Vector3 &randomPosition, Vector3 &randomNormal ) : void |
Helper function chooses a random location on a triangle.
|
public Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent | ||
input | Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent | |
context | ContentProcessorContext | |
return | Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent |