Gradient
Visual · gpu_visualA clean 2-colour linear/radial gradient (a flat source, not a field).
generatorgradientcolorshader
Parameters
| Name | Type | Range | Default | Description |
|---|---|---|---|---|
mode | choice | 0 – 1 | 0 | Linear sweep, or radial from the centre (linear, radial) |
cx | float | 0 – 1 | 0.5 | |
cy | float | 0 – 1 | 0.5 | |
angle | float | 0 – 1 | 0 | sweep angle |
scale | float | 0 – 1 | 0.5 | |
ar | float | 0 – 1 | 0.1 | |
ag | float | 0 – 1 | 0.1 | |
ab | float | 0 – 1 | 0.35 | |
br | float | 0 – 1 | 0.9 | |
bg | float | 0 – 1 | 0.2 | |
bb | float | 0 – 1 | 0.6 |
Ports
| Port | Direction | Description |
|---|---|---|
texture | out |
Backed by a bundled shader file: gradient.wgsl