Surfgrad Scale Dependent From Deriv
Takes a texture or screen space height derivative and returns a scale dependent Surface Gradient.

Ports
| Name | Direction | Type | Binding | Description |
|---|---|---|---|---|
| Deriv | Input | Vector 2 | None | Texture or screen space height derivatives |
| UV | Input | Vector 2 | UV | UV coordinates |
| Texture Size | Input | Vector 2 | None | Source texture width and height |
| Screen space | Input | Bool | None | Deriv is in screen space |
| Base Normal | Input | Vector 3 | None | Base normal |
| Base Position | Input | Vector 3 | None | Base position (predisplacement) |
| Surfgrad | Output | Vector 3 | None | Output surface gradient |
Controls
| Name | Type | Options | Description |
|---|---|---|---|
| Space | Dropdown | World, Object | Selects the coordinate space to use for scale dependent calculations |