I wonder if is there any option to iterate all node materials?
I have something like this.
Code: Select all
node->getMaterial(0).Shininess = 0.0f;
I am looking for something like this
Code: Select all
for(int i=0; i<node->number_of_materials(); i++){
node->getMaterial(i).Shinness = 0.0f;
}
The problem is that all my world looks like metal and when i turn on the lights it looks horrible.
Thanks from the mountain!