This article's documentation is for anything that uses the Source engine. Click here for more information.

$parallaxmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (It freezes because the material system can't find any changes it can implement. So no, it cannot be renabled)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
'''The $parallaxmap [[VMT]] parameter specifies the [[VTF]] texture to use for the 'sub-vertex modeling' or parallaxmap of the material surface.'''
{{this is a|shader parameter|name=$parallaxmap}} It specifies the [[VTF]] texture to use for the 'sub-vertex modeling' or parallaxmap of the material surface. The texture used for this parameter is a [[Heightmap]].


{{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.}}
{{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.}}
Line 7: Line 7:
  "$parallaxmap" <texture path>
  "$parallaxmap" <texture path>
  "$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount
  "$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount
== See Also ==
== See also ==
* [[Parallax mapping]]
* [[Parallax mapping]]
[[Category:List of Shader Parameters|P]]
[[Category:Shader parameters|p]]

Latest revision as of 17:35, 17 May 2024

Stub

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

$parallaxmap is a material shader parameter available in all Source Source games. It specifies the VTF texture to use for the 'sub-vertex modeling' or parallaxmap of the material surface. The texture used for this parameter is a Heightmap.

Warning.pngWarning: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.

VMT Syntax

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

See also