ModelProcessor.ProcessGeometryUsingMaterial Method

Note

This method is available only when developing for Windows.

Processes all geometry using a specified material.

Syntax

'Declaration
Protected Overridable Sub ProcessGeometryUsingMaterial ( _
         material As MaterialContent, _
         geometryCollection As IEnumerable(Of GeometryContent), _
         context As ContentProcessorContext _
)
protected virtual void ProcessGeometryUsingMaterial (
         MaterialContent material,
         IEnumerable<GeometryContent> geometryCollection,
         ContentProcessorContext context
)
protected:
virtual void ProcessGeometryUsingMaterial(
         MaterialContent material,
         IEnumerable<GeometryContent> geometryCollection,
         ContentProcessorContext context
)

Parameters

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. The 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.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Processors

Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

See Also

Reference

ModelProcessor Class
ModelProcessor Members
Microsoft.Xna.Framework.Content.Pipeline.Processors Namespace

Platforms

Windows 7, Windows Vista, Windows XP