|
Space Sim
|
Renders the mesh planet surface and calculates light. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | WarpLayer |
| struct | PerlinLayer |
| struct | FBMLayer |
Macros | |
| #define | BODY_COUNT 30000 |
| #define | MAX_NODES 100000 |
| #define | LODMAX 4 |
| #define | MAX_CHUNKS 1000 |
| #define | MAX_LAYERS 24 |
Functions | |
| layout (location=0) out vec4 fragColor | |
| layout (std140) uniform CameraData | |
| layout (std430, binding=1) buffer ParticleData | |
| float | hash (vec2 p) |
| float | shadow_calculation (vec4 pos, float diff) |
| float | linearize (float z) |
| layout (std140, binding=2) uniform RenderingData | |
| void | main () |
Variables | |
| in vec4 | vColor |
| in vec3 | vNormal |
| in vec4 | FragPos |
| in float | vDist |
| in vec4 | vFragPosLightSpace |
| uniform int | uSelected |
| uniform float | uTime |
| uniform sampler2D | normal_map |
| uniform sampler2D | diffuse_tex |
| uniform sampler2D | spec_tex |
| uniform sampler2D | ao_tex |
| uniform sampler2D | shadow_map |
| uniform int | uType |
| uniform int | lod_level |
| uniform int | cid |
| const mat4 | ditherMatrix |
| const int | bayer16x16 [16][16] |
| uniform float | uChunkDist |
| const vec3 | tX = vec3(0, 0, 1) |
| const vec3 | bX = vec3(0, 1, 0) |
| const vec3 | nXw = vec3(1, 0, 0) |
| const vec3 | tY = vec3(1, 0, 0) |
| const vec3 | bY = vec3(0, 0, 1) |
| const vec3 | nYw = vec3(0, 1, 0) |
| const vec3 | tZ = vec3(1, 0, 0) |
| const vec3 | bZ = vec3(0, 1, 0) |
| const vec3 | nZw = vec3(0, 0, 1) |
Renders the mesh planet surface and calculates light.
Definition in file mesh.frag.
| struct Particle |
| struct WarpLayer |
| struct PerlinLayer |
| struct FBMLayer |
| layout | ( | std140 | ) |
Definition at line 14 of file mesh.frag.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 36 of file mesh.frag.
References BODY_COUNT, and layout().
| float shadow_calculation | ( | vec4 | pos, |
| float | diff ) |
Definition at line 162 of file mesh.frag.
References shadow_calculation(), shadow_map, vec4::w, and vec3::z.
Referenced by main(), and shadow_calculation().
| float linearize | ( | float | z | ) |
Definition at line 191 of file mesh.frag.
References linearize().
| void main | ( | ) |
| uniform sampler2D shadow_map |
Definition at line 65 of file mesh.frag.
Referenced by shadow_calculation().
| uniform int lod_level |
Definition at line 68 of file mesh.frag.
Referenced by load_chunks(), and main().
| const mat4 ditherMatrix |
| const int bayer16x16[16][16] |