diff options
| author | Sebastian Park <51029066+Seb-Park@users.noreply.github.com> | 2024-04-22 00:59:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 00:59:29 -0400 |
| commit | cd7c76017a12bb548036571c1ff13e551369d06d (patch) | |
| tree | 03cd022c7625c5c5682d21c20b0a8b8532e57140 /src/ocean | |
| parent | 5233a708a165ba8a3153e054ce74eb11084c0158 (diff) | |
| parent | 28d74097815a8d52b8f47f6eae6464005a6bc552 (diff) | |
Merge pull request #2 from Seb-Park/shaders
Shaders
Diffstat (limited to 'src/ocean')
| -rw-r--r-- | src/ocean/ocean.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ocean/ocean.h b/src/ocean/ocean.h index 2387d2a..0d2d2c0 100644 --- a/src/ocean/ocean.h +++ b/src/ocean/ocean.h @@ -17,7 +17,12 @@ public: void updateVertexAmplitudes(double t); std::vector<Eigen::Vector3f> get_vertices(); std::vector<Eigen::Vector3i> get_faces(); - + int getLength() { + return this->length; + } + int getWidth() { + return this->width; + } @@ -27,7 +32,7 @@ private: const int width = 81; // width of grid const int N = length * width; // total number of grid points - const double A = 10.0; // numeric constant for the Phillips spectrum + const double A = 50.0; // numeric constant for the Phillips spectrum const double V = .25; // wind speed const std::pair<double, double> omega_wind = std::make_pair(1.0, 0.0); // wind direction |
