I’m trying to create this via multimaterials but in this tutorial (Multi-Materials | Babylon.js Documentation) there is submeshes created by vertices number and i don’t think it’s suitable for me. As i understand i need something like alpha blend with multiple materials, like there is main material + 0-6 materials added above it for each hex side. Question is how to create such multimaterial or maybe i missing something and there is better way?
At the moment i’m thinking to create multiple hexes on the same coordinates each with his own texture. Main hex will have main hex texture and all other hexes above it will have parts with opacity texture. So visually it will be one hex with beautiful transitions between different hexes.
Not sure how mix mat can be applied here.
Each hex have his own layout. Somewhere it need transition because near hex is different type somewhere it doesn’t. And it’s to high number of possble cases
So each hex should have his own unique RGBA mix texture which is not possible because number is high.
In short we don’t know what is a correct RGBA mix texture for each hex.
I’m not sure if you have resolved this already, but you could generate the mix textures on the fly to avoid having to calculate each one. You’d just have to mark which hexes are “transition” ones and which materials they are mixing. I put together a quick example here: Fun With Hex Tiles | Babylon.js Playground (babylonjs.com)