$detail: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (slight cleanup)
Line 1: Line 1:
'''The $detail [[VMT]] parameter specifies the [[VTF]] texture to use for adding detail to the material surface.'''
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]].
* Greyscale image usually used (in conjunction with "$detailscale") to add higher resolution detail to the [[$basetexture]].


=== Basic VMT Syntax ===
=== Basic VMT Syntax ===
Line 7: Line 6:
* where '''<code>DetailmapA</code>''' is the filename; ie <code>DetailmapA.vtf</code>.  
* where '''<code>DetailmapA</code>''' is the filename; ie <code>DetailmapA.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===
=====$detailscale=====
=====$detailscale=====
  "$detailscale" float  
  "$detailscale" float  
* Scales [[$detail]] texture where <code>float</code> value is the scale factor.
Scales $detail texture where <code>float</code> value is the scale factor.


=====$detailframe=====  
=====$detailframe=====  
Line 25: Line 24:


=== See Also ===
=== See Also ===
*





Revision as of 08:07, 21 November 2007

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