#include <common/Vector.h>Go to the source code of this file.
Classes | |
| class | Water2Points |
Defines | |
| #define | __INCLUDE_Water2Constantsh_INCLUDE__ |
| #define | REFRAC_COLOR_RES 32 |
| #define | FRESNEL_FCT_RES 256 |
Functions | |
| static float | myfmod (float a, float b) |
| static float | exact_fresnel (float x) |
Variables | |
| static const float | wave_tidecycle_time = 10.24f |
| static const unsigned int | wave_phases = 256 |
| static const unsigned int | wave_patch_width = 64 |
| static const unsigned int | wave_resolution = 128 |
| static const float | grid_size = 512.0f / (256.0f / float(wave_patch_width)) |
| static const float | half_grid_size = grid_size / 2.0f |
| static const float | wavetile_length = 256.0f |
| static const float | wave_waterwidth = wavetile_length |
| static const float | wavetile_length_rcp = 1.0f / wavetile_length |
| static const float | VIRTUAL_PLANE_HEIGHT = 25.0f |
| #define __INCLUDE_Water2Constantsh_INCLUDE__ |
Definition at line 22 of file Water2Constants.h.
| #define FRESNEL_FCT_RES 256 |
Definition at line 43 of file Water2Constants.h.
| #define REFRAC_COLOR_RES 32 |
Definition at line 42 of file Water2Constants.h.
| static float exact_fresnel | ( | float | x | ) | [inline, static] |
Definition at line 58 of file Water2Constants.h.
| static float myfmod | ( | float | a, | |
| float | b | |||
| ) | [inline, static] |
const float grid_size = 512.0f / (256.0f / float(wave_patch_width)) [static] |
Definition at line 33 of file Water2Constants.h.
const float half_grid_size = grid_size / 2.0f [static] |
Definition at line 34 of file Water2Constants.h.
const float VIRTUAL_PLANE_HEIGHT = 25.0f [static] |
Definition at line 40 of file Water2Constants.h.
const unsigned int wave_patch_width = 64 [static] |
const unsigned int wave_phases = 256 [static] |
Definition at line 29 of file Water2Constants.h.
Referenced by Water2::generate(), and Water2::generateAOF().
const unsigned int wave_resolution = 128 [static] |
Definition at line 31 of file Water2Constants.h.
Referenced by Water2::generate(), Water2::generateAOF(), Water2::generateTransparency(), and Water2Points::getPoint().
const float wave_tidecycle_time = 10.24f [static] |
const float wave_waterwidth = wavetile_length [static] |
const float wavetile_length = 256.0f [static] |
Definition at line 36 of file Water2Constants.h.
const float wavetile_length_rcp = 1.0f / wavetile_length [static] |
Definition at line 38 of file Water2Constants.h.
Referenced by Water2Renderer::drawWaterShaders(), and Water2::generateAOF().
1.5.3