NoiseSampler:at
methodNoiseSampler:at(x: number, y: number, z?: number) -> numberSample the noise field. Accepts a vec2, a vec3, or numeric coordinates (x, y) / (x, y, z).
-- x and y, or x, y and z, as numbers or as a vector.
local flat = field:at(3.3, 4.7)
print(flat == field:at(datumhue.math.vec2(3.3, 4.7))) --> true
local deep = field:at(3.3, 4.7, 1.5)
print(deep == field:at(datumhue.math.vec3(3.3, 4.7, 1.5))) --> true
print(string.format("%.3f %.3f", flat, deep)) --> 0.264 -0.806