public float SampleNoise(SCellPos absoluteCell, float sampleScale, ENoiseLayer noiseLayer) { Vector3 samplePoint = AbsoluteCellNoiseSamplePoint(absoluteCell, sampleScale); return 0.5f + 0.5f * mNoises[(uint)noiseLayer].Generate(samplePoint.x, samplePoint.y, samplePoint.z); }
public float SampleNoise(float x, float y, float z, ENoiseLayer noiseLayer) { return 0.5f + 0.5f * mNoises[(uint)noiseLayer].Generate(x, y, z); }