Shaders
PreviewGPU kernels: graphs run once per pixel on the graphics card, and the shader nodes you build them from
26 nodes in 7 categories
- Ships with
- Divooka Compute
- Support tier
- Tier 2 (proposed)
- Package
- GPU Kernels
GPU Kernels
Function graphs run once per pixel on the graphics card, in single precision, and the shader nodes they are made of: shapes, coordinate transforms, noise, outlines, glow and colour.
GPU Kernel
ElementThe element this evaluation of the kernel computes - its column and row - and the size of the grid it belongs to.SampleThe value of a field at this element.Sample ImageThe colour of a picture at this element, each channel from 0 to 1.Sample Image OffsetThe colour of a picture at an offset from this element, each channel from 0 to 1: (1, 0) is its neighbour on the right, (0, 1) the one below.Sample OffsetThe value of a field at an offset from this element: (1, 0) is its neighbour on the right, (0, 1) the one below.TimeThe time the kernel is drawn at, in seconds, for a picture that moves: whatever plays the kernel frame by frame gives it the seconds since it started, and a run draws the first moment, 0, so it draws the same picture every time.UVThe element's position in shader coordinates: centred on the grid, the shorter side spanning -1 to 1, up being up - what the shapes and coordinate nodes take.
Color
BrightnessAdjusts a colour's dark, middle and bright tones: shadows lift the darks, highlights scale the brights, and midtones bend the curve between them.Color From ValuesA colour from its red, green, blue and opacity, each from 0 to 1.Color RampMaps a value onto a ramp of colours, any number of stops along it: between two stops the colour is blended from theirs, before the first stop it is the first stop's, and after the last it is the last stop's.GreyA grey of a value: the value in red, green and blue, fully opaque.HSL AdjustmentsAdjusts a colour's hue, saturation and lightness.Mix ColorsBlends from one colour to another: 0 gives the first, 1 the second.
Coordinates
Circular InversionTurns the plane inside out about a circle: a point near the centre goes far away and a far point comes close, while the circle itself stays where it is.GridDivides the plane into square cells and answers where in its cell a point is, so whatever reads the result repeats in every cell.KaleidoscopeFolds the plane into mirrored wedges around the origin, as a kaleidoscope's mirrors do: whatever is in one half-wedge appears in all of them.ZoomMagnifies around a centre: a zoom of 2 shows everything twice as large.
Noise
Maximum OctavesThe most octaves a Fractal Noise sums, so a mistyped count cannot keep the GPU busy forever.Fractal NoiseSums a pattern at finer and finer scales, each octave smaller and fainter than the last - fractal Brownian motion.Value NoiseSmooth noise from -1 to 1: a random value at every whole point, blended smoothly between them.