Constants
Functions
Samples the StandardMaterial’s base color (including the base color texture, if any) and then
invokes prepass_alpha_discard with the material’s flags and alpha cutoff.
fn
prepass_sample_color_and_alpha_discard
(
in: VertexOutput
)
Reusable alpha discard logic suitable for use by custom materials in the prepass. We can use a simplified version of alpha_discard() here since we only need to handle the alpha_cutoff