docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialIor

    The dielectric BRDF of the metallic-roughness material in glTF uses a fixed value of 1.5 for the index of refraction. This is a good fit for many plastics and glass, but not for other materials like water or asphalt, sapphire or diamond. This extension allows users to set the index of refraction to a certain value.

    Inheritance
    object
    MaterialIor
    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 MaterialIor

    Fields

    defaultIndexOfRefraction

    Default index of refraction. A good compromise for most opaque, dielectric materials.

    Declaration
    public const float defaultIndexOfRefraction = 1.5
    Field Value
    Type Description
    float
    See Also
    https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#dielectrics

    ior

    The index of refraction.

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

    See Also

    https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_ior
    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)