Get individual noise values with CalcPixel methods
masterIf you need to calculate the noise value for a specific coordinate without generating an entire array, use the CalcPixel methods. These return a single float value.
Methods:
Noise.CalcPixel1D(int x, float scale): Returns the value at indexx.Noise.CalcPixel2D(int x, int y, float scale): Returns the value at indexx, y.Noise.CalcPixel3D(int x, int y, int z, float scale): Returns the value at indexx, y, z.
// Example 2D pixel access
int x = 10, y = 15;
float scale = 0.10f;
float pixel = Noise.CalcPixel2D(x, y, scale);