public void InstantiatePassType(int seed) { switch (noisePassType) { case NoiseType.PERLIN: typedAndInstantiatedPass = new PerlinPass(); break; case NoiseType.BILLOW: typedAndInstantiatedPass = new BillowPass(); break; case NoiseType.RIGGED_MULTIFRACTAL: typedAndInstantiatedPass = new RiggedMultifractalPass(); break; } typedAndInstantiatedPass.Initialize(this, seed); if (turbulenceSettings.isActive) { turbulenceSettings.Initialize(seed, typedAndInstantiatedPass.noiseModule); typedAndInstantiatedPass.noiseModule = turbulenceSettings.turbulenceModule; } }
public void InstantiatePassType (int seed) { switch (noisePassType) { case NoiseType.PERLIN: typedAndInstantiatedPass = new PerlinPass (); break; case NoiseType.BILLOW: typedAndInstantiatedPass = new BillowPass (); break; case NoiseType.RIGGED_MULTIFRACTAL: typedAndInstantiatedPass = new RiggedMultifractalPass (); break; } typedAndInstantiatedPass.Initialize(this, seed); if (turbulenceSettings.isActive) { turbulenceSettings.Initialize(seed, typedAndInstantiatedPass.noiseModule); typedAndInstantiatedPass.noiseModule = turbulenceSettings.turbulenceModule; } }