|
Untitled
|
Go to the source code of this file.
Data Structures | |
| struct | Light |
| The CPU side structure for Lights. More... | |
| struct | AABB |
| struct | Cluster |
| GPU-side Clusters for clustered forward. More... | |
Functions | |
| layout (local_size_x=1, local_size_y=1, local_size_z=1) in | |
| layout (std140, binding=0) uniform CameraData | |
| layout (std430, binding=0) buffer LightData | |
| bool | test_sphere_aabb (vec3 light_pos, float light_radius, vec4 min, vec4 max) |
| void | main () |
Variables | |
| uniform uvec3 | uGridSize |
| uniform float | uNear |
| uniform float | uFar |
| uniform uint | uMaxLightsPerCluster |
| uniform uint | uLightCount |
| struct AABB |
| layout | ( | local_size_x | = 1, |
| local_size_y | = 1, | ||
| local_size_z | = 1 ) |
References layout().
| layout | ( | std140 | , |
| binding | = 0 ) |
Definition at line 5 of file cull_clusters.comp.
References layout(), projection, and view.
| layout | ( | std430 | , |
| binding | = 0 ) |
Definition at line 69 of file cull_clusters.comp.
References layout().
Definition at line 108 of file cull_clusters.comp.
References clamp(), and test_sphere_aabb().
Referenced by main(), test_sphere_aabb(), test_sphere_aabb(), and update_physics_components().
| void main | ( | ) |
Definition at line 117 of file cull_clusters.comp.
References Light::light_type, main(), AABB::max, AABB::min, Light::pos, Light::radius, test_sphere_aabb(), uGridSize, uLightCount, uMaxLightsPerCluster, view, uvec3::x, uvec3::y, and uvec3::z.
| uniform uvec3 uGridSize |
Definition at line 100 of file cull_clusters.comp.
Referenced by get_cluster_index(), and main().
| uniform float uNear |
Definition at line 101 of file cull_clusters.comp.
Referenced by get_cluster_index(), and main().
| uniform float uFar |
Definition at line 102 of file cull_clusters.comp.
Referenced by main().
| uniform uint uMaxLightsPerCluster |
Definition at line 105 of file cull_clusters.comp.
Referenced by main().
| uniform uint uLightCount |
Definition at line 106 of file cull_clusters.comp.