PDA

View Full Version : Two-sided coloring in OpenInventor


cudennec
10-15-2009, 12:48 PM
Is it possible to specify different front and back materials/colors for SoShape with the standard Oiv API?

Thanks

Yann Cudennec

mikeheck
10-15-2009, 05:28 PM
Is it possible to specify different front and back materials/colors for SoShape with the standard Oiv API?

Hi Yann,

No, that's one of the things "simplified" in OIV compared to direct OpenGL. One option is to work around this by setting gl_FrontColor and gl_BackColor in a vertex shader.

-Mike