Class MorphTargetBuilderTMaterialTvGTvSTvM

MorphTargetBuilder<TMaterial,TvG,TvS,TvM> class

Represents the vertex deltas of a specific morph target. UseMorphTarget

public sealed class MorphTargetBuilder<TMaterial, TvG, TvS, TvM> : IMorphTargetBuilder
    where TvG : struct, IVertexGeometry
    where TvS : struct, IVertexSkinning
    where TvM : struct, IVertexMaterial
ParameterDescription
TMaterialThe material type used by the base mesh.
TvGThe vertex geometry type used by the base mesh.
TvSThe vertex skinning type used by the base mesh.
TvMThe vertex material type used by the base mesh.

Properties

NameDescription
Positions { get; }
Vertices { get; }

Methods

NameDescription
GetVertices(Vector3)Gets a collection of vertices sharing this vertex position.
SetVertex(TvG, TvG)
SetVertex(TvG, VertexBuilder<TvG, TvM, VertexEmpty>)
SetVertexDelta(TvG, VertexGeometryDelta)
SetVertexDelta(Vector3, VertexGeometryDelta)
SetVertexDelta(TvG, VertexGeometryDelta, VertexMaterialDelta)
SetVertexDelta(Vector3, VertexGeometryDelta, VertexMaterialDelta)

Remarks

Morph targets are stored separately on each PrimitiveBuilder, so connecting vertices between two primitives might be duplicated. This means that when we set a displaced vertex, we must be sure we do so for all instances we can find.

See Also