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.