Difference between revisions of "$parallaxmap"

From Valve Developer Community
Jump to: navigation, search
m
 
(is mat_prallaxmaps 0 by default the cause of being unable to use it?)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''The $parallaxmap [[VMT]] parameter specifies the [[VTF]] texture to use for the 'sub-vertex modelling' or parallaxmap of the material surface.'''
+
{{stub}}
{{warning|parallax maps are not currently supported in the Source Engine. I'm only guessing this is how it would work.}}
+
'''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, although since {{as}} an (unfinished) shader exists named [[ParallaxTest]], which can be used as an alternative.}}
"$parallaxmap" "Path/ParallaxmapA"
 
* where '''<code>Path</code>''' is the filepath relative to <code>game_directory/materials</code> folder.
 
* 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.
 
  
 
+
{{todo|<code>mat_parallaxmap</code> is <code>0</code> by default. Enabling it causes the game to freeze (tested for until about 10 minutes). Will managing to enable it make parallax maps work?}}
=== See Also ===
+
=== VMT Syntax ===
*
+
"$parallaxmap" <texture path>
 
+
"$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount
 
+
== See Also ==
[[Category:List of Shader Parameters]]
+
* [[Parallax mapping]]
[[Category:VMT Texture Reference]]
+
[[Category:List of Shader Parameters|P]]
[[Category:Stubs]]
 

Latest revision as of 03:55, 5 June 2019

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

Warning: Parallax maps are disabled in every Valve game, although since <Alien Swarm> an (unfinished) shader exists named ParallaxTest, which can be used as an alternative.

To do: mat_parallaxmap is 0 by default. Enabling it causes the game to freeze (tested for until about 10 minutes). Will managing to enable it make parallax maps work?

VMT Syntax

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

See Also