$parallax: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 8: Line 8:
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 [[Bump map|Normal map]]. This can be done with a program like {{GIMP|3.1}}, and a tutorial on how to do this can be found [[Creating PBR materials#Embedding the Heightmap|here]]
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 [[Bump map|Normal map]]. This can be done with a program like {{GIMP|3.1}}, and a tutorial on how to do this can be found [[Creating PBR materials#Embedding the Heightmap|here]]
==Parameters==
==Parameters==
{{MatParam|$parallax|bool|Enables Parallax Mapping on the material. A [[Heightmap]] must be present in the alpha channel of the [[Bumpmap]] to work properly!}}
{{MatParamDef|$parallax|bool|Enables Parallax Mapping on the material. A [[Heightmap]] must be present in the alpha channel of the [[Bumpmap]] to work properly!}}
<span id="parallaxcenter">{{MatParam|$parallaxcenter|float|Defines the height of the highest point of the texture. Essentially how close to the face the texture appears. This is necessary to adjust correctly, otherwise the material may appear to stretch unrealistically past the end of the brush. "0.5" is a good starting value. }}</span>
<span id="parallaxcenter">{{MatParamDef|$parallaxcenter|float|Defines the height of the highest point of the texture. Essentially how close to the face the texture appears. This is necessary to adjust correctly, otherwise the material may appear to stretch unrealistically past the end of the brush. "0.5" is a good starting value. }}</span>
<span id="parallaxdepth">{{MatParam|$parallaxdepth|float|Defines the lowest point of the texture relative to the height. Essentially the intensity of the heightmap. "0.1" is a good starting value.
<span id="parallaxdepth">{{MatParamDef|$parallaxdepth|float|Defines the lowest point of the texture relative to the height. Essentially the intensity of the heightmap. "0.1" is a good starting value.
{{note|Using negative values will result in the intensity of your heightmap being inverted.}}}}</span>
{{note|Using negative values will result in the intensity of your heightmap being inverted.}}}}</span>



Latest revision as of 11:51, 23 August 2025

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

Enables Parallax Mapping on the material. A Heightmap must be present in the alpha channel of the Bumpmap to work properly!
Defines the height of the highest point of the texture. Essentially how close to the face the texture appears. This is necessary to adjust correctly, otherwise the material may appear to stretch unrealistically past the end of the brush. "0.5" is a good starting value.
Defines the lowest point of the texture relative to the height. Essentially the intensity of the heightmap. "0.1" is a good starting value.
Note.pngNote:Using negative values will result in the intensity of your heightmap being inverted.

See also