Ogre Renderer missing setShadingType()
Posted: Fri Jan 21, 2005 01:00
OgreRenderer::initRenderStates() is missing:
Without it the shadingType will be what ever material was used just before CEGUI renders. I found this out when using some materials that used SO_FLAT. I wasn't getting the proper vertex colour shading with my GUI widgets when particular meshes were rendered with a material that used SO_FLAT.
Code: Select all
d_render_sys->setShadingType(SO_GOURAUD);
Without it the shadingType will be what ever material was used just before CEGUI renders. I found this out when using some materials that used SO_FLAT. I wasn't getting the proper vertex colour shading with my GUI widgets when particular meshes were rendered with a material that used SO_FLAT.