Class RenderableMesh
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
GPU-ready mesh with draw calls, materials, and optional skeletal animation support.
public class RenderableMeshInheritance
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
meshMeshmeshIndexintsceneScenemodelModel?initialMaterialTableDictionary<string, string>?morphMorph?isAggregatebool
Properties
Alpha
public float Alpha { get; set; }Property Value
BoneMatricesGpu
public StorageBuffer? BoneMatricesGpu { get; }Property Value
BoneWeightCount
public int BoneWeightCount { get; }Property Value
BoundingBox
public AABB BoundingBox { get; }Property Value
DrawCalls
public IEnumerable<DrawCall> DrawCalls { get; }Property Value
DrawCallsBlended
public List<DrawCall> DrawCallsBlended { get; }Property Value
DrawCallsOpaque
public List<DrawCall> DrawCallsOpaque { get; }Property Value
DrawCallsOverlay
public List<DrawCall> DrawCallsOverlay { get; }Property Value
FlexStateManager
public FlexStateManager? FlexStateManager { get; }Property Value
MeshBoneCount
public int MeshBoneCount { get; }Property Value
MeshBoneOffset
public int MeshBoneOffset { get; }Property Value
MeshIndex
public int MeshIndex { get; }Property Value
Meshlets
public List<Meshlet> Meshlets { get; }Property Value
Name
public string Name { get; }Property Value
Tint
public Vector4 Tint { get; set; }Property Value
Methods
CreateMesh(string, RenderMaterial, VBIB, AABB, RendererContext)
public static RenderableMesh CreateMesh(string name, RenderMaterial material, VBIB vertexIndexBuffers, AABB bounds, RendererContext renderContext)Parameters
namestringmaterialRenderMaterialvertexIndexBuffersVBIBboundsAABBrenderContextRendererContext
Returns
GetSupportedRenderModes()
public IEnumerable<string> GetSupportedRenderModes()Returns
ReplaceMaterials(Dictionary<string, string>)
public void ReplaceMaterials(Dictionary<string, string> materialTable)Parameters
materialTableDictionary<string, string>
SetBoneMatricesBuffer(StorageBuffer?)
public void SetBoneMatricesBuffer(StorageBuffer? buffer)Parameters
bufferStorageBuffer?
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
resourceMaterialResource