Difference between revisions of "LlScaleTexture"

From Second Life Wiki
Jump to navigation Jump to search
(texture scale detail)
Line 6: Line 6:
|p3_type=integer|p3_name=face
|p3_type=integer|p3_name=face
|func_footnote
|func_footnote
|func_desc=Sets the texture '''u''' & '''v''' scales for the chosen '''face'''
|func_desc=Sets the texture '''u''' & '''v''' scales for the chosen '''face'''. In the default texture mapping mode the scale units are in texture repeats per face. In the planar texture mapping mode the scale 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.
|return_text
|return_text
|spec
|spec

Revision as of 17:27, 27 March 2007

Summary

Function: llScaleTexture( float u, float v, integer face );

Sets the texture u & v scales for the chosen face. In the default texture mapping mode the scale units are in texture repeats per face. In the planar texture mapping mode the scale 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.

• float u
• float v
• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides.

Caveats

  • This function causes the script to sleep for 0.2 seconds.
  • The function silently fails if its face value indicates a face that does not exist.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llScaleTexture( float u, float v, integer face );