-the method is working fine, with the position of 4 vertices (a square), it calculates and draws 4 points in the sphere.
-but now, when i try to get the color value of the square vertices, their values are always 255,255,255
Code: Select all
irr::scene::IMeshBuffer* mb=mesh->getMeshBuffer(i);
video::S3DVertex* vertices = (video::S3DVertex*)mb->getVertices();
for(int f=0; f<5; f++)
{
int red = vertices[f].Color.getRed();
int green = vertices[f].Color.getGreen();
int blue = vertices[f].Color.getBlue();
red, green, blue = 255,255,255
}