llSetLinkRenderMaterial
void llSetLinkRenderMaterial(integer LinkNumber, string RenderMaterial, integer Face)Sets the Render Material of Face on a linked prim, specified by LinkNumber. Render Material may be a UUID or name of a material in prim inventory.
Parameters
-
LinkNumber(integer) -
RenderMaterial(string) -
Face(integer)
Cover a link set in the material my_material:
default{ touch_start(integer detected) { llSetLinkRenderMaterial(LINK_SET, my_material, ALL_SIDES); }}Caveats
Section titled “Caveats”- If
materialis provided asNULL_KEY, the glTF Material is removed from the face, reverting back to any underlying Blinn-Phong materials. - This function will clear most PRIM_GLTF_* properties on the face, with the exceptions of repeats, offsets, and rotation_in_radians.
See Also
Section titled “See Also”- llSetLinkAlpha
- llSetLinkColor
- llSetLinkPrimitiveParams
- Internal Materials