Unity Products:Amplify Shader Editor/Billboard and Unity Products:Amplify Shader Editor/Blend Normals: Difference between pages
(Difference between pages)
AmplifyWiki (talk | contribs) m (1 revision imported) |
ampwiki>Amplify Borba 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]] | ||
== Blend Normals Node == | |||
= | The Blend Normals node blends two normals using the [http://www.chrisoat.com/papers/Oat-Wrinkles(Siggraph07).pdf Whiteout Blend] method. Instead of just averaging both normal maps, they are calculated the following way:<br/> | ||
'''BlendedNormal = normalize( float3( [[#paramA|A]].xy + [[#paramB|B]].xy, [[#paramA|A]].z*[[#paramB|B]].z )'''. | |||
<br/>This way details, which would have been lost on an regular average, are better preserved. | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/BlendNormalsNode.jpg"> | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/ | |||
<br/><font size="1">Nodes used: | <br/><font size="1">Nodes used: | ||
[[Unity_Products:Amplify_Shader_Editor/ | [[Unity_Products:Amplify_Shader_Editor/Float|Float]], | ||
[[Unity_Products:Amplify_Shader_Editor/ | [[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]], | ||
[[Unity_Products:Amplify_Shader_Editor/Blend_Normals|Blend Normals]] | |||
[[Unity_Products:Amplify_Shader_Editor/ | |||
</font> | </font> | ||
Line 22: | Line 16: | ||
|- | |- | ||
! 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;" | | ||
| id=" | | id="paramA" | A | ||
| | | First normal to blend. Only visible if the respective input port is not connected. | ||
| 0,0,0 | |||
|- style="background: #e5e5e5;" | | |||
| | | id="paramB" | B | ||
|- | | Second normal to blend. Only visible if the respective input port is not connected. | ||
| | | 0,0,0 | ||
| | |} | ||
| | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | |||
|- | |||
| A | |||
| First normal to blend. | |||
| Vector3 | |||
|- | |||
| B | |||
| Second normal to blend. | |||
| Vector3 | |||
|} | |} | ||
[[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:Textures]] |
Revision as of 11:06, 15 November 2017
Blend Normals Node
The Blend Normals node blends two normals using the Whiteout Blend method. Instead of just averaging both normal maps, they are calculated the following way:
BlendedNormal = normalize( float3( A.xy + B.xy, A.z*B.z ).
This way details, which would have been lost on an regular average, are better preserved.
Nodes used:
Float,
Texture Sample,
Blend Normals
Node Parameter | Description | Default Value |
---|---|---|
A | First normal to blend. Only visible if the respective input port is not connected. | 0,0,0 |
B | Second normal to blend. Only visible if the respective input port is not connected. | 0,0,0 |
Input Port | Description | Type |
---|---|---|
A | First normal to blend. | Vector3 |
B | Second normal to blend. | Vector3 |