Surfgrad From Texture
Samples a Texture 2D and returns a Surface Gradient. This accepts a tangent space normal or height texture as input. Dropdowns provide options for how to interpret and process the texture.

Ports
| Name | Direction | Type | Binding | Description |
|---|---|---|---|---|
| Texture | Input | Texture 2D | None | Texture 2D to sample |
| Sampler | Input | Sampler State | Default sampler state | Sampler for the texture |
| UV | Input | Vector 2 | UV | UV coordinates |
| Base Normal | Input | Vector 3 | None | Base normal |
| Base Position | Input | Vector 3 | None | Base position (predisplacement), only applies if Tangents set to Calculate |
| Scale Dependent | Input | Boolean | None | Adjust the surfgrad intensity based on scale |
| Surfgrad | Output | Vector 3 | None | Output surface gradient |
Controls
| Name | Type | Options | Description |
|---|---|---|---|
| Type | Dropdown | Normal, Height | Selects the texture type |
| Height Quality | Dropdown | High, Medium, Low | Selects the technique used to interpret height textures |
| Tangents | Dropdown | Calculate, Mesh UV0 | Selects between calculating tangents for any UV set or using existing tangents for UV0 |
| Space | Dropdown | World, Object | Selects the coordinate space to use for Scale Dependent if enabled |