Constants
Used by 8 shaders
Used by 8 shaders
Structures
Used by 8 shaders
Used by 8 shaders
Input to a lighting function (point_light, spot_light,
directional_light).
Functions
Used by 8 shaders
Used by 9 shaders
- bevy_pbr 0.19.1 — deferred_lighting.wgsl
- bevy_pbr 0.19.1 — environment_filter.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — ssr.wgsl
- bevy_pbr 0.19.1 — transmission.wgsl
- bevy_solari 0.19.1 — brdf.wgsl
- bevy_solari 0.19.1 — sampling.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Simple implementation, has precision problems when using fp16 instead of fp32 see https://google.github.io/filament/Filament.md.html#listing_speculardfp16
Used by 8 shaders
Used by 8 shaders
Cook-Torrance approximation of the microfacet model integration using Fresnel law F to model f_m f_r(v,l) = { D(h,α) G(v,l,α) F(v,h,f0) } / { 4 (n⋅v) (n⋅l) }
Disney approximation See https://google.github.io/filament/Filament.md.html#citation-burley12 minimal quality difference
Used by 8 shaders
Used by 8 shaders
Used by 8 shaders
- bevy_pbr 0.19.1 — deferred_lighting.wgsl
- bevy_pbr 0.19.1 — environment_filter.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — ssr.wgsl
- bevy_pbr 0.19.1 — transmission.wgsl
- bevy_solari 0.19.1 — raytracing_scene_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Integrate one edge of the spherical polygon formed by the LTC-transformed quad. Implements Eq. 11 using a polynomial approximation based on https://advances.realtimerendering.com/s2016/s2016_ltc_rnd.pdf Using the equation as-is produces visible artifacts.
Input to a lighting function for a single layer (either the base layer or the clearcoat layer).