Negative parameters to glScalef

Can someone tell me if passing negative parameters to glScalef is supposed to work?

Thank you.

Yes.

But note that if you have an odd number of negative scale factors (i.e. 1 or 3), the resulting transformation matrix will have a negative determinant, which will turn the model inside-out. Faces which would normally be counter-clockwise will become clockwise and vice versa, which will swap whether a face is considered a front face or back face. This matters if you’ve enabled culling, or are using fixed-function lighting with different materials for front and back faces.

1 Like

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.