-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drawing points without images #249
Comments
@ansis could you take a look at the shader code? I'm running into an issue where u_size (radius) is halved on retina. |
multiply the radius by |
Currently the default blur is a fraction of the radius. This means the blurriness of the edge grows as the circle gets bigger. Can you try changing it so that the default is 1-2 pixels no matter what the radius is? This line can be simplified
|
It looks great! two tiny details: You can do And if you switch the first and second parameters for smoothstep you should be able to change |
Implement a shader for drawing points without images. We already have one called debug_point we use in js/render/drawvertices.js for debugging purposes. We should generalize that one, and use it for both points and debuggging vertices.
The text was updated successfully, but these errors were encountered: