void setMaterial(const GLfloat mat_diffuse[4],GLfloat mat_shininess) { static const GLfloat mat_specular[]={0.0f,0.0f,0.0f,1.0f}; static const GLfloat mat_emission[]={0.0f,0.0f,0.0f,1.0f}; glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,mat_diffuse); glMaterialfv(GL_FRONT,GL_SPECULAR,...
gl.getGL2().glMaterialfv(getGLMaterialFace(MaterialFace.Back), glMat, record.tempColorBuff); record.setColor(MaterialFace.Back, glMatColor, backColor); 代码示例来源:origin: openimaj/openimaj gl.glMaterialfv( GL.GL_FRONT, GLLightingFunc.GL_AMBIENT, rgba, 0); gl.glMaterialfv( GL.GL_FRONT, GL...