llScaleTexture(float horizontal, float vertical, integer side);
Sets the horizontal
repeats per face
. If side
, all sides are set in one call
. Negative values
will flip the texture.
Note that these parameters correspond to the "Repeats per Face Horizontal (U)" and the "Vertical (V)" boxes on the Texture tab of the in-world editing tool. There is another box on that panel, "Repeats per Meter". That per meter box calculates values for the other two boxes according to the size of the prim. To take an example, if you had an image that you wanted to tile equally onto four cube faces, you would set the horizontal and vertical parameters of llScaleTexture()
to 0.5 regardless of the size of the faces.
Note: This function delays
for 0.2 seconds.
Compare to llGetTextureScale
See also llSetPrimitiveParams
Q: How do I determine which side of an object this applies to?
A: See side.
Q: How do I set more than 1 side but only calling this parameter once?
A: You can only specify a single side or ALL_SIDES. To avoid multiple delays, use multiple instances of PRIM_TEXTURE in llSetPrimitiveParams.
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.