You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the huge amount of data, I switched from SVG to WebGL. But I need to render Points of different shapes in the same Canvas, how does Regl do it, thanks!
The text was updated successfully, but these errors were encountered:
Hi, @Knell0714! There's not a single answer to your question, and regl (or more generally, webgl) doesn't enforce any choices here. Point primitives work fine up to the maximum permitted size, but beyond that you might need to use two triangles to make a quad (instanced rendering might help here). Points are probably a perfect adequate place to start though. Then for each point, you could either apply a texture directly, or you could use the strategy used in regl-scatter2d and compute an SDF from an SVG or bitmap, see: svg-path-sdf, bitmap-sdf. Then you can just adjust the colors using the SDF value to get the look you want.
Because of the huge amount of data, I switched from SVG to WebGL. But I need to render Points of different shapes in the same Canvas, how does Regl do it, thanks!
The text was updated successfully, but these errors were encountered: