Project

General

Profile

« Previous | Next » 

Revision ffbf279e

Added by Leszek Koltunski almost 8 years ago

revert latest changes to the fragment shader.
small things in DistortedObjects.

View differences:

src/main/java/org/distorted/library/DistortedCubes.java
67 67
 *
68 68
 *              X
69 69
 *             </p>
70
 * @param gridSize size, in pixels, of the single 1x1x1 cube our cuboid is built from
70
 * @param cubeSize size, in pixels, of the single 1x1x1 cube our cuboid is built from
71 71
 * @param frontOnly Only create the front wall or side and back as well?
72 72
 */
73
 public DistortedCubes(int cols, String desc, int gridSize, boolean frontOnly)
73
 public DistortedCubes(int cols, String desc, int cubeSize, boolean frontOnly)
74 74
   {
75 75
   int Rs = 0;
76 76
   int Cs = 0;
......
93 93
       }
94 94
     }
95 95
     
96
   mSizeX= gridSize*Cs;
97
   mSizeY= gridSize*Rs;
98
   mSizeZ= frontOnly ? 0 : gridSize;
96
   mSizeX= cubeSize*Cs;
97
   mSizeY= cubeSize*Rs;
98
   mSizeZ= frontOnly ? 1 : cubeSize;
99 99
   mGrid = new DistortedCubesGrid(cols,desc, frontOnly);
100
   initializeData(gridSize);
100
   initializeData();
101 101
   }
102 102

  
103 103
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff