Keywords: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page %keywords/en to %keywords without leaving a redirect: Move en subpage to basepage)
(reworded intro to add more links, added hightlight to example, added "see also")
Line 1: Line 1:
{{LanguageBar|title = %keywords}}
{{LanguageBar|title = %keywords}}
{{Dead end|date=January 2024}}




Used to set a keyword filter that can be filtered in hammer for easier texture finding.
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"
}
}
</pre>
</syntaxhighlight>


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 categorizing your textures for easier finding.
Line 41: Line 42:
*tf
*tf


{{Uncategorized|date=January 2024}}
==See also==
* [[Material]]
* [[Material Editor]]
* [[:Category:List of Shader Parameters]]


[[Category:Shader parameters]]
[[Category:Shader parameters]]
[[Category:Material System]]

Revision as of 05:31, 31 August 2024

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