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