scaledVolume

Gives a noise field a zoomable, aspect-correct coordinate.

scaledVolume(field: Field, opts: {scale: FieldScalar}): Field

Import paint from shaders/std and use paint.scaledVolume.

Turns the pixel's uv into a 3D point so noiseField and warped can read it. scale zooms exponentially: 1 is neutral and each step up magnifies about 2.7 times. A 0–4 slider works well.

Parameters

NameTypeNotes
fieldField
opts{scale: FieldScalar}

Example

paint: rampOver(scaledVolume(noiseField('perlin'), {scale: p('scale')}), stops(p('colorSpace')))

See also

  • noiseField — A field of smooth noise in the chosen flavor.
  • warped — Makes a field flow like liquid by bending its coordinate with moving noise.

Used by

Plasma