1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-01-05 00:53:36 +08:00

HeightToNormal node documentation added

This commit is contained in:
Digvijaysinh Gohil 2024-09-28 00:07:16 +05:30
parent fb19605155
commit 199f4a772a
2 changed files with 30 additions and 0 deletions

View File

@ -56,6 +56,7 @@ For example if you want to rotate UV in your **_.gdshader_** file, you can use `
<h2>Procedural nodes</h2>
<h4><a href="/documentation/Nodes/Procedural/CheckerBoard.md">&emsp;Checker Board node</a></h4>
<h4><a href="/documentation/Nodes/Procedural/HeightToNormal.md">&emsp;Height To Normal node</a></h4>
<h3>&emsp;Fractals</h3>

View File

@ -0,0 +1,29 @@
# Height To Normal node
Generates a normal map from a height map.
<hr>
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|height map|sampler2D|none|Height map|
|uv|vec2|UV|Input UV value|
|bump strength|float|none|Bump strength for the height|
**Outputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|Normal|vec3|None|Normal map|
**ShaderInc location**
<br>`res://addons/ShaderLib/Procedural/Procedural.gdshaderinc`
**Method signature**
<br>`vec3 heigth_to_normal(sampler2D height_map, vec2 uv, float bump_strength)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|height_map|sampler2D|Height map|
|uv|vec2|Input UV value|
|bump_strength|float|Bump strength for the height|
___