|
Space Sim
|
Integrates positions after velocity is computed. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | Node |
| struct | MortonEntry |
Macros | |
| #define | BODY_COUNT 15000 |
| #define | MAX_NODES 45000 |
| #define | MAX_DEPTH 64 |
Functions | |
| layout (local_size_x=128) in | |
| layout (std430, binding=1) buffer ParticleData | |
| void | main () |
Variables | |
| uniform int | frame |
| uniform float | DT |
| const vec4 | ice = vec4(0.2,0.4,1.0, 1.0) |
| const vec4 | rock = vec4(0.5,0.6,0.3, 1.0) |
| const vec4 | metal = vec4(0.5,0.5,0.6, 1.0) |
| const vec4 | gas = vec4(0.9,0.4,0.2, 1.0) |
| const float | star_threshold = 1000000.0 |
Integrates positions after velocity is computed.
Definition in file pos.comp.
| struct Particle |
| struct Node |
| struct MortonEntry |
Definition at line 29 of file bounds.comp.
| Data Fields | ||
|---|---|---|
| uint | pid | |
| uint | morton | |
| layout | ( | local_size_x | = 128 | ) |
References layout().
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 20 of file pos.comp.
References BODY_COUNT, and layout().
| void main | ( | ) |