Unity Products:Amplify Shader Editor/World to Tangent Matrix and Unity Products:Amplify Shader Editor/Z-Buffer Params: 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]] | |||
== Z-Buffer Params Node == | |||
The Z-Buffer Params outputs data calculated from current camera's projection parameters which can be used to linearize Z-Buffer values. | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/Nodes/ZBufferParams.jpg"> | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type | |||
|- | |||
| 1-far/near | |||
| Value of 1 - far plane / near plane. | |||
| Float | |||
|- | |||
| far/near | |||
| Value of far plane / near plane. | |||
| Float | |||
|- | |||
| [0]/far | |||
| Value of ( 1 - far plane / near plane ) / far plane. | |||
| Float | |||
|- | |||
| [1]/far | |||
| Value of ( far plane / near plane ) / far plane. | |||
| 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:Camera and Screen]] |
Revision as of 17:38, 10 July 2018
Z-Buffer Params Node
The Z-Buffer Params outputs data calculated from current camera's projection parameters which can be used to linearize Z-Buffer values.
Output Port | Description | Type |
---|---|---|
1-far/near | Value of 1 - far plane / near plane. | Float |
far/near | Value of far plane / near plane. | Float |
[0]/far | Value of ( 1 - far plane / near plane ) / far plane. | Float |
[1]/far | Value of ( far plane / near plane ) / far plane. | Float |