-
Notifications
You must be signed in to change notification settings - Fork 124
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
RGBA Image as background #54
Comments
I think in the fragment shader, changing this line to something like this should be a good starting point: outColor = vec4(frameColor, personMask); Then there is something to take into consideration to have it working, it's that the alpha channel might not be processed by WebRTC. So you'll probably need to hack around something similar to this: https://webrtchacks.com/how-to-make-virtual-backgrounds-transparent-in-webrtc/ |
@Volcomix
This way RGBA pngs as background images will be correclty displayed on top of the backround while allowing the original background to be visible wherever the image is transparent. |
Hi Kevin , I am also trying to achieve transparent background . Are you able to do that @kevinpl07 |
yes, see the code change given above |
I have made the above code change , Anything else required. |
I want to experiment with rgba images as a background image. That way the rgba image would be over the camera except for the cutout person mask. I can't seem to get the fragment shader to work with rgba.
Any ideas?
The text was updated successfully, but these errors were encountered: