Difference between revisions of "Template:VMT UVtransform"

From Valve Developer Community
Jump to: navigation, search
m
(Added bug)
Line 5: Line 5:
 
:# <code>translate</code> shifts the texture by the given number of heights/widths. '<code>.5</code>' will shift it half-way.
 
:# <code>translate</code> shifts the texture by the given number of heights/widths. '<code>.5</code>' will shift it half-way.
 
:{{note|''All values'' must be included!}}
 
:{{note|''All values'' must be included!}}
 +
:{{bug|Scaling the texture may cause odd issues where the Texture Lock tool in Hammer will not actually lock the texture in place.}}

Revision as of 17:31, 18 July 2015

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:All values must be included!
Bug: Scaling the texture may cause odd issues where the Texture Lock tool in Hammer will not actually lock the texture in place.