Skip to main content

create_model_outline_pipeline

Function create_model_outline_pipeline 

Source
pub fn create_model_outline_pipeline(
    device: &Device,
    format: TextureFormat,
    camera_layout: &BindGroupLayout,
    model_transform_layout: &BindGroupLayout,
) -> RenderPipeline
Expand description

Pipeline for the selection-outline pass: expands each vertex outward along its normal (see model_outline_vs.wgsl) and rasterizes only the expanded shell’s back faces (cull_mode: Front), which are hidden behind the real mesh everywhere except right at the silhouette rim. No texture binding is needed, so group 0 is skipped, matching how the immediate/shape pipelines skip unused groups.