Creating a luminosity mask is quite simple once you understand what goes into it. In this case, we can put objects behind dark parts of your environment.
Camera Texture
The raw feed that the phone camera sees. This is how we can adjust the overall look of filters. Or in this case, use it to make a mask.
Slider UI
Adds a slider in the filter that can be input into different patch networks. In this example, we use it to control the brightness of the alpha channel.
—
Learn how to make Instagram filters by following along with the Spark AR Masterclass on YouTube! Just hop over to the playlists page ( / eddyadamsin3d ) and start with Chapter 1.
Follow for more Spark AR tips!
Website - https://www.eddyadams.com
Instagram - / eddyin3d
Twitter - / eddyin3d
YouTube - / eddyadamsin3d
Vimeo - https://vimeo.com/eddyin3d
Spark AR Resources - https://www.eddyadams.com/spark-ar