From Valve Developer Community
Jump to navigation
Jump to search
|
|
Line 1: |
Line 1: |
| {{lang|{{FULLPAGENAME}}|Template: VMT UV Transform}} | | {{DISPLAYTITLE:Template: VMT UV Transform}} |
| <onlyinclude><includeonly>{{#switch:{{{suf|}}} | | <onlyinclude><includeonly>{{#switch:{{{suf|}}} |
| |#default=:The default position is {{MdCode|outline|center .5 .5 scale 1 1 rotate 0 translate 0 0}}. | | |#default=:The default position is {{MdCode|outline|center .5 .5 scale 1 1 rotate 0 translate 0 0}}. |
Revision as of 06:04, 10 December 2022

Available doc translations
…
English
Template with text.
Parameters
{{{suf}}} - Optional. This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it).
Note:There should be a colon before the language code, for example ":es".
Examples
{{VMT UVtransform}}
- The default position is
center .5 .5 scale 1 1 rotate 0 translate 0 0
.
center
defines the point of rotation. Only useful if rotate
is being used.
scale
fits the texture into the material the given number of times. 2 1
is a 50% scale in the horizontal X axis while the vertical Y axis is still at original scale.
rotate
rotates the texture counter-clockwise in degrees. Accepts any number, including negatives.
translate
shifts the texture by the given numbers. .5
will shift it half-way. 1 will shift it once completely over, which is the same as not moving it at all.
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. [todo tested in ?]
Bug:Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin. [todo tested in ?]
{{VMT UVtransform|suf=:fr}}
- La position par défaut est
center .5 .5 scale 1 1 rotate 0 translate 0 0
.
center
définit le point de rotation. Utilise seulement si rotate
est utilisé.
scale
mets la texture dans le matériaux le nombre de fois spécifié. 2 1
est un scale à 50% dans l'axe X.
rotate
tourne la texture en sens anti-horaire. Accepte n'importe quel nombre, mêmes négatifs.
translate
modifie le placement de la texture par le nombre donné d'hauteur et de largeur. .5
la bougera de moitié.
Note:Toutes les valeurs doit être inclues!
Bug:Utiliser scale peut causer des bugs assez bizarres ou l'outil Texture Lock dans Hammer ne va pas bloquer la texture ou elle est. [todo tested in ?]
Bug:Rotating textures applied on brushes will rotate around the map origin (confirm: Orangebox engine only?). A fix for this is to change the center position in the VMT to the brush's origin. [todo tested in ?]
{{VMT UVtransform|suf=:ru}}
- Позиция по умолчанию:
center .5 .5 scale 1 1 rotate 0 translate 0 0
.
center
определяет точку вращения. Приносит пользу только при использовании rotate
.
scale
вставляет текстуру в материал заданное количество раз. 2 1
— это 50%-ый масштаб по оси X.
rotate
вращает текстуру "против часовой стрелки/по часовой стрелке" в градусах. Принимает любое число, включая негативы.
translate
сдвигает текстуру до заданных значений. Значение .5
сдвинет текстуру на 50%.
- Template:Note:ru
- Template:Bug:ru
- Template:Bug:ru