Share via


ModelProcessor.ProcessVertexChannel Method

Processes geometry content vertex channels at the specified index.

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

Syntax

protected virtual void ProcessVertexChannel (
         GeometryContent geometry,
         int vertexChannelIndex,
         ContentProcessorContext context
)

Parameters

  • geometry
    The geometry content to process.
  • vertexChannelIndex
    Index of the vertex channel to process.
  • context
    Context for the specified processor.

Remarks

This function will be called for each VertexChannel of Vertices found in the input mesh. Subclasses of ModelProcessor can override ProcessVertexChannel to control how vertex data is processed. The default implementation converts VertexElementUsage.Color channels to Color format, and replaces Weights channels with a pair of VertexElementUsage.BlendIndices and VertexElementUsage.BlendIndices channels (using Byte4 format for the VertexElementUsage.BlendWeight, Color for the VertexElementUsage.BlendWeight, and discarding excess weights if there are more than four per vertex).

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista