Skip to content

llOffsetTexture

void llOffsetTexture(float OffsetS, float OffsetT, integer Face)

Sets the texture S and T offsets for the chosen Face.

If Face is ALL_SIDES this function sets the texture offsets for all faces.

Parameters
OffsetS (float)
OffsetT (float)
Face (integer)
//Offsets the textures on 6 sides
float 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.

  • [llGetTextureOffset] - Returns a vector in the form (u, v, 0.0)