Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

helpers.wgsl

Import path

Functions

cov2d

#
fn cov2d (
position: vec3<f32>
) -> vec3<f32>

get_bounding_box_clip

#
fn get_bounding_box_clip (
direction: vec2<f32>
cutoff: f32
) -> vec4<f32>

intrinsic_matrix

#
fn intrinsic_matrix ()

get_rotation_matrix

#
fn get_rotation_matrix (
rotation: vec4<f32>
) -> mat3x3<f32>

get_scale_matrix

#
fn get_scale_matrix ( ) -> mat3x3<f32>