$bumpmap: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
=== Basic VMT Syntax === | === Basic VMT Syntax === | ||
"$bumpmap" "Path/ | "$bumpmap" "Path/NormalmapA" | ||
* where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder. | * where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder. | ||
* where '''<code> | * where '''<code>NormalmapA</code>''' is the filename; ie <code>NormalmapA.vtf</code>. | ||
* Notice the <code>.vtf</code> file extension is not used in VMT texture references. | * Notice the <code>.vtf</code> file extension is not used in VMT texture references. | ||
=== Additional Parameters === | === Additional Parameters === | ||
=====$bumpscale===== | |||
"$bumpscale" float | |||
* Scales the [[$bumpmap]] by the <code>float</code> value. Default value is of course <code>1</code>. | |||
=====$bumpmap2===== | =====$bumpmap2===== |
Revision as of 17:09, 8 November 2007
The $bumpmap VMT parameter specifies the VTF texture to use for the 'bump' or normalmap of the material surface.
Basic VMT Syntax
"$bumpmap" "Path/NormalmapA"
- where
Path
is the filepath relative togame_directory/materials
folder. - where
NormalmapA
is the filename; ieNormalmapA.vtf
. - Notice the
.vtf
file extension is not used in VMT texture references.
Additional Parameters
$bumpscale
"$bumpscale" float
- Scales the $bumpmap by the
float
value. Default value is of course1
.
$bumpmap2
"$bumpmap" "Path/NormalMapA" "$bumpmap2" "Path/NormalMapB"
- Used for the WorldVertexTransition shader.
See Also
- Tutorial Normal Map Creation in The GIMP