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.

mesh_functions.wgsl

Import path

Functions

mesh_position_local_to_world

#
fn mesh_position_local_to_world (
vertex_position: vec4<f32>
) -> vec4<f32>

mesh_position_world_to_clip

#
fn mesh_position_world_to_clip (
world_position: vec4<f32>
) -> vec4<f32>

mesh_position_local_to_clip

#

NOTE: The intermediate world_position assignment is important for precision purposes when using the ‘equals’ depth comparison function.

fn mesh_position_local_to_clip (
vertex_position: vec4<f32>
) -> vec4<f32>

mesh_normal_local_to_world

#
fn mesh_normal_local_to_world (
vertex_normal: vec3<f32>
) -> vec3<f32>

mesh_tangent_local_to_world

#
fn mesh_tangent_local_to_world (
vertex_tangent: vec4<f32>
) -> vec4<f32>