(Posted this on Discord moments ago, but unsure if Discord or Forum is preferred for help requests)
Hey all, I’m new here, barely started learning BabylonJS! Came from 15 years of “visual game dev” software (Clickteam’s KnP, TGF, Multimedia Fusion 2, then onto Scirra’s Construct CC C2 C3). Learned lots of JS in C3!
One thing I wanted to “interpret from C3 to BabylonJS” is “Layer Blend Modes”.
Here’s a clip from C3 to demonstrate:
In C3, you could setup some layers to place your sprites onto. You could make layers into “sublayers” and such, and mark a layer as “force own texture”, set layer blend modes such as “additive, destination out, source atop”.
Lets say you made 3 layers like “RootLayer” which has “Force own texture” enabled, and this RootLayer has 2 child layers - you could set a child layer to “source in” , another layer with a “mask image” which might be a plain white texture with faded edges, then place some sprites on the other child layer - BOOM, you can have your sprites appear when on top of the mask, but if the sprite reaches the edge, you see it fade away, and then become completely invisible when positioned off the mask. All of this, does NOT interfere with other layers above or below - e.g. this could be used for UI scrolling lists with a nice fade at the edges, whilst not cutting a gnarly hole into the window or anything.
SOOOO YEA… BABYLONJS!
What is the equivilent to what I am talking about, here?
Is it possible with both “Sprites” OR “plane meshes in the world”?
I am EAGER to learn about this. Thank you!