Unity Products:Amplify Shader Editor/Blend Normals and Unity Products:Amplify Shader Editor/Blend Operations: Difference between pages

From Amplify Creations Wiki
(Difference between pages)
Jump to navigation Jump to search
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]]
== 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/>
== Blend Operations Node ==
'''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">
The Blend Operations node outputs a blended result of its inputs according to the selected [[#paramBlendOp|Blend Op]] property similarly to layer blending operations normally found on image editing tools.
 
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/BlendOpsNode.jpg">
<br/><font size="1">Nodes used:  
<br/><font size="1">Nodes used:  
[[Unity_Products:Amplify_Shader_Editor/Float|Float]],
[[Unity_Products:Amplify_Shader_Editor/Blend_Operations|Blend Operations]]
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]],
[[Unity_Products:Amplify_Shader_Editor/Blend_Normals|Blend Normals]]
</font>
</font>


Line 16: Line 13:
|-
|-
! 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="paramA" | A
| id="paramBlendOp" | BlendOp
| First normal to blend. Only visible if the respective input port is not connected.
| Blend operation to be applied between Source and Destiny inputs/layers
| 0,0,0
* Color Burn
|- style="background: #e5e5e5;" |
* Color Dodge
| id="paramB" | B
* Darken
| Second normal to blend. Only visible if the respective input port is not connected.
* Divide
| 0,0,0
* Difference
* Exclusion
* Soft Light
* Hard Light
* Hard Mix
* Lighten
* Linear Burn
* Linear Dodge
* Linear Light
* Multiply
* Overlay
* Pin Light
* Subtract
* Screen
* Vivid Light
| Color Burn
|-  
| id="paramSaturate" | Saturate
| Will clamp the final result to a [0 1] value if toggled on.
| True
|}
|}


Line 31: Line 47:
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type
|-  
|-  
| A
| Source
| First normal to blend.
| First Layer
| Vector3
| Float4
|-  
|-  
| B
| Destiny
| Second normal to blend.
| Second layer
| Vector3
| Float4
|}
|}




[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Category:Nodes]][[Category:Textures]]
[[Category:Nodes]][[Category:Image Effects]]

Revision as of 17:29, 24 October 2017

Back to Node List

Blend Operations Node

The Blend Operations node outputs a blended result of its inputs according to the selected Blend Op property similarly to layer blending operations normally found on image editing tools.


Nodes used: Blend Operations

Node Parameter Description Default Value
BlendOp Blend operation to be applied between Source and Destiny inputs/layers
  • Color Burn
  • Color Dodge
  • Darken
  • Divide
  • Difference
  • Exclusion
  • Soft Light
  • Hard Light
  • Hard Mix
  • Lighten
  • Linear Burn
  • Linear Dodge
  • Linear Light
  • Multiply
  • Overlay
  • Pin Light
  • Subtract
  • Screen
  • Vivid Light
Color Burn
Saturate Will clamp the final result to a [0 1] value if toggled on. True


Input Port Description Type
Source First Layer Float4
Destiny Second layer Float4


Back to Node List