Package com.jme.scene.state

Examples of com.jme.scene.state.LightState.attach()


    light.setEnabled(true);

    // Attach the light to a lightState and the lightState to root.
    LightState lightState = display.getRenderer().createLightState();
    lightState.setEnabled(true);
    lightState.attach(light);
    root.setRenderState(lightState);
  }

  protected void buildNetwork() {
//     initialize the network connection based on which option the user selected
View Full Code Here


        light.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f));
        light.setLocation(new Vector3f(100, 100, 100));
        light.setEnabled(true);
        LightState lightState = (LightState) ClientContextJME.getWorldManager().getRenderManager().createRendererState(RenderState.RS_LIGHT);
        lightState.setEnabled(true);
        lightState.attach(light);
        quad.setRenderState(lightState);
    /*
    System.err.println(">>>>>>>>>>>>>> Initializing light state for component" + name);
    System.err.println("--------------------------------------------");
    GraphicsUtils.printCommonRenderStates(quad);
View Full Code Here

          /** Attach the light to a lightState and the lightState to rootNode. */
        LightState lightState = display.getRenderer().createLightState();
        lightState.setEnabled(true);
        lightState.setGlobalAmbient(new ColorRGBA(.2f, .2f, .2f, 1f));
        lightState.attach(light);
        rootNode.setRenderState(lightState);
    }
    /**
     * build the height map and terrain block.
     */
 
View Full Code Here

          /** Attach the light to a lightState and the lightState to getRootNode(). */
        LightState lightState = getRenderer().createLightState();
        lightState.setEnabled(true);
        lightState.setGlobalAmbient(new ColorRGBA(.2f, .2f, .2f, 1f));
        lightState.attach(light);
        getRootNode().setRenderState(lightState);
    }
    /**
     * build the height map and terrain block.
     */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.