Project

General

Profile

« Previous | Next » 

Revision 32f4e2a7

Added by Leszek Koltunski about 3 years ago

Master Kilominx: mesh.

View differences:

src/main/java/org/distorted/objects/FactoryCubit.java
686 686
    float[] vertices0 = { -X1, Y2, 0, -Y1, X1, Y2, 0, Y1 };
687 687
    float[] bands0 = computeBands(0.04f,17,0.3f,0.2f,5);
688 688
    float[] vertices1 = { -X2, Y4, 0, -Y3, X2, Y4, 0, Y3 };
689
    float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,5);
689
    float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,2);
690 690

  
691 691
    meshes[0] = new MeshPolygon(vertices0, bands0, 1, 1);
692 692
    meshes[0].setEffectAssociation(0, 1,0);
......
694 694
    meshes[1].setEffectAssociation(0, 2,0);
695 695
    meshes[2] = meshes[0].copy(true);
696 696
    meshes[2].setEffectAssociation(0, 4,0);
697
    meshes[3] = new MeshPolygon(vertices1, bands1, 1, 1);
697
    meshes[3] = new MeshPolygon(vertices1, bands1, 0, 0);
698 698
    meshes[3].setEffectAssociation(0, 8,0);
699 699
    meshes[4] = meshes[3].copy(true);
700 700
    meshes[4].setEffectAssociation(0,16,0);
......
774 774
    meshes[2].setEffectAssociation(0, 4,0);
775 775
    meshes[3] = meshes[2].copy(true);
776 776
    meshes[3].setEffectAssociation(0, 8,0);
777
    meshes[4] = new MeshPolygon(vertices2, bands1, 1, 2);
777
    meshes[4] = new MeshPolygon(vertices2, bands1, 0, 0);
778 778
    meshes[4].setEffectAssociation(0,16,0);
779
    meshes[5] = new MeshPolygon(vertices3, bands1, 1, 2);
779
    meshes[5] = new MeshPolygon(vertices3, bands1, 0, 0);
780 780
    meshes[5].setEffectAssociation(0,32,0);
781 781

  
782 782
    return new MeshJoined(meshes);

Also available in: Unified diff