Class MorphComposite
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Combines morph target deformations into GPU texture for facial animation rendering.
csharp
public class MorphCompositeInheritance
Constructors
MorphComposite(RendererContext, Morph)
Initializes the morph composite for the given morph data, uploading the atlas and building the vertex buffer.
csharp
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.
csharp
public RenderTexture CompositeTexture { get; }Property Value
Methods
Render()
Composites all active morph targets into .
csharp
public void Render()SetMorphValue(int, float)
Sets the blend weight for the specified morph target and marks its rects as active or inactive.
csharp
public void SetMorphValue(int morphId, float value)Parameters
morphId int
Morph target identifier.
value float
Blend weight to apply.

