MinieExamples/src/main/java/jme3utilities/minie/test/SeJointDemo.java
/**
     * Add lighting to the scene.
     */
Add lighting to the scene.
Add lighting to the scene .
private void addLighting() {
        ColorRGBA ambientColor = new ColorRGBA(2f, 2f, 2f, 1f);
        AmbientLight ambient = new AmbientLight(ambientColor);
        rootNode.addLight(ambient);
        ambient.setName("ambient");
        Vector3f direction = new Vector3f(1f, -2f, -1f).normalizeLocal();
        DirectionalLight sun = new DirectionalLight(direction);
        rootNode.addLight(sun);
        sun.setName("sun");
    }
private void addLighting ( ) { ColorRGBA ambientColor = new ColorRGBA ( 2f , 2f , 2f , 1f ) ; AmbientLight ambient = new AmbientLight ( ambientColor ) ; rootNode . addLight ( ambient ) ; ambient . setName ( "ambient" ) ; Vector3f direction = new Vector3f ( 1f , - 2f , - 1f ) . normalizeLocal ( ) ; DirectionalLight sun = new DirectionalLight ( direction ) ; rootNode . addLight ( sun ) ; sun . setName ( "sun" ) ; }
Add lighting to the scene.
Add lighting to the scene .