How can you vertex paint a TerrainQuad?(or any spatial for that matter)
I have a use case where i cannot load a particular texture for my terrain, and it would be plain unhelpful. I have a map of colors for all the vertices of the terrain. How would I go about applying them?
If I need the seperate meshes, I can get them using this:
public static List<Geometry> getMeshes(Node node) {
List<Mesh> meshes = new ArrayList();
for (Spatial s : node.getChildren()) {
if (s instanceof Node) {
meshes.addAll(getMeshes((Node) s));
} else if (s instanceof Geometry) {
meshess.add(((Geometry) s).getMesh());
}
}
return meshes;
}