Hi. According to the documentation we can set or add color to the objectdynanmicmesh class. But when I try to set or add color to them I get an error.
Here is my code for setting:
mesh.setVertex(i++,vec3(x/5.0f,y/5.0f,z));
mesh.setColor (i,vec4(1.0f,1.0f,1.0f,0.0f));
and adding:
mesh.addVertex(vec3(x/5.0f,y/5.0f,1));
mesh.addColor(vec4(1.0f,1.0f,1.0f,0.0f));
For both of them error says: "unknown objectmeshdynamic class member".
Thanks.