Search Results for

    Show / Hide Table of Contents

    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

    Declaration
    public Color Color = Color::White
    Field Value
    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

    The slot name.

    Declaration
    public String Name
    Field Value
    String

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat