-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add a shape aesthetic for changing the shape of points #86
Comments
Some more notes on the shader changes that would be required for a shape aesthetic:
In the fragment shader, you would add a test to determine whether a pixel should be kept or discarded, based on the value of vShape and gl_PointCoord. https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/gl_PointCoord.xhtml E.g. for a square, you would not discard any pixels. For the circles, we currently use:
For a diamond, maybe something like the following (which I haven't tested):
Here's a link to my current branch with the simplified shaders:detourr/shaders.ts at vignette-interactivity · casperhart/detourr (github.com) |
Thanks for all of this, Casper! I worked through the shader tutorial yesterday, and I'll get started on my actual implementation tomorrow. I'll let you know if any issues arise! |
No description provided.
The text was updated successfully, but these errors were encountered: