Screen dF/dx node

Access: Nodes > Math > Screen dF/dx

Outputs the rate of change of the input across one pixel in the horizontal screen direction.

Note:  This node will not work for displacement (it is fragment shader only).

Input (RGB) Output (RGB)
Ramp across 10 horizontal screen pixels (0.0-1.0) ΝΆΝΆ 0.1, 0.1, 0.1 per pixel
Constant color (0.5, 0.5, 0.5) across screen 0.0, 0.0, 0.0
Step function jumping from 0.0 to 1.0 in 1 pixel 1.0, 1.0, 1.0

Screen dF/dx node inputs

Input

The surface input value to differentiate horizontally.

Screen dF/dx node outputs

Output

The horizontal screen-space derivative