Struct SimpleVertexNormal ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Simple vertex with position, color, and normal for debug rendering.
csharp
public record struct SimpleVertexNormal : IEquatable<SimpleVertexNormal>Implements ​
IEquatable<SimpleVertexNormal>
Constructors ​
SimpleVertexNormal(Vector3, Color32, Vector3) ​
Simple vertex with position, color, and normal for debug rendering.
csharp
public SimpleVertexNormal(Vector3 Position, Color32 Color, Vector3 Normal)Parameters ​
Position Vector3
Color Color32
Normal Vector3
SimpleVertexNormal(Vector3, Color32) ​
Initializes a with a zero normal.
csharp
public SimpleVertexNormal(Vector3 Position, Color32 Color)Parameters ​
Position Vector3
Vertex position.
Color Color32
Vertex color.
Fields ​
SizeInBytes ​
Size of a in bytes.
csharp
public static readonly int SizeInBytesField Value ​
Properties ​
Color ​
csharp
public Color32 Color { readonly get; set; }Property Value ​
Normal ​
csharp
public Vector3 Normal { readonly get; set; }Property Value ​
Position ​
csharp
public Vector3 Position { readonly get; set; }Property Value ​
Methods ​
BindDefaultShaderLayout(int, int) ​
Enables and configures the position, color, and normal vertex attributes on the given VAO.
csharp
public static void BindDefaultShaderLayout(int vao, int shaderProgram)Parameters ​
vao int
Target vertex array object.
shaderProgram int
Shader program used to look up attribute locations.

