Unity Products:Amplify Shader Editor/Grayscale and Unity Products:Amplify Shader Editor/World to Tangent Matrix: Difference between pages

From Amplify Creations Wiki
(Difference between pages)
Jump to navigation Jump to search
ampwiki>Amplify RnD Rick
No edit summary
 
ampwiki>AmplifyWiki
(Created page with "This page is empty, contribute today! Back to Node List Category:NodesCategory:Transform")
 
Line 1: Line 1:
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
This page is empty, contribute today!
 
== Grayscale Node ==
 
The Grayscale node outputs a grayscale float value from the color value specified on its [[#paramRGB|RGB]] property. Several styles can be selected via the [[#paramGrayscaleStyle|Grayscale Style]] property to achieve different results.
 
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/GrayscaleNode.jpg">
<br/><font size="1">Nodes used:
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]],
[[Unity_Products:Amplify_Shader_Editor/Grayscale|Grayscale]]
</font>
 
{| class="wikitable" style="width: 100%;"
|-
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value
|- style="background: #e5e5e5;" |
| id="paramRGB" | RGB
| Color value to be converted to grayscale. Only visible if the respective input port is not connected.
| 0,0,0
|-
| id="paramGrayscaleStyle" | Grayscale Style
| Available styles to calculate a grayscale value from a color.
* '''Luminance:''' Uses Unity internal Luminance function ( Dot product between color value and unity_ColorSpaceLuminance)
* '''Natural Classic:''' Dot product between color value and vector 0.299,0.587,0.114
* '''Old School:''' Calculates color average value ( sums all channels and divide by 3 )
| Luminance
|}
 
 
{| class="wikitable" style="width: 100%;"
|-
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type
|-
| RGB
| Color value to be converted to grayscale.
| Vector 3
|}
 


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

Revision as of 17:12, 3 February 2017

This page is empty, contribute today!

Back to Node List