omega-game-engine
    Preparing search index...

    Interface MtlMaterial

    MtlMaterial Represents a single material definition parsed from an MTL file.

    interface MtlMaterial {
        d?: number;
        illum?: number;
        Ka?: vec4;
        Kd?: vec4;
        Ke?: vec4;
        Ks?: vec4;
        map_Bump?: string;
        map_Kd?: string;
        map_Ks?: string;
        name: string;
        Ni?: number;
        Ns?: number;
    }
    Index

    Properties

    d?: number

    Dissolve (alpha/transparency), a value from 0.0 (fully transparent) to 1.0 (fully opaque). *

    illum?: number

    Illumination model, specified by an integer code. *

    Ka?: vec4

    Ambient color (rgba). *

    Kd?: vec4

    Diffuse color (rgba), often represents the base color. *

    Ke?: vec4

    Emissive color (rgba), for self-illuminated objects. *

    Ks?: vec4

    Specular color (rgba). *

    map_Bump?: string

    Path to the bump map or normal map file. *

    map_Kd?: string

    Path to the diffuse texture map file. *

    map_Ks?: string

    Path to the specular texture map file. *

    name: string

    The name of the material, as defined by the newmtl tag. *

    Ni?: number

    Optical density (index of refraction). *

    Ns?: number

    Specular exponent (shininess), typically a value from 0 to 1000. *