I need to create a 2 side plane with a texture that is loaded from two separate jpeg files.
How can I combine these two?
Usually I would lode a single texture with
var mat = new BABYLON.StandardMaterial("", scene);
mat.diffuseTexture = new BABYLON.Texture("gargleblaster.jpg", scene);
Can this be done within the StandartMaterial class?
ah. ok.
I was basically following this pg: https://www.babylonjs-playground.com/#LXZPJK#3
Which would be basically what i’d want to achieve.
Only with two different jpgs for the front and back
Sure ;). Ok, Sorry wasnt clear:
the images will come from a cms and they will be in two different files,
so the merging would have to happen client side.
If BJS cannot handle that I just use some other JS and then pass the result ro BJS
I haven’t been diving deeper into the canvas element. only into frameworks like BJS, phaser et. al. so far.
How does BJS handle the image data? Does something like a rendertexture exist?