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.

Structures

ResolvedGPixel

#
Used by 1 shader in bevy_solari 0.19.1
struct ResolvedGPixel {
world_position: vec3<f32>,
world_normal: vec3<f32>,
material: ResolvedMaterial,
}

Functions

gpixel_resolve

#

reconstruct_world_position

#
fn reconstruct_world_position (
pixel_id: vec2<u32>,
depth: f32,
view_size: vec2<f32>,
world_from_clip: mat4x4<f32>
) -> vec3<f32>

pixel_dissimilar

#

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

#
fn permute_pixel (
pixel_id: vec2<u32>,
frame_index: u32,
view_size: vec2<f32>
) -> vec2<u32>
Contents