sFlare[i].setTextureCombineMode(TextureState.REPLACE);
  private void initChildren() {    DisplaySystem display = DisplaySystem.getDisplaySystem();    midPoint = new Vector2f(display.getWidth() >> 1, display.getHeight() >> 1);    AlphaState as1 = display.getRenderer().getAlphaState();    as1.setBlendEnabled(true);    as1.setSrcFunction(AlphaState.SB_SRC_ALPHA);    as1.setDstFunction(AlphaState.DB_ONE);    as1.setTestEnabled(true);    as1.setTestFunction(AlphaState.TF_GREATER);    as1.setEnabled(true);    TextureState ts = display.getRenderer().getTextureState();    ts.setTexture(        TextureManager.loadTexture(        LensFlare.class.getClassLoader().getResource(        "jmetest/data/texture/flare1.png"),        Texture.MM_LINEAR_LINEAR,        Texture.FM_LINEAR,        true));    ts.setEnabled(true);    TextureState ts2 = display.getRenderer().getTextureState();    ts2.setTexture(        TextureManager.loadTexture(        LensFlare.class.getClassLoader().getResource(        "jmetest/data/texture/flare2.png"),        Texture.MM_LINEAR_LINEAR,        Texture.FM_LINEAR,        true));    ts2.setEnabled(true);    TextureState ts3 = display.getRenderer().getTextureState();    ts3.setTexture(        TextureManager.loadTexture(        LensFlare.class.getClassLoader().getResource(        "jmetest/data/texture/flare3.png"),        Texture.MM_LINEAR_LINEAR,        Texture.FM_LINEAR,        true));    ts3.setEnabled(true);    TextureState ts4 = display.getRenderer().getTextureState();    ts4.setTexture(        TextureManager.loadTexture(        LensFlare.class.getClassLoader().getResource(        "jmetest/data/texture/flare4.png"),        Texture.MM_LINEAR_LINEAR,        Texture.FM_LINEAR,        true));    ts4.setEnabled(true);    LightState blankLightState = display.getRenderer().getLightState();    blankLightState.setEnabled(false);    for (int i = 0; i < RenderState.RS_MAX_STATE; i++) {      setRenderState(defaultStateList[i]);    }    setRenderState(as1);    setRenderState(ts3);    setRenderState(blankLightState);    mainFlare = new Quad("quad", midPoint.x * .75f, midPoint.x * .75f);    mainFlare.setRenderState(ts);    mainFlare.setSolidColor(new ColorRGBA(.95f, .95f, .95f, 1f));    mainFlare.setLightCombineMode(LightState.REPLACE);    this.attachChild(mainFlare);    sFlare = new Quad[15];    sFlare[0] = new Quad("sf0", midPoint.x * 1.25f, midPoint.x * 1.25f);    sFlare[0].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f, 1f));    sFlare[0].setRenderState(ts4);    sFlare[1] = new Quad("sf1", midPoint.x * .75f, midPoint.x * .75f);    sFlare[1].setSolidColor(new ColorRGBA(.8f, .8f, .8f, 1f));    sFlare[1].setRenderState(ts2);    sFlare[2] = new Quad("sf2", midPoint.x * .15f, midPoint.x * .15f);    sFlare[2].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f, 1f));    sFlare[3] = new Quad("sf3", midPoint.x * .08f, midPoint.x * .08f);    sFlare[3].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 50f / 255f,                                          1f));    sFlare[4] = new Quad("sf4", midPoint.x * .40f, midPoint.x * .40f);    sFlare[4].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 50f / 255f,                                          1f));    sFlare[5] = new Quad("sf5", midPoint.x * .1f, midPoint.x * .1f);    sFlare[5].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 50f / 255f,                                          1f));    sFlare[6] = new Quad("sf6", midPoint.x * .25f, midPoint.x * .25f);    sFlare[6].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 50f / 255f,                                          1f));    sFlare[7] = new Quad("sf7", midPoint.x * .01f, midPoint.x * .01f);    sFlare[7].setSolidColor(new ColorRGBA(.8f, .8f, .8f, 1f));    sFlare[8] = new Quad("sf8", midPoint.x * .02f, midPoint.x * .02f);    sFlare[8].setSolidColor(new ColorRGBA(.8f, .8f, .8f, 1f));    sFlare[9] = new Quad("sf9", midPoint.x * .1f, midPoint.x * .1f);    sFlare[9].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f, 1f));    sFlare[10] = new Quad("sf10", midPoint.x * .06f, midPoint.x * .06f);    sFlare[10].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f,                                           1f));    sFlare[11] = new Quad("sf11", midPoint.x * .375f, midPoint.x * .375f);    sFlare[11].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f,                                           1f));    sFlare[12] = new Quad("sf12", midPoint.x * .1f, midPoint.x * .1f);    sFlare[12].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f,                                           1f));    sFlare[13] = new Quad("sf13", midPoint.x * .25f, midPoint.x * .25f);    sFlare[13].setSolidColor(new ColorRGBA(30f / 255f, 30f / 255f, 0f / 255f,                                           1f));    sFlare[14] = new Quad("sf14", midPoint.x * .75f, midPoint.x * .75f);    sFlare[14].setSolidColor(new ColorRGBA(.8f, .8f, .8f, 1f));    sFlare[14].setRenderState(ts2);    for (int i = 0; i < sFlare.length; i++) {      this.attachChild(sFlare[i]);      sFlare[i].setLightCombineMode(LightState.REPLACE);    }  }