private static Model.Noise RegisterPreset(Model.Noise noiseModel) { try { PresetNoises.Add(noiseModel.Name, noiseModel); } catch (ArgumentException e) { Console.WriteLine(e); } return(noiseModel); }
public NoiseStruct( Model.Noise noiseModel, AnimationCurve splerp, Texture2D splerpTexture, Range range = Range.OneAroundZero, RenderType renderType = RenderType.Render2D, int resolution = 512, float frequency = 1.0f, float amplitude = 1.0f, Transform worldTransform = null ) { this.noiseModel = noiseModel; this.splerp = splerp; this.splerpTexture = splerpTexture; this.range = range; this.renderType = renderType; this.resolution = resolution; this.frequency = frequency; this.amplitude = amplitude; this.worldTransform = worldTransform; }