Shape surfaces painting

Apply a different material to each surface of a spatial is possible? I’ve been looking for that and I haven’t found anything. Maybe with material definitions?



I know that you can do it with mesh painting but I’m thinking in something dynamic.

Different materials, or different textures?

Each mesh can have only one material, but you can “splat” different textures onto the same material/mesh; look at TerrainLighting.j3md, or for a simpler material to learn from look at Terrain.j3md. They both do texture splatting.

Ouch! I remember this doc now, sorry.



I’m thinking if exist a way to get information about a surface of a shape as the texture applied or against a CollisionResults to know what face are you touching.



I’m trying to implement a step sound system based on the texture. Maybe for collisions too.