From 9b436e67cdc5ee896c3c2fec90499e400a9e524e Mon Sep 17 00:00:00 2001 From: Sebastian Park Date: Wed, 17 Apr 2024 03:10:27 -0400 Subject: Do realtime refraction kinda. --- src/ocean/ocean.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/ocean') 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 get_vertices(); std::vector 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 omega_wind = std::make_pair(1.0, 0.0); // wind direction -- cgit v1.2.3-70-g09d2