Package javax.media.j3d

Examples of javax.media.j3d.AmbientLight


    private final Sun3D sun3D;

    public BasicLights(Sun3D sun3D) {
        lightsGroup = new BranchGroup();
        ambientLight = new AmbientLight(ColorConstants.grey);
        ambientLight.setInfluencingBounds(bounds);
        lightsGroup.addChild(ambientLight);

        this.sun3D = sun3D;
        lightsGroup.addChild(sun3D.getLight());
View Full Code Here


    }

    private BranchGroup createSceneGraph() {
        sceneBranchGroup.addChild(new TexturedFloor());
        sceneBranchGroup.addChild(mazeManager.getMaze());
        final AmbientLight light = new AmbientLight();
        light.setInfluencingBounds(bounds);
        sceneBranchGroup.addChild(light);
        sceneBranchGroup.compile();
        return sceneBranchGroup;
    }
View Full Code Here

TOP

Related Classes of javax.media.j3d.AmbientLight

Copyright © 2018 www.massapicom. 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.