在贴图前只要调用glColor*就可以为此贴图选择一种颜色.
但此时有光照时就有问题,必须用glColorMaterial设置颜色材质
要先调用
glColorMaterial
再调用glEnable(GL_COLOR_MATERIAL)