$parallaxmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 7: Line 7:
* where '''<code>ParallaxmapA</code>''' is the filename; ie <code>ParallaxmapA.vtf</code>.  
* where '''<code>ParallaxmapA</code>''' is the filename; ie <code>ParallaxmapA.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===
=====$parallaxmapscale=====
"$parallaxmapscale" float
* Scales the [[$parallaxmap]] by the <code>float</code> value. Default value is of course <code>1</code>.





Revision as of 17:12, 8 November 2007

The $parallaxmap VMT parameter specifies the VTF texture to use for the 'sub-vertex modelling' or parallaxmap of the material surface.

Warning.pngWarning:parallax maps are not currently supported in the Source Engine. I'm only guessing this is how it would work.

Basic VMT Syntax

"$parallaxmap" "Path/ParallaxmapA" 
  • where Path is the filepath relative to game_directory/materials folder.
  • where ParallaxmapA is the filename; ie ParallaxmapA.vtf.
  • Notice the .vtf file extension is not used in VMT texture references.

Additional Parameters

$parallaxmapscale
"$parallaxmapscale" float
  • Scales the $parallaxmap by the float value. Default value is of course 1.


See Also