|
Space Sim
|
Raymarches Rayleigh-Mie through the atmosphere against a sphere from outside of the sphere. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | WarpLayer |
| struct | PerlinLayer |
| struct | FBMLayer |
Macros | |
| #define | BODY_COUNT 15000 |
| #define | MAX_LAYERS 24 |
Functions | |
| layout (location=0) in vec3 aPosition | |
| layout (std140) uniform CameraData | |
| layout (std430, binding=1) buffer ParticleData | |
| 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 from outside of the sphere.
Definition in file atmosphere_from_space.vert.
| struct Particle |
| struct WarpLayer |
| struct PerlinLayer |
| struct FBMLayer |
| #define BODY_COUNT 15000 |
Definition at line 30 of file atmosphere_from_space.vert.
| #define MAX_LAYERS 24 |
Definition at line 48 of file atmosphere_from_space.vert.
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | std140 | ) |
Definition at line 21 of file atmosphere_from_space.vert.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 38 of file atmosphere_from_space.vert.
References BODY_COUNT, and layout().
| float scale | ( | float | fCos | ) |
Definition at line 114 of file atmosphere_from_space.vert.
References scale().
| void main | ( | ) |
| out vec3 vPos |
Definition at line 14 of file atmosphere_from_space.vert.
| out vec3 vNormal |
Definition at line 15 of file atmosphere_from_space.vert.
| out vec3 c0 |
Definition at line 16 of file atmosphere_from_space.vert.
| out vec3 c1 |
Definition at line 17 of file atmosphere_from_space.vert.
| out vec3 t0 |
Definition at line 18 of file atmosphere_from_space.vert.
| out vec3 vViewDir |
Definition at line 19 of file atmosphere_from_space.vert.
| uniform vec3 uCamPosWorld |
Definition at line 94 of file atmosphere_from_space.vert.
| uniform float uInnerRadius |
Definition at line 95 of file atmosphere_from_space.vert.
| uniform float uInnerRadius2 |
Definition at line 96 of file atmosphere_from_space.vert.
| uniform float uOuterRadius |
Definition at line 97 of file atmosphere_from_space.vert.
| uniform float uOuterRadius2 |
Definition at line 98 of file atmosphere_from_space.vert.
| uniform vec3 uInvWavelength |
Definition at line 99 of file atmosphere_from_space.vert.
| uniform float uFScale |
Definition at line 100 of file atmosphere_from_space.vert.
| uniform float uFScaleOverDepth |
Definition at line 101 of file atmosphere_from_space.vert.
| uniform float uFInvScaleDepth |
Definition at line 102 of file atmosphere_from_space.vert.
| uniform float uFScaleDepth |
Definition at line 103 of file atmosphere_from_space.vert.
| uniform float uG |
Definition at line 104 of file atmosphere_from_space.vert.
| uniform float uG2 |
Definition at line 105 of file atmosphere_from_space.vert.
| uniform float ufKrESun |
Definition at line 106 of file atmosphere_from_space.vert.
| uniform float ufKmESun |
Definition at line 107 of file atmosphere_from_space.vert.
| uniform float ufKr4Pi |
Definition at line 108 of file atmosphere_from_space.vert.
| uniform float ufKm4Pi |
Definition at line 109 of file atmosphere_from_space.vert.
| uniform mat4 uFakeView |
Definition at line 110 of file atmosphere_from_space.vert.
| uniform mat4 uFakeProj |
Definition at line 111 of file atmosphere_from_space.vert.
| uniform vec3 uCamPos |
Definition at line 121 of file atmosphere_from_space.vert.
| const int samples = 4 |
Definition at line 123 of file atmosphere_from_space.vert.