Simple3D
Search Results for

    Show / Hide Table of Contents

    Class Material

    Immutable opaque flat material using packed 0xAARRGGBB color.

    Inheritance
    object
    Material
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public sealed class Material

    Constructors

    | Edit this page View Source

    Material(uint, bool, bool)

    Creates an opaque material. Transparent colors are rejected.

    Declaration
    public Material(uint color = 4286356991, bool lit = true, bool doubleSided = true)
    Parameters
    Type Name Description
    uint color
    bool lit
    bool doubleSided

    Properties

    | Edit this page View Source

    Color

    Opaque packed 0xAARRGGBB color.

    Declaration
    public uint Color { get; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    DoubleSided

    Whether back faces are rendered.

    Declaration
    public bool DoubleSided { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Lit

    Whether fixed directional lighting affects the color.

    Declaration
    public bool Lit { get; }
    Property Value
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX