Table of Contents

Class RenderableMesh

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

GPU-ready mesh with draw calls, materials, and optional skeletal animation support.

public class RenderableMesh

Inheritance

Inherited Members

Constructors

RenderableMesh(Mesh, int, Scene, Model?, Dictionary<string, string>?, Morph?, bool)

public RenderableMesh(Mesh mesh, int meshIndex, Scene scene, Model? model = null, Dictionary<string, string>? initialMaterialTable = null, Morph? morph = null, bool isAggregate = false)

Parameters

mesh Mesh
meshIndex int
scene Scene
model Model?
initialMaterialTable Dictionary<string, string>?
morph Morph?
isAggregate bool

Properties

Alpha

public float Alpha { get; set; }

Property Value

float

BoneMatricesGpu

public StorageBuffer? BoneMatricesGpu { get; }

Property Value

StorageBuffer?

BoneWeightCount

public int BoneWeightCount { get; }

Property Value

int

BoundingBox

public AABB BoundingBox { get; }

Property Value

AABB

DrawCalls

public IEnumerable<DrawCall> DrawCalls { get; }

Property Value

IEnumerable<DrawCall>

DrawCallsBlended

public List<DrawCall> DrawCallsBlended { get; }

Property Value

List<DrawCall>

DrawCallsOpaque

public List<DrawCall> DrawCallsOpaque { get; }

Property Value

List<DrawCall>

DrawCallsOverlay

public List<DrawCall> DrawCallsOverlay { get; }

Property Value

List<DrawCall>

FlexStateManager

public FlexStateManager? FlexStateManager { get; }

Property Value

FlexStateManager?

MeshBoneCount

public int MeshBoneCount { get; }

Property Value

int

MeshBoneOffset

public int MeshBoneOffset { get; }

Property Value

int

MeshIndex

public int MeshIndex { get; }

Property Value

int

Meshlets

public List<Meshlet> Meshlets { get; }

Property Value

List<Meshlet>

Name

public string Name { get; }

Property Value

string

Tint

public Vector4 Tint { get; set; }

Property Value

Vector4

Methods

CreateMesh(string, RenderMaterial, VBIB, AABB, RendererContext)

public static RenderableMesh CreateMesh(string name, RenderMaterial material, VBIB vertexIndexBuffers, AABB bounds, RendererContext renderContext)

Parameters

name string
material RenderMaterial
vertexIndexBuffers VBIB
bounds AABB
renderContext RendererContext

Returns

RenderableMesh

GetSupportedRenderModes()

public IEnumerable<string> GetSupportedRenderModes()

Returns

IEnumerable<string>

ReplaceMaterials(Dictionary<string, string>)

public void ReplaceMaterials(Dictionary<string, string> materialTable)

Parameters

materialTable Dictionary<string, string>

SetBoneMatricesBuffer(StorageBuffer?)

public void SetBoneMatricesBuffer(StorageBuffer? buffer)

Parameters

buffer StorageBuffer?

SetMaterialCombo((string ComboName, byte ComboValue))

public void SetMaterialCombo((string ComboName, byte ComboValue) combo)

Parameters

combo (string ComboName, byte ComboValue)

SetMaterialForMaterialViewer(Resource)

public void SetMaterialForMaterialViewer(Resource resourceMaterial)

Parameters

resourceMaterial Resource