Unity Products:Amplify Shader Editor/Burn Effect and Unity Products:Amplify Shader Editor/Camera Depth Fade: 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]] | |||
== Camera Depth Fade Node == | |||
The Camera Depth Fade node outputs the difference between a surface depth and the cameras near plane. The calculated value is set on a linear '''[0,1]''' range and can be tweaked via the [[#paramLength|Length]] and [[#paramOffset|Offset]] parameters. | |||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List ]] | <img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/CameraDepthFadeNode.jpg"> | ||
[[Category:Nodes]][[Category: | <br/><font size="1">Nodes used: | ||
[[Unity_Products:Amplify_Shader_Editor/Float|Float]], | |||
[[Unity_Products:Amplify_Shader_Editor/Camera_Depth_Fade|Camera Depth Fade]] | |||
</font> | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | |||
|- style="background: #e5e5e5;" | | |||
| id="paramVertexPosition" | Vertex Position | |||
| Don't use this internal data as it's ignored internally. Only visible if the respective input port is not connected. | |||
| 0 | |||
|- style="background: #e5e5e5;" | | |||
| id="paramLength" | Length | |||
| Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. Only visible if the respective input port is not connected. | |||
| 0 | |||
|- style="background: #e5e5e5;" | | |||
| id="paramOffset" | Offset | |||
| Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. Only visible if the respective input port is not connected. | |||
| 0 | |||
|} | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | |||
|- | |||
| Vertex Position | |||
| Allow the specification of a custom vertex position. Uses current vertex position if left unconnected. | |||
| Float3 | |||
|- | |||
| Length | |||
| Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. | |||
| Float | |||
|- | |||
| Offset | |||
| Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. | |||
| Float | |||
|} | |||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | |||
[[Category:Nodes]][[Category:Camera and Screen]] |
Revision as of 14:36, 10 July 2018
Camera Depth Fade Node
The Camera Depth Fade node outputs the difference between a surface depth and the cameras near plane. The calculated value is set on a linear [0,1] range and can be tweaked via the Length and Offset parameters.
Nodes used:
Float,
Camera Depth Fade
Node Parameter | Description | Default Value |
---|---|---|
Vertex Position | Don't use this internal data as it's ignored internally. Only visible if the respective input port is not connected. | 0 |
Length | Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. Only visible if the respective input port is not connected. | 0 |
Offset | Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. Only visible if the respective input port is not connected. | 0 |
Input Port | Description | Type |
---|---|---|
Vertex Position | Allow the specification of a custom vertex position. Uses current vertex position if left unconnected. | Float3 |
Length | Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. | Float |
Offset | Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. | Float |