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

affine2_to_square

#
Used by 1 shader in bevy_pbr 0.15.3
fn affine2_to_square (
affine: mat3x2<f32>
) -> mat3x3<f32>

affine3_to_square

#

mat2x4_f32_to_mat3x3_unpack

#

affine3_to_mat3x3

#
Used by 1 shader in bevy_pbr 0.15.3

Extracts the square portion of an affine matrix: i.e. discards the translation.

fn affine3_to_mat3x3 (
affine: mat4x3<f32>
) -> mat3x3<f32>

inverse_mat3x3

#
Used by 1 shader in bevy_pbr 0.15.3

Returns the inverse of a 3x3 matrix.

fn inverse_mat3x3 (
matrix: mat3x3<f32>
) -> mat3x3<f32>

inverse_affine3

#
Used by 1 shader in bevy_pbr 0.15.3

mat4x4_to_mat3x3

#
Used by 1 shader in bevy_pbr 0.15.3

Extracts the upper 3x3 portion of a 4x4 matrix.

fn mat4x4_to_mat3x3 ( ) -> mat3x3<f32>

orthonormalize

#
fn orthonormalize (
z_unnormalized: vec3<f32>,
up: vec3<f32>
) -> mat3x3<f32>

sphere_intersects_plane_half_space

#
Used by 1 shader in bevy_pbr 0.15.3

This is used for frustum culling.

fn sphere_intersects_plane_half_space (
plane: vec4<f32>,
sphere_center: vec4<f32>,
sphere_radius: f32
) -> bool

powsafe

#
Contents