Skip to content
lsl.devlsl.devLSL Dev

PRIM_TEXTURE

constant
Constant
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 · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

Used to get or set the Blinn-Phong diffuse texture settings of a prim’s face.

  • 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 texture mapping tg_type the texture repeats units are in texture repeats per face. In the 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.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.