$detail: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) m (slight cleanup) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{stub}} | |||
The '''$detail''' [[VMT]] parameter specifies the [[VTF]] texture to use for adding detail to the material surface. It is a greyscale image usually used (in conjunction with "[[$detailscale]]") to add higher resolution detail to the [[$basetexture]]. | The '''$detail''' [[VMT]] parameter specifies the [[VTF]] texture to use for adding detail to the material surface. It is a greyscale image usually used (in conjunction with "[[$detailscale]]") to add higher resolution detail to the [[$basetexture]]. | ||
== Basic VMT syntax == | |||
"$detail" "Path/DetailmapA" | "$detail" "Path/DetailmapA" | ||
* where '''<code>Path</code>''' is the filepath relative to the <code>game_directory/materials</code> folder. | * where '''<code>Path</code>''' is the filepath relative to the <code>game_directory/materials</code> folder. | ||
Line 8: | Line 9: | ||
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 == | |||
=====$detailscale===== | =====$detailscale===== | ||
"$detailscale" float | "$detailscale" float | ||
Line 23: | Line 24: | ||
* TO DO ... something to do with masking by the alpha channel of either [[$basetexture]] or [[$detail]]? | * TO DO ... something to do with masking by the alpha channel of either [[$basetexture]] or [[$detail]]? | ||
== See Also == | |||
[[Category:TODO]] | |||
[[Category:List of Shader Parameters]] | [[Category:List of Shader Parameters]] | ||
[[Category:VMT Texture Reference]] | [[Category:VMT Texture Reference]] | ||
Revision as of 12:05, 11 January 2008
The $detail VMT parameter specifies the VTF texture to use for adding detail to the material surface. It is a greyscale image usually used (in conjunction with "$detailscale") to add higher resolution detail to the $basetexture.
Basic VMT syntax
"$detail" "Path/DetailmapA"
- where
Path
is the filepath relative to thegame_directory/materials
folder. - where
DetailmapA
is the filename; ieDetailmapA.vtf
.
Notice the .vtf
file extension is not used in VMT texture references.
Additional parameters
$detailscale
"$detailscale" float
Scales $detail texture where float
value is the scale factor.
$detailframe
"$detailframe"
- dx9
- TO DO
$detail_alpha_mask_base_texture
"$detail_alpha_mask_base_texture"
- dx9
- TO DO ... something to do with masking by the alpha channel of either $basetexture or $detail?