$detail

From Valve Developer Community
Revision as of 18:02, 8 November 2007 by Beeswax (talk | contribs)
Jump to navigation Jump to search

The $detail VMT parameter specifies the VTF texture to use for adding detail to the material surface.

  • 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