Skip to main content

create_world_sprite_outline_pipeline

Function create_world_sprite_outline_pipeline 

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

Pipeline for the world-sprite selection outline: a flat, enlarged, solid-color quad drawn behind the real sprite (see DrawPass::draw_world_sprite_outline). Unlike the model outline’s “expand along normal” shell trick — which doesn’t help a flat quad, since every vertex shares the same normal — the enlargement happens entirely on the CPU by widening the quad’s local extents, so this pipeline only needs plain world-space positions. Reuses model_outline_fs.wgsl’s fixed solid-blue output.