# PRIM_TEXTURE

*LSL constant*

```lsl
integer PRIM_TEXTURE = 17;
```

Prim parameter [PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians] to get or set the Blinn-Phong diffuse texture settings of a face.

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

Used to get or set the [Blinn-Phong](https://wiki.secondlife.com/wiki/PBR_Materials#nomenclature-changes) diffuse texture settings of a prim'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.
- In the [default](/constants/PRIM_TEXGEN_DEFAULT/) [texture mapping](/constants/PRIM_TEXGEN/) **tg_type** the [texture](/constants/PRIM_TEXTURE/) **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

### Constants

- [CHANGED_TEXTURE](/constants/CHANGED_TEXTURE/)
- [TEXTURE_BLANK](/constants/TEXTURE_BLANK/)
- [TEXTURE_DEFAULT](/constants/TEXTURE_DEFAULT/)
- [TEXTURE_PLYWOOD](/constants/TEXTURE_PLYWOOD/)
- [TEXTURE_TRANSPARENT](/constants/TEXTURE_TRANSPARENT/)
- [TEXTURE_MEDIA](/constants/TEXTURE_MEDIA/)

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llSetTexture](/functions/llSetTexture/)
- [llSetLinkTexture](/functions/llSetLinkTexture/)
- [llScaleTexture](/functions/llScaleTexture/)
- [llOffsetTexture](/functions/llOffsetTexture/)
- [llRotateTexture](/functions/llRotateTexture/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM TEXTURE](https://wiki.secondlife.com/wiki/PRIM_TEXTURE) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM TEXTURE (revision 1215662, 2023-11-30) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

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