exeldro / obs-shaderfilter

OBS Studio filter for applying an arbitrary shader to a source.
GNU General Public License v2.0
377 stars 39 forks source link

unable to enter numbers larger than 1000 into uniforms #50

Closed givowo closed 4 months ago

givowo commented 4 months ago

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 commented 4 months ago

update: its numbers larger than 1000

exeldro commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

givowo commented 4 months ago

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