Package starlight.taliis.core.chunks.adt

Examples of starlight.taliis.core.chunks.adt.MCVT


   * "default" height values.
   *
   * @param MCNKIndex
   */
  public void calcLOD(int MCNKIndex) {
    MCVT o = obj.mcnk[MCNKIndex].mcvt;
   
    for(int y=0; y<8; y++) {
      for(int x=0; x<8; x++) {
        float a, b, c, d, r;
        a = o.getValNoLOD(x, y);
        b = o.getValNoLOD(x+1, y);
        c = o.getValNoLOD(x, y+1);
        d = o.getValNoLOD(x+1, y+1);
       
        r = (a+b+c+d) / 4;
       
        o.setValLOD(x, y, r);
      }
    }
  }
View Full Code Here

TOP

Related Classes of starlight.taliis.core.chunks.adt.MCVT

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.