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.

prepass.wgsl

Functions

morph_vertex

#

Shader defs requirments:

🟢 MORPH_TARGETS

fn morph_vertex (
vertex_in: Vertex
) -> Vertex

morph_prev_vertex

#

Shader defs requirments:

🟢 MORPH_TARGETS

This function is used for motion vector calculation, and, as such, it doesn’t bother morphing the normals and tangents.

fn morph_prev_vertex (
vertex_in: Vertex
) -> Vertex

vertex

#
@vertex
Processes each 3D point in a model before it's drawn
fn vertex (
vertex_no_morph: Vertex
) -> VertexOutput

fragment

#
@fragment
Calculates the final color of each pixel on the screen

Shader defs requirments:

🟢 PREPASS_FRAGMENT

fn fragment ( ) -> FragmentOutput