Project

General

Profile

« Previous | Next » 

Revision 0c5fa440

Added by Leszek Koltunski almost 7 years ago

Fix 'Olimpic' APP. Now 29 out of 31 APPs work.

View differences:

src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
97 97
      mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE);
98 98
      DistortedTexture surface = new DistortedTexture(3*LEAF_SIZE,3*LEAF_SIZE);
99 99
      mMesh = new MeshFlat(1,1);
100
      mMove = new Static3D(0,0,0);
101
      mScale= new Static3D(1,1,1);
102

  
100 103
      DistortedEffects effects = new DistortedEffects();
104
      effects.apply(new MatrixEffectMove(mMove));
105
      effects.apply(new MatrixEffectScale(mScale));
101 106

  
102 107
      mScreenW = 9*LEAF_SIZE;
103 108
      mScreenH = 9*LEAF_SIZE;
......
137 142

  
138 143
      mScreen = new DistortedScreen(mView);
139 144
      mScreen.attach(mRoot);
140

  
141
      mMove = new Static3D(0,0,0);
142
      mScale= new Static3D(1,1,1);
143
      effects.apply(new MatrixEffectMove(mMove));
144
      effects.apply(new MatrixEffectScale(mScale));
145 145
      }
146 146

  
147 147
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff