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

prepare_normal

#

NOTE: This ensures that the world_normal is normalized and if vertex tangents and normal maps then normal mapping may be applied.

fn prepare_normal (
standard_material_flags: u32,
world_normal: vec3<f32>,
world_tangent: vec4<f32>,
uv: vec2<f32>,
is_front: bool
) -> vec3<f32>

calculate_view

#

NOTE: Correctly calculates the view vector depending on whether the projection is orthographic or perspective.

fn calculate_view (
world_position: vec4<f32>,
is_orthographic: bool
) -> vec3<f32>

pbr_input_new

#

pbr

#

tone_mapping

#
Contents