# PRIM_GLTF_METALLIC_ROUGHNESS

*LSL constant*

```lsl
integer PRIM_GLTF_METALLIC_ROUGHNESS = 47;
```

Prim parameter to get or set the GLTF occlusion/metallic/roughness override of a face. Requires face, texture, repeats, offsets, rotation, metallic_factor, and roughness_factor arguments.

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the [GLTF](https://wiki.secondlife.com/wiki/GLTF_Overrides) occlusion/metallic/roughness override of an object's `face`.

## Caveats

- **repeats** is not only used to set the number of repeats but the sign of the individual components is also used to set the "Flip" attribute.
- To clear any override parameters, supply an empty string ("") in the parameter slot.
- In the [default](/constants/PRIM_TEXGEN_DEFAULT/) [texture mapping](/constants/PRIM_TEXGEN/) **tg_type** the [texture](/constants/PRIM_GLTF_METALLIC_ROUGHNESS/) **repeats** units are in texture repeats per face. In the [planar](/constants/PRIM_TEXGEN_PLANAR/) texture mapping mode the texture **repeats** units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.

## See also

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)

---

*Source: [PRIM GLTF METALLIC ROUGHNESS](https://wiki.secondlife.com/wiki/PRIM_GLTF_METALLIC_ROUGHNESS) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM GLTF METALLIC ROUGHNESS (revision 1219001, 2026-08-24) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_GLTF_METALLIC_ROUGHNESS/
