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 Hermite bicubic mistake #878

Closed
wants to merge 1 commit into from
Closed

Conversation

Filoppi
Copy link

@Filoppi Filoppi commented Jun 26, 2023

It seems like there's a mistake in the Hermite bicubic filtering implementation. My change is based on the reference sources, and it also seems to make more sense, I don't see how squaring the inverse texture size would make sense. I don't think this change was on purpose, as the variable was called doubleSize, not squaredSize.

Sources:
https://www.shadertoy.com/view/MllSzX
https://www.shadertoy.com/view/XdGXWt

It seems like there's a mistake in the Hermite bicubic filtering implementation.
My change is based on the reference sources, and it also seems to make more sense, I don't see how squaring the inverse texture size would make sense.
I don't think this change was on purpose, as the variable was called `doubleSize`, not `squaredSize`.

Sources:
https://www.shadertoy.com/view/MllSzX
https://www.shadertoy.com/view/XdGXWt
@Filoppi
Copy link
Author

Filoppi commented Jun 26, 2023

Replaced by #879

@Filoppi Filoppi closed this Jun 26, 2023
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.

1 participant