Syntax

integer llIsLinkGLTFMaterial( integer link, integer face );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer link
Link to inspect for PBR, may be LINK_THIS or LINK_ROOT
integer face
Face to examine for PBR, or ALL_SIDES

Return value

Returns a boolean (an integer) that is TRUE if the material is PBR and FALSE if it is Blinn-Phong diffuse texture on face

Caveats

Examples

//Tells (on chat) if the materials are PBR
default
{
    state_entry()
    {
        integer i = 0;
        integer max = llGetNumberOfSides();
        while(i < max)
        {
            string message = "Side " + (string)i + " material is ";
            if (llIsLinkGLTFMaterial(LINK_THIS, i))
                message += "GLTF/PBR";
            else
                message += "Blinn-Phong";
            llSay(0, message);
            ++i;
        }

        if (llIsLinkGLTFMaterial(LINK_THIS, ALL_SIDES))
            llSay(0, "All sides are PBR");
        else
            llSay(0, "Some sides are not PBR");
    }
}

See also

Functions