$parallaxmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(overhauled the page)
Line 1: Line 1:
{{warning|parallax maps are not currently supported in the Source Engine.}}
{{stub}}
* See [[Parallax mapping]].
'''The $parallaxmap [[VMT]] parameter specifies the [[VTF]] texture to use for the 'sub-vertex modeling' or parallaxmap of the material surface.'''
'''The $parallaxmap [[VMT]] parameter specifies the [[VTF]] texture to use for the 'sub-vertex modeling' or parallaxmap of the material surface.'''


=== Basic VMT Syntax ===
{{warning|Parallax maps are disabled in every Valve game except for {{csgo}}, although it will appear [[Fullbright|unlit]].}}
  "$parallaxmap" "Path/ParallaxmapA"
=== VMT Syntax ===
* where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder.
  "$parallaxmap" <texture path>
* where '''<code>ParallaxmapA</code>''' is the filename; ie <code>ParallaxmapA.vtf</code>.
  "$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount
* Notice the <code>.vtf</code> file extension is not used in VMT texture references.
== See Also ==
 
* [[Parallax mapping]]
=== Additional Parameters===
=====$parallaxmapscale=====
  "$parallaxmapscale" float
* Scales the [[$parallaxmap]] by the <code>float</code> value. Default value is of course <code>1</code>.
 
 
=== See Also ===
*  
 
 
[[Category:List of Shader Parameters|P]]
[[Category:List of Shader Parameters|P]]
[[Category:Stubs]]

Revision as of 16:43, 29 November 2018

Stub

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

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

Warning.pngWarning:Parallax maps are disabled in every Valve game except for Counter-Strike: Global Offensive, although it will appear unlit.

VMT Syntax

"$parallaxmap" <texture path>
"$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount

See Also