Project

General

Profile

« Previous | Next » 

Revision 334c13fa

Added by Leszek Koltunski over 7 years ago

Make the effect Center be always 3D.

View differences:

src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
50 50
   
51 51
   private GLSurfaceView mView;
52 52
   private DistortedBitmap[] bmp;
53
   private Static2D pLeft, pRight, pNose1;
53
   private Static3D pLeft, pRight, pNose1;
54 54
   private Static4D RegionEye;
55 55
   private Dynamic3D mDI;
56 56
   private int bmpHeight, bmpWidth;
......
62 62
      mView = v;
63 63
      
64 64
      // bmp[0] effects
65
      pLeft = new Static2D(214, 206);
66
      pRight= new Static2D(390, 212);
65
      pLeft = new Static3D(214, 206, 0);
66
      pRight= new Static3D(390, 212, 0);
67 67
      RegionEye = new Static4D(0,0,60,60);
68 68
      
69 69
      // bmp[1] effects
70 70
      mDI = new Dynamic3D(1000,0.0f);
71 71
      mDI.add(new Static3D( 50,0,0));
72 72
      mDI.add(new Static3D(-50,0,0));
73
      pNose1 = new Static2D(305, 340);
73
      pNose1 = new Static3D(305, 340, 0);
74 74
      
75 75
      // we don't need to prepare anything for bmp[2] effects
76 76
      }

Also available in: Unified diff