Log inGet started
Package

field.nodebox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

field.simplex

Smooth signed 3D simplex noise over [-1, 1], on the same lattice hash as the rest of the noise, scaled by amplitude: fewer grid-aligned artefacts than gradient noise.

Inputs

  • position (Field<Vec3> | Vec3, optional). Where each element samples the field. Left unwired, it is field.position(): the P column of the domain the field is evaluated over.
  • frequency (Float). Default 1. About 1 / frequency between one feature and the next.
  • amplitude (Float). Default 1. What the noise is scaled by.
  • seed (Float). Default 1. Which of the possible patterns this is; the same seed replays the same field everywhere.

Outputs

  • field: a Float field.

Example

local points = g.points.grid({ countX = 4, countZ = 1, spacing = 1 })
local out = g.attribute.set({ geometry = points, name = "v", value = g.field.simplex({ frequency = 0.5, amplitude = 2 }) })