Package engine.model

Examples of engine.model.Material


   * @return the Material or null if the file doesnt exist
   */
  public static Material loadMaterial(String name){
    if(name == null || name.isEmpty()) return materials.get("null");
    if(materials.containsKey(name) == false){
      materials.put(name, new Material().create(name));
    }
    return materials.get(name);
  }
View Full Code Here


   
    appSpeed = 1.0f;
    previousTime = 0;
    currentTime = 17;
   
    materials.put("null",new Material().create(null));
  }
View Full Code Here

    this.light = new Light(0);
    light.move(0f, 3f, 0f);
    loadModel("chamfer_box.obj").setDefaultMaterial(loadMaterial("box_normal.mat"));
    loadModel("plane.obj").setDefaultMaterial(loadMaterial("plane.mat"));
 
    Material cubebox = loadMaterial("box_cubemap.mat");
    box = new Entity();
    box.setModel(loadModel("chamfer_box.obj"));
    box.setMaterial(cubebox);
    box.setPos(0,3,0);
    box.setScale(3f);
View Full Code Here

   
    Set materialkeyset = this.materialgroups.keySet();
    Iterator itr = materialkeyset.iterator();
   
    while(itr.hasNext()){
      Material mat = (Material)itr.next();
     
      if(this.chunks.get(mat).getBuildStatus() == true){
        this.processedEntities.put(mat, 0);
       
        int chunkBufferSize = 0;
View Full Code Here

TOP

Related Classes of engine.model.Material

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.