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
mNo edit summary
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{warning|parallax maps are not currently supported in the Source Engine.}}
{{stub}}
* See [[Parallax mapping]].
{{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]].
'''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.


=== Additional Parameters===
=== VMT Syntax ===
=====$parallaxmapscale=====
"$parallaxmap" <texture path>
  "$parallaxmapscale" float
  "$parallaxmapscale" <float> // Scales the $parallaxmap Y value by this amount
* Scales the [[$parallaxmap]] by the <code>float</code> value. Default value is of course <code>1</code>.
== See also ==
 
* [[Parallax mapping]]
 
[[Category:Shader parameters|p]]
=== See Also ===
*  
 
 
[[Category:List of Shader Parameters|P]]
[[Category:Stubs]]

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