Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Functions

ambient_light

#
Used by 1 shader in bevy_pbr 0.19.1

A precomputed NdotV is provided because it is computed regardless, but world_normal and the view vector V are provided separately for more advanced uses.

fn ambient_light (
world_position: vec4<f32>,
world_normal: vec3<f32>,
V: vec3<f32>,
NdotV: f32,
diffuse_color: vec3<f32>,
specular_color: vec3<f32>,
perceptual_roughness: f32,
occlusion: vec3<f32>
) -> vec3<f32>
Contents