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
|
Color
Diffuse
Declaration
public struct MaterialSlotEntry::@136 Diffuse
Field Value
struct MaterialSlotEntry::@136
|
Emissive
Declaration
public struct MaterialSlotEntry::@137 Emissive
Field Value
struct MaterialSlotEntry::@137
|
HasAlphaMask
Declaration
public bool HasAlphaMask = false
Field Value
bool
|
Name
Normals
Declaration
public struct MaterialSlotEntry::@140 Normals
Field Value
struct MaterialSlotEntry::@140
|
Opacity
Declaration
public struct MaterialSlotEntry::@138 Opacity
Field Value
struct MaterialSlotEntry::@138
|
Roughness
Declaration
public struct MaterialSlotEntry::@139 Roughness
Field Value
struct MaterialSlotEntry::@139
|
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
|
Methods
ShininessToRoughness(float shininess)
Declaration
public static float ShininessToRoughness(float shininess)
Parameters
float
shininess
|
Returns
float
|
UsesProperties()
Declaration
public bool UsesProperties() const
Returns
bool
|