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.

Constants

DIFFUSE_GI_REUSE_ROUGHNESS_THRESHOLD

#
Used by 1 shader in bevy_solari 0.19.1
const DIFFUSE_GI_REUSE_ROUGHNESS_THRESHOLD: f32 = 0.4

SPECULAR_GI_FOR_DI_ROUGHNESS_THRESHOLD

#
Used by 1 shader in bevy_solari 0.19.1
const SPECULAR_GI_FOR_DI_ROUGHNESS_THRESHOLD: f32 = 0.0225

Functions

specular_gi

#
@compute
Runs custom parallel code on the GPU, not limited to graphics
@workgroup_size(8, 8, 1)
Defines the size of a thread group. One to three numbers: width (x), height (y), and depth (z). Missing values default to 1
fn specular_gi (
@builtin(global_invocation_id)
global_id: vec3<u32>
)

trace_glossy_path

#
fn trace_glossy_path (
pixel_id: vec2<u32>,
primary_surface: ResolvedGPixel,
initial_ray_t: f32,
initial_wi: vec3<f32>,
initial_p_bounce: f32,
rng: ptr<function, u32>
) -> vec3<f32>

emissive_mis_weight

#
fn emissive_mis_weight (
i: u32,
initial_roughness: f32,
p_bounce: f32,
) -> f32

nee_mis_weight

#
fn nee_mis_weight (
inverse_p_light: f32,
brdf_rays_can_hit: bool,
wo_tangent: vec3<f32>,
wi: vec3<f32>,
TBN: mat3x3<f32>
) -> f32

reflection_matrix

#
Active when
DLSS_RR_GUIDE_BUFFERS
fn reflection_matrix (
plane_normal: vec3f
) -> mat3x3<f32>

replace_primary_surface

#
Active when
DLSS_RR_GUIDE_BUFFERS
fn replace_primary_surface (
pixel_id: vec2<u32>,
mirror_rotations: mat3x3<f32>,
primary_surface_world_position: vec3<f32>
)

calculate_motion_vector

#
Active when
DLSS_RR_GUIDE_BUFFERS
fn calculate_motion_vector (
world_position: vec3<f32>,
previous_world_position: vec3<f32>
) -> vec2<f32>
Contents