Struct MaterialSlotEntry
Model material slot entry that describes model mesh appearance.
Assembly: FlaxEngine.dll
File: Engine/Graphics/Models/ModelData.h
Syntax
public struct MaterialSlotEntry
Fields
AssetID
The material asset identifier (material or material instance).
Declaration
public Guid AssetID
Field Value
|
Guid
|
Channel
Declaration
public uint8 Channel = 0
Field Value
|
uint8
|
Color
Diffuse
Declaration
public struct MaterialSlotEntry::@138 Diffuse
Field Value
|
struct MaterialSlotEntry::@138
|
Emissive
Declaration
public struct MaterialSlotEntry::@139 Emissive
Field Value
|
struct MaterialSlotEntry::@139
|
HasAlphaMask
Declaration
public bool HasAlphaMask = false
Field Value
|
bool
|
Metalness
Declaration
public struct MaterialSlotEntry::@142 Metalness
Field Value
|
struct MaterialSlotEntry::@142
|
Name
Normals
Declaration
public struct MaterialSlotEntry::@143 Normals
Field Value
|
struct MaterialSlotEntry::@143
|
Opacity
Declaration
public struct MaterialSlotEntry::@140 Opacity
Field Value
|
struct MaterialSlotEntry::@140
|
Roughness
Declaration
public struct MaterialSlotEntry::@141 Roughness
Field Value
|
struct MaterialSlotEntry::@141
|
ShadowsMode
Gets or sets shadows casting mode by this visual element
Declaration
public ShadowsCastingMode ShadowsMode = ShadowsCastingMode::All
Field Value
|
ShadowsCastingMode
|
TextureIndex
Declaration
public int32 TextureIndex = -1
Field Value
|
int32
|
TwoSided
Declaration
public bool TwoSided = false
Field Value
|
bool
|
Value
Declaration
public float Value = 1.0f
Field Value
|
float
|
Wireframe
Declaration
public bool Wireframe = false
Field Value
|
bool
|
Methods
ShininessToRoughness(float shininess)
Declaration
public static float ShininessToRoughness(float shininess)
Parameters
|
float
shininess
|
Returns
|
float
|
UsesProperties()
Declaration
public bool UsesProperties() const
Returns
|
bool
|