case Spatial.NM_USE_PROVIDED:
case SceneElement.NM_USE_PROVIDED:
    private void applyNormalMode(int normMode, GeomBatch t) {        switch (normMode) {            case Spatial.NM_GL_NORMALIZE_IF_SCALED:                Vector3f scale = t.getWorldScale();                if (!scale.equals(Vector3f.UNIT_XYZ)) {                    if (scale.x == scale.y && scale.y == scale.z && capabilities.OpenGL12 && prevNormMode != GL12.GL_RESCALE_NORMAL) {                        if (prevNormMode == GL11.GL_NORMALIZE)                            GL11.glDisable(GL11.GL_NORMALIZE);                        GL11.glEnable(GL12.GL_RESCALE_NORMAL);                        prevNormMode = GL12.GL_RESCALE_NORMAL;                    } else if (prevNormMode != GL11.GL_NORMALIZE) {                        if (prevNormMode == GL12.GL_RESCALE_NORMAL)                            GL11.glDisable(GL12.GL_RESCALE_NORMAL);                        GL11.glEnable(GL11.GL_NORMALIZE);                        prevNormMode = GL11.GL_NORMALIZE;                    }                } else {                    if (prevNormMode == GL12.GL_RESCALE_NORMAL) {                        GL11.glDisable(GL12.GL_RESCALE_NORMAL);                        prevNormMode = GL11.GL_ZERO;                    } else if (prevNormMode == GL11.GL_NORMALIZE) {                        GL11.glDisable(GL11.GL_NORMALIZE);                        prevNormMode = GL11.GL_ZERO;                    }                                        }                break;            case Spatial.NM_GL_NORMALIZE_PROVIDED:                if (prevNormMode != GL11.GL_NORMALIZE) {                    if (prevNormMode == GL12.GL_RESCALE_NORMAL)                        GL11.glDisable(GL12.GL_RESCALE_NORMAL);                    GL11.glEnable(GL11.GL_NORMALIZE);                    prevNormMode = GL11.GL_NORMALIZE;                }                break;            case Spatial.NM_USE_PROVIDED:            default:                if (prevNormMode == GL12.GL_RESCALE_NORMAL) {                    GL11.glDisable(GL12.GL_RESCALE_NORMAL);                    prevNormMode = GL11.GL_ZERO;                } else if (prevNormMode == GL11.GL_NORMALIZE) {                    GL11.glDisable(GL11.GL_NORMALIZE);                    prevNormMode = GL11.GL_ZERO;                }                break;        }    }