Project

General

Profile

« Previous | Next » 

Revision d45273cd

Added by Leszek Koltunski over 1 year ago

Multigon testing app

View differences:

src/main/java/org/distorted/library/mesh/MeshMultigon.java
263 263
      meshes[i] = new MeshPolygon(vertices[i],band,edgesUp[i],vertsUp[i],exIndex,exVertices,centers[i][0],centers[i][1]);
264 264

  
265 265
    join(meshes);
266
    mergeEffComponents();
267
    mergeTexComponents();
266 268
    }
267 269

  
268 270
///////////////////////////////////////////////////////////////////////////////////////////////////
......
295 297
      }
296 298

  
297 299
    join(meshes);
300
    mergeEffComponents();
301
    mergeTexComponents();
298 302
    }
299 303

  
300 304
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/mesh/MeshPolygon.java
252 252
      {
253 253
      float d,x = 1-mPolygonBands[2*polyBand];
254 254

  
255
      if( /*quot==0.0f || quot==1.0f ||*/ edgeShape==SHAPE_DD )
255
      if( quot==0.0f || quot==1.0f || edgeShape==SHAPE_DD )
256 256
        {
257 257
        float t = mPolygonBands[2*mNumPolygonBands-1];
258 258
        d = ((t-zEdge)/t)*derivative(x);

Also available in: Unified diff