|
Space Sim
|
Generates the final color for Rayleigh-Mie based on incoming coefficients. More...
Go to the source code of this file.
Data Structures | |
| struct | WarpLayer |
| struct | PerlinLayer |
| struct | FBMLayer |
Macros | |
| #define | MAX_LAYERS 24 |
Functions | |
| layout (std430, binding=13) buffer PlanetData | |
| float | rayleigh_phase (float fCos, float fCos2) |
| float | mie_phase (float fCos, float fCos2) |
| void | main () |
Variables | |
| out vec4 | fragColor |
| in vec3 | vPos |
| in vec3 | vNormal |
| in vec3 | c0 |
| in vec3 | c1 |
| in vec3 | t0 |
| in vec3 | vViewDir |
| uniform float | uG |
| uniform float | uG2 |
| uniform float | uColor |
Generates the final color for Rayleigh-Mie based on incoming coefficients.
Definition in file atmosphere.frag.
| struct WarpLayer |
| struct PerlinLayer |
| struct FBMLayer |
| #define MAX_LAYERS 24 |
Definition at line 21 of file atmosphere.frag.
| layout | ( | std430 | , |
| binding | = 13 ) |
Definition at line 52 of file atmosphere.frag.
References layout(), MAX_LAYERS, sun_color, and sun_dir.
| float rayleigh_phase | ( | float | fCos, |
| float | fCos2 ) |
Definition at line 68 of file atmosphere.frag.
References rayleigh_phase().
Referenced by main(), and rayleigh_phase().
| float mie_phase | ( | float | fCos, |
| float | fCos2 ) |
Definition at line 73 of file atmosphere.frag.
References mie_phase(), uG, and uG2.
Referenced by main(), and mie_phase().
| void main | ( | ) |
Definition at line 82 of file atmosphere.frag.
References c0, c1, fragColor, main(), mie_phase(), rayleigh_phase(), sun_dir, and t0.
| out vec4 fragColor |
Definition at line 9 of file atmosphere.frag.
| in vec3 vPos |
Definition at line 10 of file atmosphere.frag.
Referenced by main().
| in vec3 vNormal |
Definition at line 11 of file atmosphere.frag.
Referenced by main().
| in vec3 c0 |
Definition at line 12 of file atmosphere.frag.
Referenced by main(), make_atmosphere_sphere_face(), sample_density(), sample_density(), and sample_fbm_density().
| in vec3 c1 |
Definition at line 13 of file atmosphere.frag.
Referenced by main(), make_atmosphere_sphere_face(), sample_density(), sample_density(), and sample_fbm_density().
| in vec3 t0 |
Definition at line 14 of file atmosphere.frag.
| in vec3 vViewDir |
Definition at line 15 of file atmosphere.frag.
Referenced by main().
| uniform float uG |
Definition at line 17 of file atmosphere.frag.
Referenced by mie_phase().
| uniform float uG2 |
Definition at line 18 of file atmosphere.frag.
Referenced by mie_phase().
| uniform float uColor |
Definition at line 81 of file atmosphere.frag.