Hi guys
What is the proper way (if there is one) to merge 3 monochromatic images into one RGB image?
Basically, let’s say user uploads the image, I take that image and put it in the green channel.
I am thinking to use some canvas API manipulation, but I still don’t know if that’s possible. I could use DynamicTexture for this approach maybe.
Also, I played with node material editor. And basically I need something like this.
https://nme.babylonjs.com/#Y9TZ3C
But I am not sure how to use this properly. User will upload image on run-time, and I am not sure how to provide the texture block with the uploaded texture from user.
Once the images are merged, I need to set that image as an input to metallicTexture (basically, I am compositing ORM texture within the app on run-time). And it probably will have to be saved as a png or jpg image somewhere on storage (I should be able to draw this newly created texture on canvas, from where I could use toDataURL and store it somewhere)
I would appreciate any help and ideas on this.
Thank you guys.