Package com.xith3d.scenegraph

Examples of com.xith3d.scenegraph.DirectionalLight


      transform.mul(drotY);
      Matrix4f tmp = new Matrix4f(rot);
      tmp.invert();
      transform.mul(tmp);

      DirectionalLight light = scene.getLights()[mode];
      Vector3f direction = light.getDirection();
      transform.transform(direction);
      light.setDirection(direction);
      scene.showLightVector(direction.x,direction.y,direction.z);
     
      // update pos, don't move view
          pos2DX = newX;
          pos2DY = newY;
View Full Code Here


       
        lights = new DirectionalLight[1];

        for (int i=0; i<lights.length; ++i) {
          // TODO : position lights around the object
            lights[i] = new DirectionalLight(true,new Color3f(1.0f,1.0f,1.0f),new Vector3f(-1,-1,-1));
          rootGroup.addChild(lights[i]);
        }
       
        rootGroup.addChild(branchgroup);
        locale.addBranchGraph(rootGroup);
View Full Code Here

TOP

Related Classes of com.xith3d.scenegraph.DirectionalLight

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.