Hi
I’m using glMaterialfv and some colours aren’t displayed correctly i.e. red is grey - how can I sort this out?
cheers
Hi
I’m using glMaterialfv and some colours aren’t displayed correctly i.e. red is grey - how can I sort this out?
cheers
Can you post the code you are using? Off the top of my head I can only think that the color array you are passing to glMaterial is not setup correctly.
ex:
glMaterialfv( GL_FRONT, GL_AMBIENT, { 1.0, 0.0, 0.0, 1.0 } );
This specifies the ambient material to be red.
Plus if you have lighting enabled and you are using GL_COLOR_MATERIAL then the material color will come from glColor calls.
KC