Nilirad / bevy_prototype_lyon

Draw 2D shapes in Bevy
Apache License 2.0
702 stars 87 forks source link

Line not rendering with line_width less than 10.0 #259

Open RyanChomistek opened 3 weeks ago

RyanChomistek commented 3 weeks ago

if the line width is less than 10.0 I'm not seeing the line render, i.e.

let shape = shapes::Line {
    0: Vec2::new(0,0),
    1: Vec2::new(1000,1000)
};

commands.spawn((
    ShapeBundle {
        path: GeometryBuilder::build_as(&shape),
        ..default()
    },
    Fill::color(DARK_CYAN),
    Stroke::new(BLACK, 5.0),
    HierarchyLink {
        from: selected_entity,
        to: parent
    }
));