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

Basti shader-rings #127

Merged
merged 9 commits into from
Dec 10, 2024
Merged

Basti shader-rings #127

merged 9 commits into from
Dec 10, 2024

Conversation

strseb
Copy link
Collaborator

@strseb strseb commented Dec 2, 2024

  • We have a ring shader!!
Screen.Recording.2024-12-02.at.17.58.19.mov

Copy link
Member

@lesleyjanenorton lesleyjanenorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!! I have only one nit: can we center the rings on the globe/network icon? It looks like they're just slightly too low.
Screenshot 2024-12-03 at 3 28 05 PM

@strseb
Copy link
Collaborator Author

strseb commented Dec 4, 2024

Nice!!! I have only one nit: can we center the rings on the globe/network icon? It looks like they're just slightly too low. Screenshot 2024-12-03 at 3 28 05 PM

I have tried to tweak it a bit, i it should now find the right coords more accurate. TBF we might not get it 100% right, as we are trying to from pixelspace -> realtive float -> pixelspace again 😅

// Now we can calc the center of the box in pixelspace
const center = {
x: normOther.x + normOther.width / 2.0,
y: normOther.y + normOther.height + 17,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the 17 come from here? I just tried bumping this to normOther.height + 20 and it looks a bit more centered.

Screen.Recording.2024-12-05.at.12.46.26.PM.mov

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a magic number q_q

Copy link
Member

@lesleyjanenorton lesleyjanenorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⊚✨

R+ with comment

@strseb strseb merged commit ec38102 into main Dec 10, 2024
@strseb strseb deleted the basti/shaderthings branch December 10, 2024 14:35
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