public GerstnerBatch(ShapeGerstner gerstner, float wavelength, int waveBufferSliceIndex, Material material, Mesh mesh) { _gerstner = gerstner; Wavelength = wavelength; _waveBufferSliceIndex = waveBufferSliceIndex; _mesh = mesh; _material = material; }
public static void DeregisterUpdatable(ShapeGerstner updatable) => _gerstners.RemoveAll(candidate => candidate == updatable);
public static void RegisterUpdatable(ShapeGerstner updatable) => _gerstners.Add(updatable);