Separate specular color

This commit is contained in:
Bill Kuker 2012-07-02 13:38:23 +00:00 committed by U-WINDOWS-C28163E\Administrator
parent 5dd804bed0
commit 00ff011f4d

View File

@ -58,6 +58,8 @@ public class RealisticRenderStrategy extends RenderStrategy {
Appearance a = getAppearance(c);
gl.glLightModeli(GL2ES1.GL_LIGHT_MODEL_TWO_SIDE, 1);
gl.glLightModeli(GL2.GL_LIGHT_MODEL_COLOR_CONTROL,GL2.GL_SEPARATE_SPECULAR_COLOR);
convertColor(a.getDiffuse(), color);
color[3] = alpha;