OSDN Git Service

new project
[mindgames/Mindgames_main.git] / Mindgames / Library / PackageCache / com.unity.shadergraph@6.9.0 / Documentation~ / DDY-Node.md
1 # DDY Node
2
3 ## Description
4
5 Returns the partial derivative of the input **In** with respect to the screen-space y-coordinate. This node can only be used in the pixel shader stage.
6
7 ## Ports
8
9 | Name        | Direction           | Type  | Description |
10 |:------------ |:-------------|:-----|:---|
11 | In      | Input | Dynamic Vector | Input value |
12 | Out | Output      |    Dynamic Vector | Output partial derivative value |
13
14 ## Generated Code Example
15
16 The following example code represents one possible outcome of this node.
17
18 ```
19 void Unity_DDY_float4(float4 In, out float4 Out)
20 {
21     Out = ddy(In);
22 }
23 ```