Bevy Shader Explorer
Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
Packages
›
bevy_pbr
0.20.0
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
0.16.0
0.16.1
0.16.2
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.18.1
0.19.0
0.19.1
›
occlusion_culling.wesl
Save
Functions
get_aabb_size_in_pixels
#
fn
get_aabb_size_in_pixels
(
aabb:
vec4
<
f32
>
,
depth_pyramid:
texture_2d
<
f32
>
)
->
vec2
<
f32
>
get_occluder_depth
#
fn
get_occluder_depth
(
aabb:
vec4
<
f32
>
,
aabb_pixel_size:
vec2
<
f32
>
,
depth_pyramid:
texture_2d
<
f32
>
)
->
f32
Contents
Functions
get_aabb_size_in_pixels
get_occluder_depth