mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-01-09 18:58:45 +08:00
701 B
701 B
Parallax mapping node
The Parallax Mapping node lets you create a parallax effect that displaces a Material's UVs to create the illusion of depth inside a Material.
This node is only available in shader modes SPATIAL and CANVAS ITEM.
Default value for uv input will be vec2(0, 0) for shader modes PARTICLES, SKY and FOG to avoid errors becouse UV variable is not available for these modes.
Inputs
Name | Type | Binding | Description |
---|---|---|---|
height map | sampler2D | none | Height map texture |
amplitude | float | none | amplitude or depth of the effect |
Outputs
Name | Type | Binding | Description |
---|---|---|---|
uv | vec2 | None | Output UV value |