Class MorphComposite
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Combines morph target deformations into GPU texture for facial animation rendering.
public class MorphCompositeInheritance
Remarks
The composite is twice as wide as the morph set: the position/speed field is accumulated into the left half and the normal/wrinkle field into the right half, matching Valve's compositor. Both fields are accumulated additively over every active morph rect.
Constructors
MorphComposite(RendererContext, Morph)
Initializes the morph composite for the given morph data, uploading the atlas and building the vertex buffer.
public MorphComposite(RendererContext renderContext, Morph morph)Parameters
renderContext RendererContext
Renderer context for loading shaders and textures.
morph Morph
Morph data describing the morph targets and atlas layout.
Properties
CompositeTexture
Gets the GPU texture containing the composited morph target offsets.
public RenderTexture CompositeTexture { get; }Property Value
Methods
Render()
Composites all active morph targets into .
public void Render()SetMorphValue(int, float)
Sets the blend weight for the specified morph target and marks its rects as active or inactive.
public void SetMorphValue(int morphId, float value)Parameters
morphId int
Morph target identifier.
value float
Blend weight to apply.

