Keywords: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(13 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Used to set a keyword filter that can be filtered in hammer for easier texture finding.  
{{DISPLAYTITLE:%keywords}}{{LanguageBar}}
Keywords allow you to filter textures inside [[Hammer|Hammer Editor's]] material browser. Since the default material search only filters by material name or folder name, you can use these keywords for cases where textures may fit together, but are not in the same folder.<br>
For example, {{hl2|2}} uses the keyword "Combine" to filter all metal, glass, computer and other combine related materials that would be all over the material folders of the game.<br>
You may also add a keyword named after your map or mod to be able to find all [[Creating_a_Material|custom materials]] with ease.


==VMT syntax example==
==VMT Syntax Example==
<pre>
<syntaxhighlight lang=text highlight=8>
"WorldVertexTransition"
"WorldVertexTransition"
{
{
"$basetexture" "nature/cliffface002a"
"$basetexture" "nature/cliffface002a"
"$basetexture2" "nature/dirtfloor004a"
"$basetexture2" "nature/dirtfloor004a"
"%tooltexture" "nature/blendcliffdirt001a_tooltexture"
"%tooltexture" "nature/blendcliffdirt001a_tooltexture"
        "$basetexturetransform" "center .5 .5 scale 1 1 rotate 0  translate 0 0"
"$basetexturetransform" "center .5 .5 scale 1 1 rotate 0  translate 0 0"
        "$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
"$basetexturetransform2" "center .5 .5 scale 4 4 rotate 0 translate 0 0"
"%keywords" "wasteland,c17"
"%keywords" "wasteland,c17"
}
}
</syntaxhighlight>


</pre>
Entering "wasteland" into the '''keywords''' field in the hammer texture browser would show only textures with the "wasteland" keyword. This is useful for categorizing your textures for easier finding.


Entering wasteland into the '''keywords''' field in the hammer texture browser would show only textures with the wasteland keyword. This is useful for categorising your textures for easier finding.
{{Note|To have more than one keyword, separate the keywords with a comma.}}


{{Note| To have more than one keyword, separate the keywords with a comma.}}
==Used Keywords==
[[Category:List of Shader Parameters]]
The following keywords are used in Source games:
 
===Half-Life 2===
*c17citadel
*c17downtown
*c17industrial
*c17sewers
*c17trainstation
*coastline wasteland
*combine
*wasteland
 
===Portal===
*portal
 
===Team Fortress 2===
*tf
 
==See also==
* [[Material]]
* [[Material Editor]]
* [[:Category:List of Shader Parameters]]
 
[[Category:Shader parameters]]
[[Category:Material System]]

Latest revision as of 14:07, 24 March 2025

English (en)Translate (Translate)

Keywords allow you to filter textures inside Hammer Editor's material browser. Since the default material search only filters by material name or folder name, you can use these keywords for cases where textures may fit together, but are not in the same folder.
For example, Half-Life 2 Half-Life 2 uses the keyword "Combine" to filter all metal, glass, computer and other combine related materials that would be all over the material folders of the game.
You may also add a keyword named after your map or mod to be able to find all custom materials with ease.

VMT Syntax Example

"WorldVertexTransition"
{
	"$basetexture" 	"nature/cliffface002a"
	"$basetexture2" "nature/dirtfloor004a"
	"%tooltexture" 	"nature/blendcliffdirt001a_tooltexture"
	"$basetexturetransform"	"center .5 .5 scale 1 1 rotate 0  translate 0 0"
	"$basetexturetransform2"	"center .5 .5 scale 4 4 rotate 0 translate 0 0"
	"%keywords" "wasteland,c17"
}

Entering "wasteland" into the keywords field in the hammer texture browser would show only textures with the "wasteland" keyword. This is useful for categorizing your textures for easier finding.

Note.pngNote:To have more than one keyword, separate the keywords with a comma.

Used Keywords

The following keywords are used in Source games:

Half-Life 2

  • c17citadel
  • c17downtown
  • c17industrial
  • c17sewers
  • c17trainstation
  • coastline wasteland
  • combine
  • wasteland

Portal

  • portal

Team Fortress 2

  • tf

See also