I have tiny triangle. It’s vertix coordinates are(0,0,0), (1E-20,0,0), (0,1E-20,0).
Scale3f(1E+20, 1E+20, 1E+20),
and draw my triangle with
so that my triangle has (0,0,0), (1,0,0), (0,1,0) eye coordinates.
Triangle is drawed ok, then the light is off, but then the light is turned on, ‘floating point overwlow’ error occurs after
My question is what are actual OpenGL restrictions on scale factor passed to glScalef function?
Is there any other solution for me, other than resizing of my triangle before passing it to OpenGL?