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

unable to enter numbers larger than 1000 into uniforms #50

Closed
givowo opened this issue Apr 30, 2024 · 6 comments
Closed

unable to enter numbers larger than 1000 into uniforms #50

givowo opened this issue Apr 30, 2024 · 6 comments

Comments

@givowo
Copy link

givowo commented Apr 30, 2024

for some reason, i cant enter in numbers >3 digits, for both float and int, into shader uniforms. using an autoclicker the biggest number is 1000, and entering a float such as 0.1000 doesnt allow you to delete the period to make it 1000

@givowo
Copy link
Author

givowo commented Apr 30, 2024

update: its numbers larger than 1000

@givowo givowo changed the title unable to enter numbers larger than 3 digits unable to enter numbers larger than 1000 into uniforms Apr 30, 2024
@exeldro
Copy link
Owner

exeldro commented May 1, 2024

For each input there can be a minimum and maximum set, so it is different per shader. Is there a specific shader you have the issue with?

@givowo
Copy link
Author

givowo commented May 1, 2024

its one i've written myself, and you can grab it here. the specific uniforms that are causing issues are resolutionWidth and resolutionHeight. I made this before learning that theres a built in variable for screen resolution but being able to modify them makes the shader more customizable. For now the I'm entering values 1000x smaller then multiplying them by 1000 whenever theyre used (like 10 times throughout the code).

@exeldro
Copy link
Owner

exeldro commented May 1, 2024

There are no annotations on the uniforms in that shader. So there are no minimum and maximum set and it will get the default minimum and maximum.

@givowo
Copy link
Author

givowo commented May 1, 2024

oh! i had no idea there was a default minimum and maximum

@givowo
Copy link
Author

givowo commented May 1, 2024

thank you for the help! I appreciate this plugin it's really cool :D

@givowo givowo closed this as completed May 1, 2024
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

No branches or pull requests

2 participants