Space Sim
Loading...
Searching...
No Matches
water.comp File Reference

The setup that interpolates the water grid via time before performing the FFT. More...

Go to the source code of this file.

Macros

#define N   128
#define L   1000

Functions

 layout (local_size_x=16, local_size_y=16, local_size_z=1) in
 layout (rgba32f, binding=0) uniform image2D img
 layout (std430, binding=14) buffer WaterData
void main ()

Variables

uniform float t
uniform float g

Detailed Description

The setup that interpolates the water grid via time before performing the FFT.

Definition in file water.comp.

Macro Definition Documentation

◆ N

#define N   128

Definition at line 14 of file water.comp.

◆ L

#define L   1000

Definition at line 15 of file water.comp.

Referenced by init_water_grid(), and main().

Function Documentation

◆ layout() [1/3]

layout ( local_size_x = 16,
local_size_y = 16,
local_size_z = 1 )

References layout().

◆ layout() [2/3]

layout ( rgba32f ,
binding = 0 )

References layout().

◆ layout() [3/3]

layout ( std430 ,
binding = 14 )

Definition at line 18 of file water.comp.

References layout().

◆ main()

void main ( )

Definition at line 26 of file water.comp.

References c0, c1, L, main(), N, s, t, vec2::x, vec3::x, and vec3::y.

Variable Documentation

◆ t

◆ g

uniform float g

Definition at line 24 of file water.comp.

Referenced by display_main_menu().