Table of Contents

Struct SimpleVertexNormal

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Simple vertex with position, color, and normal for debug rendering.

public record struct SimpleVertexNormal : IEquatable<SimpleVertexNormal>

Implements

Inherited Members

Constructors

SimpleVertexNormal(Vector3, Color32, Vector3)

Simple vertex with position, color, and normal for debug rendering.

public SimpleVertexNormal(Vector3 Position, Color32 Color, Vector3 Normal)

Parameters

Position Vector3
Color Color32
Normal Vector3

SimpleVertexNormal(Vector3, Color32)

public SimpleVertexNormal(Vector3 Position, Color32 Color)

Parameters

Position Vector3
Color Color32

Fields

SizeInBytes

public static readonly int SizeInBytes

Field Value

int

Properties

Color

public Color32 Color { readonly get; set; }

Property Value

Color32

Normal

public Vector3 Normal { readonly get; set; }

Property Value

Vector3

Position

public Vector3 Position { readonly get; set; }

Property Value

Vector3

Methods

BindDefaultShaderLayout(int, int)

public static void BindDefaultShaderLayout(int vao, int shaderProgram)

Parameters

vao int
shaderProgram int