Example #1
0
	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);
	}
Example #2
0
	public float SampleNoise(float x, float y, float z, ENoiseLayer noiseLayer)
	{
		return 0.5f + 0.5f * mNoises[(uint)noiseLayer].Generate(x, y, z);
	}