Open Maksims opened 4 years ago
While working with lines, I noticed they are not culled. Could be added as a features too.
When rendering to world layer, with depthTest: true
, still no culling currently?
My bad, it does. Thanks for pointing, @Maksims :) You can ignore my comment.
interesting article on thick line rendering https://wwwtyro.net/2021/10/01/instanced-lines-part-2.html
Very cool. Even if it wasn't core engine functionality, it would be awesome to implement that paper as some kind of extension/plugin/script.
and this one was really nice too .. builds on the link I mentioned, but does some kind of coverage based AA https://www.khronos.org/assets/uploads/developers/presentations/Crazy_Panda_How_to_draw_lines_in_WebGL.pdf
It would be great, to have engine solution for thick lines.
renderLine
- provides gpu based lines, which guarantees only 1 pixel wide lines, but multi-pixel lines, are up to platform. And uses immediate renderer, so mainly used for debugging purposes.Thick lines - are common thing to use, and useful in various ways, not just for debugging, but in games and apps as well. So list of features would be:
lineCap
on canvas2d.