$parallax

From Valve Developer Community
Revision as of 18:54, 14 May 2025 by Pee (talk | contribs)
Jump to navigation Jump to search

Stub

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

An example of a Bumpmap with a Heightmap embedded in the alpha channel
Parallax enabled.
Parallax Disabled.

$parallax is a material shader parameter for the PBR (Strata shader) shader available in Strata Source Strata Source. It enables Parallax mapping on the surface of the PBR material.

Note.pngNote:This parameter is also available in Thexa4's PBR shader.

Parallax Mapping

Main article:  Parallax mapping

Parallax mapping is a shading technique used to give perceived depth to brushes with this applied. In order to have this work correctly, you will need to have a Heightmap embedded in the alpha channel of your Normal map. This can be done with a program like GIMP, and a tutorial on how to do this can be found here

Parameters

$parallax $parallaxcenter $parallaxdepth

See also