Skip to content

Class MaterialData

Namespace: Apogee.Content
Assembly: Apogee.Content.dll

glTF's metallic-roughness material.

public sealed class MaterialData

Inheritance

object ← MaterialData

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

AlphaCutoff

public float AlphaCutoff { get; init; }

Property Value

float

AlphaMode

public AlphaMode AlphaMode { get; init; }

Property Value

AlphaMode

BaseColorFactor

public Vector4 BaseColorFactor { get; init; }

Property Value

Vector4

BaseColorTexture

public TextureRef? BaseColorTexture { get; init; }

Property Value

TextureRef?

DoubleSided

public bool DoubleSided { get; init; }

Property Value

bool

EmissiveFactor

Emitted color, already multiplied by KHR_materials_emissive_strength.

public Vector3 EmissiveFactor { get; init; }

Property Value

Vector3

EmissiveTexture

public TextureRef? EmissiveTexture { get; init; }

Property Value

TextureRef?

MetallicFactor

public float MetallicFactor { get; init; }

Property Value

float

MetallicRoughnessTexture

Roughness in green, metalness in blue.

public TextureRef? MetallicRoughnessTexture { get; init; }

Property Value

TextureRef?

Name

public string Name { get; init; }

Property Value

string

NormalScale

public float NormalScale { get; init; }

Property Value

float

NormalTexture

public TextureRef? NormalTexture { get; init; }

Property Value

TextureRef?

OcclusionStrength

public float OcclusionStrength { get; init; }

Property Value

float

OcclusionTexture

Ambient occlusion in red.

public TextureRef? OcclusionTexture { get; init; }

Property Value

TextureRef?

RoughnessFactor

public float RoughnessFactor { get; init; }

Property Value

float

Unlit

KHR_materials_unlit: shown as the base color, without lighting.

public bool Unlit { get; init; }

Property Value

bool