Hey @Dad72
The main problem is the mix material is using 8 diffuses textures today, and 2 mix textures. Most of the devices limits samplers count to 16 so here we’ll not have enough slots.
The solution would be to have another material like MixWithBumpMaterial for example but should be limited to 4 diffuse textures + 4 bump textures + 1 mix map.
@sebavan do you confirm that most of the devices limit samplers count to 16 ?
My bad!
But testing right now, Electron on a macbook M1 Max I can see maxTexturesImageUnits: 16
Same in Google Chrome on this macbook maxTexturesImageUnits: 16
I didn’t know about the max number of textures.
I understand better why this has not been done.
You propose mixWithBumpMaterial, but why not improve the terrainMaterial? He almost does. It only has 3 diffuse and bump textures, why not add the 4th diffuse and bump texture to it? It might be easier to improve this one, what do you think?