Constants
Used by 2 shaders in bevy_pbr 0.19.1
Structures
Used by 2 shaders in bevy_pbr 0.19.1
Used by 2 shaders in bevy_pbr 0.19.1
Used by 2 shaders in bevy_pbr 0.19.1
Functions
Used by 2 shaders in bevy_pbr 0.19.1
Used by 2 shaders in bevy_pbr 0.19.1
Active when
MULTIPLE_LIGHT_PROBES_IN_ARRAY
fn
compute_radiances
(
input: LayerLightingInput,
clusterable_object_index_ranges: ptr<function, ClusterableObjectIndexRanges>,
found_diffuse_indirect: bool
)
->
EnvironmentMapRadiances
Active when
!MULTIPLE_LIGHT_PROBES_IN_ARRAY
fn
compute_radiances
(
input: LayerLightingInput,
clusterable_object_index_ranges: ptr<function, ClusterableObjectIndexRanges>,
found_diffuse_indirect: bool
)
->
EnvironmentMapRadiances
Used by 2 shaders in bevy_pbr 0.19.1
Active when
STANDARD_MATERIAL_CLEARCOAT
Adds the environment map light from the clearcoat layer to that of the base layer.
fn
environment_map_light_clearcoat
(
out: ptr<function, EnvironmentMapLight>,
input: ptr<function, LightingInput>,
clusterable_object_index_ranges: ptr<function, ClusterableObjectIndexRanges>,
found_diffuse_indirect: bool
)
Used by 2 shaders in bevy_pbr 0.19.1
We initially used this (https://bruop.github.io/ibl) reference with Roughness Dependent Fresnel, but it made fresnel very bright so we reverted to the “typical” fresnel term.
Used by 2 shaders in bevy_pbr 0.19.1
fn
environment_map_light
(
input: ptr<function, LightingInput>,
clusterable_object_index_ranges: ptr<function, ClusterableObjectIndexRanges>,
found_diffuse_indirect: bool
)
->
EnvironmentMapLight
parallax_correctis true if parallax correction is to be applied and false otherwise.