Open Danjuanlab opened 9 months ago
can you see what happens if you use either of the following: return image.Sample(textureSampler, v_in).xyzx; or base = image.Sample(textureSampler, v_in); base.a = base.r > 0.5 ? 1.0 : 0.0
It seems as if your file doesn't have absolute black everywhere. perhaps it's dithered?
I tried to use the obs shader plug-in to delete specific grayscale colors (adjust alpha=0) on a black and white masked image, but I found that the results were always unsatisfactory.
Later, I tried to use the code as shown below to test, and I found that the final result screen seemed to have a regular pixel skip sampling problem. In the black pixels, every other pixel will become transparent, but in the actual picture, there is no such color performance in the black parts.
This grayscale picture is from bmd ultimatte 12 chroma key matte out.
this is orignal frame![微信图片_20231118162616](https://github.com/exeldro/obs-shaderfilter/assets/42509669/393c4a70-0519-4dfc-b1a3-1cd7ad840d50)