Replace Color Patch
Hi creator,
You want to create a beautiful filter where u can select a color dragging the finger on the screen and replace it with another or with a texture?
The REPLACE COLOR patch is perfect for you!!!
How it works:
Click, hold and move your finger to choose which color of the texture you want to change and you can change it with another one.
You need:
- plane: use it as a color picker, u have to put it before the canvas where the rectangle will be;
- rectangle: use it for the final result of the texture.
1) Drag Device and link Device Option and Device Size to the corresponding input of the patch.
2) You can scale the plane that will be used as color picker, the default value is just setted and works properly.
3) Link cameraTexture or another texture to the patch and link the color or image you want to replace the color with.
4) Change the threshold to set how many similar gradient of the color selected have to be replaced.
5) Link the material, the position and the scale of the plane from the output of the patch.
6) The last output have to be linked to the material of the rectangle you will use for final result.
7) Remember to link to the fourth output of the patch the render pass option, under the render pass output of device, only if the patch doesn’t work properly.
Try the effect example https://www.instagram.com/ar/643770640008901/