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

Fixed the shader in the endShape() example to make the boxes separated from one another #6656

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

RandomGamingDev
Copy link
Contributor

@RandomGamingDev RandomGamingDev commented Dec 25, 2023

The update to the camera locked the z at 800 which changed how the boxes are rendered in the example. This pull requests serves to divide them by changing the offset and making it so that the boxes are divided by per-pixel transformations in the shader.

Resolves #6655

Changes:

This changes the offset from *100 to *23 and makes it so that the offset is applied to the position before multiplication of the camera, and projection matrices with the position.

Screenshots of the change:

Before:
canvas
After:
canvas

PR Checklist

Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@davepagurek davepagurek merged commit 8f2b47c into processing:main Dec 27, 2023
2 checks 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.

The squares aren't shown to be separate from one another in the endShape() instancing example
2 participants