obs-lua
obs-lua copied to clipboard
Adding Rounded Rectangle to obs-shaderfilter
Excellent work!
I added a couple variables and a reference to your code in the comments. I hope you approve of adding it to the examples of obs-shaderfilter!
I see you put it here: https://github.com/Oncorporation/obs-shaderfilter/blob/master/data/examples/rounded_rect2.shader Yeah, go ahead and use it as an example. It is not perfect yet it will look strange on parts or gaps smaller than the radius and on not rectangular parts. Because I tried to optimize it for a specific use case.
I have a question about the fish-eye shader: is it possible to add a barrel distortion which only works in x or y direction of the image? I have looked at the formulas in the fish-eye shader, but that's over my head. I have a webcam which has a fish-eye distortion which can be corrected by a negative power in the fish-eye shader. But still the image looks a bit like this: )==(. I only need some correction in the x direction, but not y, since the lines are straight vertically. Can you give me a formula for this perhaps?