Template:VMT UVtransform: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
* The default position is: <code>"center .5 .5 scale 1 1 rotate 0 translate 0 0"</code>.
*The default position is <code>"center .5 .5 scale 1 1 rotate 0 translate 0 0"</code>.
:* "center" values are [[UV map|UV]] 0.1 coordinates.
*# <code>center</code> defines the point of rotation. Only useful if <code>rotate</code> is being used.
:* "scale" values are [[UV map|UV]] factors.
*# <code>scale</code> fits the texture into the material the given number of times. '<code>2 1</code>' is a 50% scale in the X axis.
:* "translate" values are [[UV map|UV]] 0.1 coordinates.
*# <code>rotate</code> rotates the texture ''anti''-clockwise. Accepts any number, including negatives.
:* "rotate" values are 0-360 degree [[UV map|UV]] angles.
*# <code>translate</code> shifts the texture by the given number of heights/widths. '<code>.5</code>' will shift it half-way.
:* Note : ''You must include all variables.''
*:{{note|''All values'' must be included!}}

Revision as of 04:48, 12 July 2008

  • The default position is "center .5 .5 scale 1 1 rotate 0 translate 0 0".
    1. center defines the point of rotation. Only useful if rotate is being used.
    2. scale fits the texture into the material the given number of times. '2 1' is a 50% scale in the X axis.
    3. rotate rotates the texture anti-clockwise. Accepts any number, including negatives.
    4. translate shifts the texture by the given number of heights/widths. '.5' will shift it half-way.
    Note.pngNote:All values must be included!