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.

fog.wgsl

Import path

Functions

scattering_adjusted_fog_color

#
fn scattering_adjusted_fog_color (
fog_params: Fog
scattering: vec3<f32>
) -> vec4<f32>

linear_fog

#
fn linear_fog (
fog_params: Fog
input_color: vec4<f32>
distance: f32
scattering: vec3<f32>
) -> vec4<f32>

exponential_fog

#
fn exponential_fog (
fog_params: Fog
input_color: vec4<f32>
distance: f32
scattering: vec3<f32>
) -> vec4<f32>

exponential_squared_fog

#
fn exponential_squared_fog (
fog_params: Fog
input_color: vec4<f32>
distance: f32
scattering: vec3<f32>
) -> vec4<f32>

atmospheric_fog

#
fn atmospheric_fog (
fog_params: Fog
input_color: vec4<f32>
distance: f32
scattering: vec3<f32>
) -> vec4<f32>