30 # define GRAVITY 9.81f
32 typedef struct Ocean {
38 float _damp_reflections;
39 float _wind_alignment;
55 float normalize_factor;
69 float _sharpen_peak_jonswap;
77 fftw_complex *_fft_in;
78 fftw_complex *_fft_in_x;
79 fftw_complex *_fft_in_z;
80 fftw_complex *_fft_in_jxx;
81 fftw_complex *_fft_in_jzz;
82 fftw_complex *_fft_in_jxz;
83 fftw_complex *_fft_in_nx;
84 fftw_complex *_fft_in_nz;
85 fftw_complex *_htilda;
88 fftw_plan _disp_y_plan;
89 fftw_plan _disp_x_plan;
90 fftw_plan _disp_z_plan;
120 fftw_complex *_h0_minus;
pthread_rwlock_t ThreadRWMutex