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.

environment_map.wgsl

Import path

Structures

EnvironmentMapLight

#
struct EnvironmentMapLight {
diffuse: vec3<f32> ,
specular: vec3<f32> ,
}

EnvironmentMapRadiances

#
struct EnvironmentMapRadiances {
irradiance: vec3<f32> ,
radiance: vec3<f32> ,
}

Functions

compute_radiances

#

Shader defs requirments:

🟢 MULTIPLE_LIGHT_PROBES_IN_ARRAY

fn compute_radiances (
layer: u32
world_position: vec3<f32>
found_diffuse_indirect: bool
) -> EnvironmentMapRadiances

compute_radiances

#

Shader defs requirments:

šŸ”“ MULTIPLE_LIGHT_PROBES_IN_ARRAY

fn compute_radiances (
layer: u32
world_position: vec3<f32>
found_diffuse_indirect: bool
) -> EnvironmentMapRadiances

environment_map_light_clearcoat

#

Shader defs requirments:

🟢 STANDARD_MATERIAL_CLEARCOAT

Adds the environment map light from the clearcoat layer to that of the base layer.

fn environment_map_light_clearcoat (
found_diffuse_indirect: bool
)

environment_map_light

#
fn environment_map_light (
found_diffuse_indirect: bool
) -> EnvironmentMapLight