Project

General

Profile

« Previous | Next » 

Revision 8eed34d3

Added by Leszek Koltunski about 4 years ago

Moving the Vertex and Fragment centers of effect to the center of the Mesh.

View differences:

src/main/java/org/distorted/examples/differenteffects/DifferentEffectsRenderer.java
68 68
      mView = v;
69 69
      
70 70
      // mEffects[0] effects
71
      Static3D pLeft = new Static3D(214, 394, 0);
72
      Static3D pRight= new Static3D(390, 388, 0);
71
      Static3D pLeft = new Static3D(214 - 594/2, 394 - 600/2, 0);
72
      Static3D pRight= new Static3D(390 - 594/2, 388 - 600/2, 0);
73 73
      Static4D RegionEye = new Static4D(0,0,0,60);
74 74
      
75 75
      // mEffects[1] effects
76 76
      Dynamic3D dyn = new Dynamic3D(1000,0.0f);
77 77
      dyn.add(new Static3D( 50,0,0));
78 78
      dyn.add(new Static3D(-50,0,0));
79
      Static3D pNose1 = new Static3D(305, 260, 0);
79
      Static3D pNose1 = new Static3D(305 - 594/2, 260 - 600/2, 0);
80 80
      
81 81
      // we don't need to prepare anything for mEffects[2] effects
82 82

  

Also available in: Unified diff