# PRIM_TEXGEN

*LSL constant*

```lsl
integer PRIM_TEXGEN = 22;
```

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

`PRIM_TEXGEN` is used to get and set the configure the texture mapping mode of the `face`.

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [PRIM_TEXGEN_DEFAULT](/constants/PRIM_TEXGEN_DEFAULT/) | integer | `0` | The texture repeats units are in texture repeats per face. |
| [PRIM_TEXGEN_PLANAR](/constants/PRIM_TEXGEN_PLANAR/) | integer | `1` | 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. |

<table>
	<tr>
		<th>`mode` Constants</th>
		<th></th>
		<th colspan="6">Description</th>
	</tr>
</table>

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [CHANGED_TEXTURE](/constants/CHANGED_TEXTURE/) |  |  |  |

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM TEXGEN](https://wiki.secondlife.com/wiki/PRIM_TEXGEN) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM TEXGEN (revision 1191149, 2014-06-07), Template:LSL Constants/PrimitiveParams/texgen (revision 1170132, 2012-07-03) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

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