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

Fixing GenImagePerlinNoise() being stretched, if Image is not rectangular #1

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

Bugsia
Copy link
Owner

@Bugsia Bugsia commented Aug 23, 2024

I have noticed that when the width and height of GenImagePerlinNoise() are not the same, then the noise will get stretched. So I have added a compensation for it.
Now even if the sides aren´t the same length, the noise won´t get distorted, but rather extended.

Here an image to demonstrate:
On the left is my fix being applied. The noise looks normal.
On the right the current function is being used. The noise is stretched.
fixedPerlinNoise

@Bugsia Bugsia merged commit 9c63b62 into master Aug 23, 2024
@Bugsia Bugsia deleted the Bugsia-patch-1 branch August 23, 2024 08:24
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