|
Space Sim
|
Raymarches Rayleigh-Mie through the atmosphere against a sphere. More...
Go to the source code of this file.
Data Structures | |
| struct | WarpLayer |
| struct | PerlinLayer |
| struct | FBMLayer |
Macros | |
| #define | MAX_LAYERS 24 |
Functions | |
| layout (location=0) in vec3 aPosition | |
| layout (std140) uniform CameraData | |
| layout (std430, binding=13) buffer PlanetData | |
| float | scale (float fCos) |
| void | main () |
Variables | |
| out vec3 | vPos |
| out vec3 | vNormal |
| out vec3 | c0 |
| out vec3 | c1 |
| out vec3 | t0 |
| out vec3 | vViewDir |
| uniform vec3 | uCamPosWorld |
| uniform float | uInnerRadius |
| uniform float | uInnerRadius2 |
| uniform float | uOuterRadius |
| uniform float | uOuterRadius2 |
| uniform vec3 | uInvWavelength |
| uniform float | uFScale |
| uniform float | uFScaleOverDepth |
| uniform float | uFInvScaleDepth |
| uniform float | uFScaleDepth |
| uniform float | uG |
| uniform float | uG2 |
| uniform float | ufKrESun |
| uniform float | ufKmESun |
| uniform float | ufKr4Pi |
| uniform float | ufKm4Pi |
| uniform mat4 | uFakeView |
| uniform mat4 | uFakeProj |
| uniform vec3 | uCamPos |
| const int | samples = 4 |
Raymarches Rayleigh-Mie through the atmosphere against a sphere.
Definition in file atmosphere.vert.
| struct WarpLayer |
| struct PerlinLayer |
| struct FBMLayer |
| #define MAX_LAYERS 24 |
Definition at line 29 of file atmosphere.vert.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | std140 | ) |
Definition at line 20 of file atmosphere.vert.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 13 ) |
Definition at line 60 of file atmosphere.vert.
References layout(), MAX_LAYERS, sun_color, and sun_dir.
| float scale | ( | float | fCos | ) |
Definition at line 95 of file atmosphere.vert.
References scale().
Referenced by apply_air_acceleration(), apply_planet_velocity(), main(), make_atmosphere_sphere_face(), and scale().
| void main | ( | ) |
Definition at line 104 of file atmosphere.vert.
References c0, c1, depth, L, main(), samples, scale(), sun_dir, t0, uCamPosWorld, uFakeProj, uFakeView, ufKm4Pi, ufKmESun, ufKr4Pi, ufKrESun, uFScale, uFScaleOverDepth, uInnerRadius, uInvWavelength, uOuterRadius, vNormal, vPos, vViewDir, and vec3::z.
| out vec3 vPos |
Definition at line 13 of file atmosphere.vert.
| out vec3 vNormal |
Definition at line 14 of file atmosphere.vert.
| out vec3 c0 |
Definition at line 15 of file atmosphere.vert.
| out vec3 c1 |
Definition at line 16 of file atmosphere.vert.
| out vec3 t0 |
Definition at line 17 of file atmosphere.vert.
| out vec3 vViewDir |
Definition at line 18 of file atmosphere.vert.
| uniform vec3 uCamPosWorld |
Definition at line 75 of file atmosphere.vert.
Referenced by main().
| uniform float uInnerRadius |
Definition at line 76 of file atmosphere.vert.
Referenced by main().
| uniform float uInnerRadius2 |
Definition at line 77 of file atmosphere.vert.
| uniform float uOuterRadius |
Definition at line 78 of file atmosphere.vert.
Referenced by main().
| uniform float uOuterRadius2 |
Definition at line 79 of file atmosphere.vert.
| uniform vec3 uInvWavelength |
Definition at line 80 of file atmosphere.vert.
Referenced by main().
| uniform float uFScale |
Definition at line 81 of file atmosphere.vert.
Referenced by main().
| uniform float uFScaleOverDepth |
Definition at line 82 of file atmosphere.vert.
Referenced by main().
| uniform float uFInvScaleDepth |
Definition at line 83 of file atmosphere.vert.
| uniform float uFScaleDepth |
Definition at line 84 of file atmosphere.vert.
Referenced by main().
| uniform float uG |
Definition at line 85 of file atmosphere.vert.
| uniform float uG2 |
Definition at line 86 of file atmosphere.vert.
| uniform float ufKrESun |
Definition at line 87 of file atmosphere.vert.
Referenced by main().
| uniform float ufKmESun |
Definition at line 88 of file atmosphere.vert.
Referenced by main().
| uniform float ufKr4Pi |
Definition at line 89 of file atmosphere.vert.
Referenced by main().
| uniform float ufKm4Pi |
Definition at line 90 of file atmosphere.vert.
Referenced by main().
| uniform mat4 uFakeView |
Definition at line 91 of file atmosphere.vert.
Referenced by main().
| uniform mat4 uFakeProj |
Definition at line 92 of file atmosphere.vert.
Referenced by main().
| uniform vec3 uCamPos |
Definition at line 101 of file atmosphere.vert.
| const int samples = 4 |
Definition at line 103 of file atmosphere.vert.
Referenced by main().