Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

pbr_transmission.wgsl

Import path

Functions

specular_transmissive_light

#
fn specular_transmissive_light (
world_position: vec4<f32>
frag_coord: vec3<f32>
view_z: f32
ior: f32
thickness: f32
perceptual_roughness: f32
specular_transmissive_color: vec3<f32>
transmitted_environment_light_specular: vec3<f32>
) -> vec3<f32>

fetch_transmissive_background_non_rough

#
fn fetch_transmissive_background_non_rough (
offset_position: vec2<f32>
frag_coord: vec3<f32>
) -> vec4<f32>

fetch_transmissive_background

#
fn fetch_transmissive_background (
offset_position: vec2<f32>
frag_coord: vec3<f32>
view_z: f32
perceptual_roughness: f32
) -> vec4<f32>