16 # define GRAVITY 9.81f
18 typedef struct Ocean {
24 float _damp_reflections;
25 float _wind_alignment;
41 float normalize_factor;
55 float _sharpen_peak_jonswap;
63 fftw_complex *_fft_in;
64 fftw_complex *_fft_in_x;
65 fftw_complex *_fft_in_z;
66 fftw_complex *_fft_in_jxx;
67 fftw_complex *_fft_in_jzz;
68 fftw_complex *_fft_in_jxz;
69 fftw_complex *_fft_in_nx;
70 fftw_complex *_fft_in_nz;
71 fftw_complex *_htilda;
74 fftw_plan _disp_y_plan;
75 fftw_plan _disp_x_plan;
76 fftw_plan _disp_z_plan;
106 fftw_complex *_h0_minus;
pthread_rwlock_t ThreadRWMutex