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

Fix the zooming in the Julia set shader example. #3466

Closed
wants to merge 3 commits into from
Closed

Fix the zooming in the Julia set shader example. #3466

wants to merge 3 commits into from

Conversation

joshcol9232
Copy link
Contributor

@joshcol9232 joshcol9232 commented Oct 25, 2023

Hello! Ever since I added the Julia set shader example (5 years ago!) it had always bugged me that the zoom function was never correct. This PR fixes this, and is also a general tidy-up.

In summary:

  • Fix zoom issue.
  • Add a COLOR_CYCLES variable to the shader to allow for cycling of the color palette. This allows for finer details of the fractal to be shown when using a high max iteration number.
  • Fix some pretty terrible if statement mess.
  • Update copyright.

Issue

Fixes: #3465

Testing

I have tested the code on my Linux machine. I have not tested on glsl100 platforms, or Windows.

@joshcol9232
Copy link
Contributor Author

I was convinced I had fixed it, but further testing says no! I'll be back with a new PR. I think I understand the issue better after this attempt.

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.

[example] The zoom in the Julia set example is not correct
1 participant