예제 #1
0
파일: CGalaxy.cs 프로젝트: nulhax/VOID
	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);
	}
예제 #2
0
파일: CGalaxy.cs 프로젝트: nulhax/VOID
	public float SampleNoise(float x, float y, float z, ENoiseLayer noiseLayer)
	{
		return 0.5f + 0.5f * mNoises[(uint)noiseLayer].Generate(x, y, z);
	}