Valve Material Type - VMT
A material is a .vmt
("Valve Material Type") text file that defines a two-dimensional surface. It contains all of the information needed for Source to simulate the surface visually, aurally, and physically.
The contents of a material will fall into some or all of these categories:
Texture names
A simple example
This is a very basic shingle beach material.
The
LightmappedGeneric
shader is used, which means that the material is for use on surfaces with lightmaps (i.e. brushes).The { character opens a set of parameters
The
$basetexture
parameter is given withcoast\shingle_01
, which is the location of a texture. This is what will be drawn on the screen.$surfaceprop
gives the material the physical properties of gravel.The } character closes a set of parameters
It's important to remember that this material can only be used on brushes. If it needed to be used on models, for instance, another version would need to be created using the VertexLitGeneric
shader.
Finding materials
SteamPipe
When Valve updated some games to SteamPipe, the materials were moved from GCF into VPK files. VPK Files work with GCFScape.
More info on SteamPipe here
Non-SteamPipe Games
in non SteamPipe source games, Materials are stored in the materials\
folder of your game or mod. The best way to browse them is from Hammer's texture selection screen.
If you want to edit or view the code of Valve's material files you will first need to extract them from their GCF package with GCFScape. They tend to be stored in GCFs with 'materials' in their name.
Last updated