Project

General

Profile

« Previous | Next » 

Revision c90aca24

Added by Leszek Koltunski about 4 years ago

Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)

View differences:

src/main/java/org/distorted/library/main/DistortedScreen.java
133 133

  
134 134
    if( mShowFPS && fpsTexture.setAsInput())
135 135
      {
136
      DistortedLibrary.drawPriv(fpsEffects.getQueues(), FPS_W / 2.0f, FPS_H / 2.0f, fpsMesh, this, time);
136
      DistortedLibrary.drawPriv(fpsEffects, fpsMesh, this, time);
137 137
      }
138 138

  
139 139
    if( ++mCurRenderedFBO>= DistortedLibrary.FBO_QUEUE_SIZE )
......
162 162
      fpsString = "";
163 163
      fpsBitmap = Bitmap.createBitmap(FPS_W, FPS_H, Bitmap.Config.ARGB_8888);
164 164
      fpsMesh = new MeshQuad();
165
      fpsTexture = new DistortedTexture(FPS_W, FPS_H);
165
      fpsTexture = new DistortedTexture();
166 166
      fpsTexture.setTexture(fpsBitmap);
167 167
      fpsCanvas = new Canvas(fpsBitmap);
168
      fpsEffects = new DistortedEffects();
168
      fpsEffects = new DistortedEffects(FPS_W,FPS_H,0);
169 169
      fpsEffects.apply(mMoveEffect);
170 170

  
171 171
      mPaint = new Paint();

Also available in: Unified diff