|
Space Sim
|
Traverses the LBVH per Particle and computes acceleration based on forces. More...
Go to the source code of this file.
Data Structures | |
| struct | Particle |
| struct | MortonEntry |
| struct | Node |
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 | |
| float | hash (uint x) |
| vec3 | rand_vec (uint id, uint f) |
| void | main () |
Variables | |
| uniform int | frame |
| const float | THETA = 0.7 |
| const float | DT = 0.1 |
| const float | T2 = (THETA * THETA) |
| const float | soft = 1.5 * 1.5 |
| const float | star_threshold = 4.0 |
| const float | acc_rate = 0.3 |
| const float | inv_acc_rate = 0.7 |
Traverses the LBVH per Particle and computes acceleration based on forces.
Definition in file main.comp.
| struct Particle |
| struct MortonEntry |
Definition at line 29 of file bounds.comp.
| Data Fields | ||
|---|---|---|
| uint | pid | |
| uint | morton | |
| struct Node |
| layout | ( | local_size_x | = 128 | ) |
References layout().
| layout | ( | std430 | , |
| binding | = 1 ) |
Definition at line 20 of file main.comp.
References BODY_COUNT, and layout().
| float hash | ( | uint | x | ) |
| vec3 rand_vec | ( | uint | id, |
| uint | f ) |
Definition at line 100 of file main.comp.
References hash(), and rand_vec().
Referenced by rand_vec().
| void main | ( | ) |