llOffsetTexture
function
Function syntax
llOffsetTexture(float u,// Horizontal (U) offset, typically in the interval [-1.0, 1.0].float v,// Vertical (V) offset, typically in the interval [-1.0, 1.0].integer face// Face number orALL_SIDES. Values: Faces
);- Delay
- 0.2 s
- Energy
- 10
Sets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face is ALL_SIDES, offsets all faces.
Sets the texture u & v offsets for the chosen face.
llOffsetTexture(0.0, 0.0, 0);Examples
Section titled “Examples”Example 1
//Offsets the textures on 6 sidesfloat offset;default{ state_entry() { integer i;
for( i = 1; i < 7; i++ ) { offset = offset + .1; llOffsetTexture( (float)offset, (float)offset, i); } }}If you use vector offsetVec = llGetTextureOffset() to get the vector of the current offset, then u = offsetVec.x and v = offsetVec.y
See also
Section titled “See also”Functions
Section titled “Functions”llGetTextureOffset— Returns a vector in the form<u, v, 0.0>
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.