Skip to content
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

Screen('DrawDots'): Only apply a margin to non-square dot types. #273

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

aforren1
Copy link
Contributor

Only round dots get trimmed in the fragment shader, and so dot_type=4 was left with too much padding from the vertex shader.

Tested on Ubuntu 20.04 + AMD Pro W5500 + Octave with this script: https://gist.github.com/aforren1/31028d18da246db26bae207a009d23b0. The first row of dots is dot_type=0, the second row is dot_type=4, and the third is dot_type=3.

The first image is the old behavior with 10px dots, and the second is the new.

old_10px
new_10px

Only round dots get trimmed in the fragment shader, and so dot_type=4
was left with too much padding from the vertex shader.
@kleinerm
Copy link
Owner

Oh, stupido! Yes, that looks right, good catch, thanks!

@kleinerm kleinerm merged commit 631bb29 into kleinerm:master Jun 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants