$parallax: Difference between revisions
Jump to navigation
Jump to search
Note:This parameter is also available in Thexa4's PBR shader.
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== | ||
{{ | {{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">{{ | <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">{{ | <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
$parallax
is a material shader parameter for the PBR (Strata shader) shader available in Strata Source. It enables Parallax mapping on the surface of the PBR material.

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
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:Using negative values will result in the intensity of your heightmap being inverted.
