Struct HammerMeshBuilder.Corner ​
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Data of one face corner, as the source mesh had it. A stream the source doesn't have is left null and gets a computed value: the face normal, a tangent from it, and planar mapped texture coordinates.
csharp
public readonly record struct HammerMeshBuilder.Corner : IEquatable<HammerMeshBuilder.Corner>Implements ​
IEquatable<HammerMeshBuilder.Corner>
Constructors ​
Corner(Vector2?, Vector2?, Vector3?, Vector4?, Vector4?, Vector4?) ​
Data of one face corner, as the source mesh had it. A stream the source doesn't have is left null and gets a computed value: the face normal, a tangent from it, and planar mapped texture coordinates.
csharp
public Corner(Vector2? TexCoord = null, Vector2? TexCoord1 = null, Vector3? Normal = null, Vector4? Tangent = null, Vector4? VertexPaintBlendParams = null, Vector4? VertexPaintTintColor = null)Parameters ​
TexCoord Vector2?
TexCoord1 Vector2?
Normal Vector3?
Tangent Vector4?
VertexPaintBlendParams Vector4?
VertexPaintTintColor Vector4?
Properties ​
Normal ​
csharp
public Vector3? Normal { get; init; }Property Value ​
Tangent ​
csharp
public Vector4? Tangent { get; init; }Property Value ​
TexCoord ​
csharp
public Vector2? TexCoord { get; init; }Property Value ​
TexCoord1 ​
csharp
public Vector2? TexCoord1 { get; init; }Property Value ​
VertexPaintBlendParams ​
csharp
public Vector4? VertexPaintBlendParams { get; init; }Property Value ​
VertexPaintTintColor ​
csharp
public Vector4? VertexPaintTintColor { get; init; }
