# llSetLinkRenderMaterial

*LSL function*

```lsl
void llSetLinkRenderMaterial(integer link, string material, integer face);
```

- `integer link`: Link number (1 for root, >1 for children) or a LINK_* flag.
- `string material`: Name of a material in the prim's inventory, or a UUID.
- `integer face`: Face number or ALL_SIDES.

- Delay: 0.2 s
- Energy: 10

If a prim exists in the link set at **link**, set **material** on **face** of that prim. This function will clear most [PRIM_GLTF\_\*](https://wiki.secondlife.com/wiki/LlSetPrimitiveParams) properties on the face, with the exceptions of repeats, offsets, and rotation_in_radians

```lsl title="How to use" frame="terminal"
llSetLinkRenderMaterial(0, "", 0);
```

## Caveats

- If **material** is provided as [NULL_KEY](/constants/NULL_KEY/), the [glTF Material](https://wiki.secondlife.com/wiki/PBR_Materials) is removed from **face**, reverting back to any underlying [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) materials.

## Examples

<details open>
<summary>Cover a link set in the material my_material</summary>

```lsl
default
{
    touch_start(integer detected)
    {
        llSetLinkRenderMaterial(LINK_SET, my_material, ALL_SIDES);
    }
}
```

</details>

## See also

### Functions

- [llSetLinkAlpha](/functions/llSetLinkAlpha/)
- [llSetLinkColor](/functions/llSetLinkColor/)

### Articles

- [Internal Materials](https://wiki.secondlife.com/wiki/Internal_Materials)

---

*Source: [LlSetLinkRenderMaterial](https://wiki.secondlife.com/wiki/LlSetLinkRenderMaterial) on the Second Life Wiki. Content from the Second Life Wiki articles LlSetLinkRenderMaterial (revision 1218991, 2026-08-24), Template:LSL Function/inventory (revision 1191151, 2014-06-07) and Template:LSL Function/link-face (revision 1186827, 2014-01-12), CC BY-SA 3.0.*

---

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