void OpenGL::playBoxWithTextureAndLight() { GLfloat MatAmbient[]= { 0.8f, 0.8f, 0.8f, 1.0f };//定义地面的材质 GLfloat MatDiffuse[]= { 0.5f, 0.5f, 0.5f, 1.0f }; GLfloat MatSpecular[]= { 1.0f, 1.0f, 1.0f, 1.0f }; GLfloat MatEmission[]= { 0.3f, 0.8f, 0.5f, 1.0f };//辐射光颜色 glMaterialfv(GL_BACK, GL_AMBIENT,