ModelProcessor.ProcessGeometryUsingMaterial Method
Processes all geometry using a specified material.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
protected virtual void ProcessGeometryUsingMaterial (
MaterialContent material,
IEnumerable<GeometryContent> geometryCollection,
ContentProcessorContext context
)
Parameters
- material
A material used in the scene. - geometryCollection
A collection of all the geometry using the specified material. - context
Context for the specified processor.
Remarks
This function will be called for each material used by geometry in the input mesh, passing in a collection of all the geometry that is using the specified material. T he default implementation replaces null materials with a default BasicMaterialContent, validates that the geometry contains texture coordinates if a BasicMaterialContent has a texture, and sets the VertexColorEnabled property depending on whether the geometry contains vertex color data.
See Also
Reference
ModelProcessor Class
ModelProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace
Platforms
Windows XP SP2, Windows Vista