signedTone

Contrast and balance for a signed field (−1 to 1), applied before it is squashed to 0–1.

signedTone(field: Field, slots: {contrast: PropRef; balance: PropRef}): Field

Import noise from shaders/std and use noise.signedTone.

The same controls as noiseTone (contrast 0 = unchanged, balance shifts), but working on the raw signed value lets high contrast push further before it clips. Flipped like noiseTone: a high field shows the first color. Use it in place of unitized plus noiseTone.

Parameters

NameTypeNotes
fieldField
slots{contrast: PropRef; balance: PropRef}

Example

paint: rampOver(signedTone(seededPlane(evolving(noiseField('mx3signed'), {rate: 0.5}), {scale: p('scale'), seed: p('seed')}), {contrast: p('contrast'), balance: p('balance')}), stops(p('colorSpace')))

See also

  • noiseTone — The standard contrast and balance controls of a noise texture, turning a 0–1 field into the ramp position.
  • unitized — Turns a signed field (−1 to 1) into a unit field (0 to 1).

Used by

SimplexNoise