The issue is pretty clearly that you are not sampling inputs quickly enough for your given painting strategy. This may be because the time between samples is unusually slow (perhaps because your raycasts are taking too much time) or because the speed of the mouse simply exceeds any reasonable sampling rate. This is a fundamental flaw in your painting strategy, which is to paint one vertex for each input sample.
A more robust approach would involve some sort of interpolation. Here are two approaches that come to mind:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.