$detail: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (fixed up pointless redirect link)
Line 1: Line 1:
{{stub}}
{{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 "[[$detail#$detailscale|$detailscale]]") to add higher resolution detail to the [[$basetexture]].


== Basic VMT syntax ==
== Basic VMT syntax ==

Revision as of 20:37, 1 March 2008

Stub

This article or section is a stub. You can help by expanding it.

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 the game_directory/materials folder.
  • where DetailmapA is the filename; ie DetailmapA.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?

See Also