docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialSpecular

    This extension allows configuring the specular reflection.

    Inheritance
    object
    MaterialSpecular
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: GLTFast.Schema
    Assembly: glTFast.dll
    Syntax
    [Serializable]
    public class MaterialSpecular

    Fields

    specularColorFactor

    The F0 color of the specular reflection (linear RGB).

    Declaration
    public float[] specularColorFactor
    Field Value
    Type Description
    float[]
    See Also
    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

    specularColorTexture

    A texture that defines the F0 color of the specular reflection, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by specularColorFactor.

    Declaration
    public TextureInfo specularColorTexture
    Field Value
    Type Description
    TextureInfo
    See Also
    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

    specularFactor

    The strength of the specular reflection.

    Declaration
    public float specularFactor
    Field Value
    Type Description
    float
    See Also
    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

    specularTexture

    A texture that defines the strength of the specular reflection, stored in the alpha (A) channel. This will be multiplied by specularFactor.

    Declaration
    public TextureInfo specularTexture
    Field Value
    Type Description
    TextureInfo
    See Also
    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

    Properties

    SpecularColor

    The F0 color of the specular reflection (linear RGB).

    Declaration
    public Color SpecularColor { get; set; }
    Property Value
    Type Description
    Color
    See Also
    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

    See Also

    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)