Project

General

Profile

« Previous | Next » 

Revision 698ad0a8

Added by Leszek Koltunski about 4 years ago

Move the Effects.setStretch to Meshbase.setStretch

View differences:

src/main/java/org/distorted/examples/earth/EarthRenderer.java
116 116
      scale.add(mScaleFactor);
117 117

  
118 118
      mMesh     = new MeshSphere(LEVEL);
119
      mMesh.setStretch(SIZE,SIZE,SIZE);
119 120
      mTexture  = new DistortedTexture();
120 121

  
121 122
      mObjWidth = mObjHeight = mObjDepth = SIZE;
......
129 130
      quatInt1.add(mQuat1);
130 131
      quatInt2.add(mQuat2);
131 132

  
132
      mEffects = new DistortedEffects(SIZE,SIZE,SIZE);
133
      mEffects = new DistortedEffects();
133 134
      mEffects.apply( new MatrixEffectQuaternion(quatInt2, mCenter) );
134 135
      mEffects.apply( new MatrixEffectQuaternion(quatInt1, mCenter) );
135 136
      mEffects.apply( new MatrixEffectScale(scale));

Also available in: Unified diff