Unity Products:Amplify Shader Editor/HSV to RGB and Unity Products:Amplify Shader Editor/HeightMap Texture Blend: Difference between pages
(Difference between pages)
AmplifyWiki (talk | contribs) m (1 revision imported) |
ampwiki>Amplify RnD Rick No edit summary |
||
Line 1: | Line 1: | ||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | ||
== | == HeightMap Texture Blend Node == | ||
The | The HeightMap Texture Blend node outputs a blend value on a [0 1] range using the following operation [[Unity_Products:Amplify_Shader_Editor/Saturate|Saturate]]( [[Unity_Products:Amplify_Shader_Editor/Power|Power]]( ( ( [[#paramHeightMap|HeightMap]]* [[#paramSplatMask|SplatMask]])*4 ) + ( [[#paramSplatMask|SplatMask]]* 2 ), [[#paramBlendStrength|BlendStrength]]) ). | ||
<br/>'''NOTE:''' This value is useful when texture layering. | |||
* | |||
* | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/Nodes/Height_2.jpg"> | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/ | |||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
|- | |- | ||
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ||
|- style="background: #e5e5e5;" | |- style="background: #e5e5e5;" | | ||
| id=" | | id="paramHeightMap" | HeightMap | ||
| | | Height map value. Only visible if the respective input port is not connected | ||
Only visible if the respective input port is not connected | |||
| 0 | | 0 | ||
|- style="background: #e5e5e5;" | |- style="background: #e5e5e5;" | | ||
| id="paramSplatMask" | SplatMask | |||
| Splat mask value. Only visible if the respective input port is not connected | |||
| | |||
| id=" | |||
| | |||
Only visible if the respective input port is not connected | |||
| 0 | | 0 | ||
|- style="background: #e5e5e5;" | | |||
|id="paramBlendStrength" | BlendStrength | |||
| Blend strength value. Only visible if the respective input port is not connected. | |||
| 1 | |||
|- | |- | ||
| id=" | |id="paramPreventNaN" | Prevent NaN | ||
| | | Clamps negative base numbers over the internal pow instruction to 0 since these originate NaN." | ||
| False | |||
| | |||
|} | |} | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
|- | |- | ||
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | ! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | ||
|- | |- | ||
| | | HeightMap | ||
| | | Height map value. | ||
| Float | | Float | ||
|- | |- | ||
| | | Splatmask | ||
| | | Splat mask value. | ||
| Float | | Float | ||
|- | |- | ||
| | | BlendStrength | ||
| | | Blend strength value. | ||
| Float | |||
| Float | |||
|} | |} | ||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | ||
[[Category:Nodes]][[Category: | [[Category:Nodes]][[Category:Logical Operators]] |
Revision as of 17:01, 12 January 2022
HeightMap Texture Blend Node
The HeightMap Texture Blend node outputs a blend value on a [0 1] range using the following operation Saturate( Power( ( ( HeightMap* SplatMask)*4 ) + ( SplatMask* 2 ), BlendStrength) ).
NOTE: This value is useful when texture layering.
Node Parameter | Description | Default Value |
---|---|---|
HeightMap | Height map value. Only visible if the respective input port is not connected | 0 |
SplatMask | Splat mask value. Only visible if the respective input port is not connected | 0 |
BlendStrength | Blend strength value. Only visible if the respective input port is not connected. | 1 |
Prevent NaN | Clamps negative base numbers over the internal pow instruction to 0 since these originate NaN." | False |
Input Port | Description | Type |
---|---|---|
HeightMap | Height map value. | Float |
Splatmask | Splat mask value. | Float |
BlendStrength | Blend strength value. | Float |