|
Space Sim
|
Renders the mesh planet surface, pushing out by planet radius. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | Vertex |
Macros | |
| #define | BODY_COUNT 30000 |
| #define | MAX_NODES 100000 |
| #define | LODMAX 4 |
| #define | MAX_CHUNKS 1000 |
| #define | NUM_OCTAVES 5 |
Functions | |
| layout (location=0) in vec3 aPosition | |
| layout (std140) uniform CameraData | |
| layout (std430, binding=1) buffer ParticleData | |
| float | mod289 (float x) |
| vec4 | mod289 (vec4 x) |
| vec4 | perm (vec4 x) |
| float | noise (vec3 p) |
| float | fbm (vec3 x) |
| vec3 | unpack_normal (uint p) |
| float | density_fn (vec3 p) |
| void | main () |
Variables | |
| out vec3 | vNormal |
| out vec4 | FragPos |
| out vec4 | vColor |
| out float | vDist |
| out vec4 | vFragPosLightSpace |
| uniform mat4 | light_view |
| uniform mat4 | light_proj |
| uniform float | uPlanetRadius |
| uniform int | uType |
| uniform int | uSelected |
| uniform sampler3D | perlin_tex |
Renders the mesh planet surface, pushing out by planet radius.
Definition in file mesh.vert.
| struct Particle |
| struct Vertex |
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | std140 | ) |
Definition at line 20 of file mesh.vert.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 39 of file mesh.vert.
References BODY_COUNT, and layout().
| float noise | ( | vec3 | p | ) |
| float fbm | ( | vec3 | x | ) |
Definition at line 116 of file mesh.vert.
References fbm(), noise(), and NUM_OCTAVES.
| vec3 unpack_normal | ( | uint | p | ) |
| float density_fn | ( | vec3 | p | ) |
Definition at line 149 of file mesh.vert.
References density_fn(), fbm(), perlin_tex, and vec3::z.
| void main | ( | ) |
Definition at line 166 of file mesh.vert.
References FragPos, light_proj, light_view, main(), Vertex::normal, Vertex::pos, projection, uPlanetRadius, vColor, vDist, vFragPosLightSpace, view, vNormal, and vec3::z.