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_solari
0.19.1
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.18.1
0.19.0
›
gbuffer_utils.wgsl
Copy import path
Save
Structures
ResolvedGPixel
#
Copy import statement
Used by 1 shader in bevy_solari 0.19.1
bevy_solari 0.19.1 — specular_gi.wgsl
struct
ResolvedGPixel
{
world_position:
vec3
<
f32
>,
world_normal:
vec3
<
f32
>,
material:
ResolvedMaterial
,
}
Functions
gpixel_resolve
#
Copy import statement
Used by 4 shaders in bevy_solari 0.19.1
bevy_solari 0.19.1 — resolve_dlss_rr_textures.wgsl
bevy_solari 0.19.1 — restir_di.wgsl
bevy_solari 0.19.1 — restir_gi.wgsl
bevy_solari 0.19.1 — specular_gi.wgsl
fn
gpixel_resolve
(
gpixel:
vec4
<
u32
>,
depth:
f32
,
pixel_id:
vec2
<
u32
>,
view_size:
vec2
<
f32
>,
world_from_clip:
mat4x4
<
f32
>
)
->
ResolvedGPixel
reconstruct_world_position
#
Copy import statement
fn
reconstruct_world_position
(
pixel_id:
vec2
<
u32
>,
depth:
f32
,
view_size:
vec2
<
f32
>,
world_from_clip:
mat4x4
<
f32
>
)
->
vec3
<
f32
>
pixel_dissimilar
#
Copy import statement
Used by 2 shaders in bevy_solari 0.19.1
bevy_solari 0.19.1 — restir_di.wgsl
bevy_solari 0.19.1 — restir_gi.wgsl
Reject if tangent plane differs more than 0.3% or angle between normals more than 90 degrees
fn
pixel_dissimilar
(
depth:
f32
,
world_position:
vec3
<
f32
>,
other_world_position:
vec3
<
f32
>,
normal:
vec3
<
f32
>,
other_normal:
vec3
<
f32
>,
view:
View
)
->
bool
permute_pixel
#
Copy import statement
Used by 2 shaders in bevy_solari 0.19.1
bevy_solari 0.19.1 — restir_di.wgsl
bevy_solari 0.19.1 — restir_gi.wgsl
fn
permute_pixel
(
pixel_id:
vec2
<
u32
>,
frame_index:
u32
,
view_size:
vec2
<
f32
>
)
->
vec2
<
u32
>
Contents
Structures
ResolvedGPixel
Functions
gpixel_resolve
reconstruct_world_position
pixel_dissimilar
permute_pixel
Reject if tangent plane differs more than 0.3% or angle between normals more than 90 degrees