bevy_polyline
bevy_polyline copied to clipboard
Line is blinking if perspective set to false
While above gif seems line randomly blinks because of low frame, actually it blinks periodically and short term.
Below is the spawn of line with set off perspective since default value of perspective is false.
PolylineBundle {
transform: Transform::from_xyz(0., 3., -10.),
polyline: polylines.add(Polyline {
vertices: vec![Vec3::new(2., 2., 0.), Vec3::new(-2., -2., 0.)],
..default()
}),
material: polyline_materials.add(PolylineMaterial {
color: Color::WHITE,
..default()
}),
..default()
}