Examples of AmbientLight


Examples of javax.media.j3d.AmbientLight

        if (state == null) {
            throw new IllegalArgumentException("Null environment3D state");
        }
        this.state = state;
        this.environment = environment;
        ambientLight = new AmbientLight(ColorConstants.grey);
        ambientLight.setInfluencingBounds(bounds);
        group = new BranchGroup();
        group.addChild(ambientLight);
        group.addChild(getSun3D().getLight());
    }
View Full Code Here

Examples of javax.media.j3d.AmbientLight

   
    private void lightScene() {
      Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
     
      // Set up the ambient light
        AmbientLight ambientLightNode = new AmbientLight(white);
        ambientLightNode.setInfluencingBounds(bounds);
        scene.addChild(ambientLightNode);
       
        // Set up the directional lights
        Vector3f light1Direction  = new Vector3f(60,30,15);
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.