# llIsLinkGLTFMaterial

*LSL function*

```lsl
integer integer llIsLinkGLTFMaterial(integer link, integer face);
```

- `integer link`: Link number (or LINK_* flag) of the prim to inspect.
- `integer face`: Face number (or ALL_SIDES) of the prim to inspect.

- Returns: `integer`
- Energy: 10

Checks the specified face on the linked prim link. Returns TRUE if the face material is a PBR render material, or FALSE if it uses Blinn-Phong diffuse textures.

Returns an [integer](https://wiki.secondlife.com/wiki/integer) that is [TRUE](/constants/TRUE/) if the material is PBR and [FALSE](/constants/FALSE/) if it is [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) diffuse texture on **face**

```lsl title="How to use" frame="terminal"
integer result = llIsLinkGLTFMaterial(0, 0);
```

## Caveats

- Returns [FALSE](/constants/FALSE/) if link does not exist or refers to a multi-link target (such as [LINK_SET](/constants/LINK_SET/)).
- Returns [FALSE](/constants/FALSE/) if face does not exist.

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={1-8}
//Tells (on chat) if the materials are PBR
default
{
    state_entry()
    {
        integer link = LINK_THIS;
        integer i;
        for(; i < llGetLinkNumberOfSides(link); ++i)
        {
            string message = "Side " + (string)i + " material is ";
            if (llIsLinkGLTFMaterial(link, i))
                message += "glTF/PBR";
            else
                message += "Blinn-Phong";
            llSay(0, message);
        }

        if (llIsLinkGLTFMaterial(link, ALL_SIDES))
            llSay(0, "All sides are PBR.");
        else
            llSay(0, "Some sides are Blinn-Phong (not PBR).");
    }
}
```

</details>

## See also

### Functions

- [llGetNumberOfSides](/functions/llGetNumberOfSides/) — Gets the number of faces on the prim

---

*Source: [LlIsLinkGLTFMaterial](https://wiki.secondlife.com/wiki/LlIsLinkGLTFMaterial) on the Second Life Wiki. Content from the Second Life Wiki article LlIsLinkGLTFMaterial (revision 1219007, 2026-08-24), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llIsLinkGLTFMaterial/
