Untitled
Loading...
Searching...
No Matches
cull_clusters.comp File Reference

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

Data Structure Documentation

◆ AABB

struct AABB

Definition at line 110 of file audio_probe_bake.comp.

Data Fields
vec3 min
uint pad0
vec3 max
uint pad1
vec3 center
uint pad2
vec3 extents
uint pad3
vec4 min
vec4 max
float min_x
float max_x
float min_y
float max_y
float min_z
float max_z

Function Documentation

◆ layout() [1/3]

layout ( local_size_x = 1,
local_size_y = 1,
local_size_z = 1 )

References layout().

◆ layout() [2/3]

layout ( std140 ,
binding = 0 )

Definition at line 5 of file cull_clusters.comp.

References layout(), projection, and view.

◆ layout() [3/3]

layout ( std430 ,
binding = 0 )

Definition at line 69 of file cull_clusters.comp.

References layout().

◆ test_sphere_aabb()

bool test_sphere_aabb ( vec3 light_pos,
float light_radius,
vec4 min,
vec4 max )

◆ main()

Variable Documentation

◆ uGridSize

uniform uvec3 uGridSize

Definition at line 100 of file cull_clusters.comp.

Referenced by get_cluster_index(), and main().

◆ uNear

uniform float uNear

Definition at line 101 of file cull_clusters.comp.

Referenced by get_cluster_index(), and main().

◆ uFar

uniform float uFar

Definition at line 102 of file cull_clusters.comp.

Referenced by main().

◆ uMaxLightsPerCluster

uniform uint uMaxLightsPerCluster

Definition at line 105 of file cull_clusters.comp.

Referenced by main().

◆ uLightCount

uniform uint uLightCount

Definition at line 106 of file cull_clusters.comp.