Package nexus.view.color

Examples of nexus.view.color.Greyscale


  public Chunk(int x, int z, Vector3 dilation, ChunkContainer parent) {
    this.x = x;
    this.z = z;
    this.dilation = dilation;
    this.blocks = new Block[WIDTH][WIDTH][HEIGHT];
    this.colorist = new Greyscale(16.0f, 0.0f);
    this.parent = parent;
  }
View Full Code Here


        if (Mouse.isButtonDown(0)) {
          model.chunks.setBlock(new Air(model.chunks.selected, 1.0f));
        }
       
        if (Mouse.isButtonDown(1)) {
          Block newBlock = new Solid(model.chunks.getBlock(model.chunks.selected).a.add(new Vector3(0f, 1f, 0f)), 1.0f, new Greyscale(16.0f, 0.0f));
          model.chunks.setBlock(newBlock);
        }
       
        break;
      }
View Full Code Here

TOP

Related Classes of nexus.view.color.Greyscale

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.