Project

General

Profile

« Previous | Next » 

Revision bfe2c61b

Added by Leszek Koltunski over 7 years ago

Blurred image visible now!

View differences:

src/main/java/org/distorted/library/DistortedEffects.java
159 159
      GLES20.glViewport(0, 0, df.mWidth, df.mHeight);
160 160
      mBufferFBO.setAsInput();
161 161
      df.setAsOutput();
162
      mP.send(halfInputW,halfInputH);
162
      mP.send(df,halfInputW,halfInputH);
163 163

  
164 164
      GLES20.glVertexAttribPointer(Distorted.mPostProgramAttributes[0], POSITION_DATA_SIZE, GLES20.GL_FLOAT, false, 0, mQuadPositions);
165 165
      GLES20.glVertexAttribPointer(Distorted.mPostProgramAttributes[1], TEX_DATA_SIZE     , GLES20.GL_FLOAT, false, 0, mQuadTexture);
......
176 176
    EffectQueueMatrix.sendZero(df,halfInputW,halfInputH,halfInputW*mesh.zFactor);
177 177
    EffectQueueVertex.sendZero();
178 178
    EffectQueueFragment.sendZero();
179
    EffectQueuePostprocess.sendZero(2*halfInputW,2*halfInputH);
179
    EffectQueuePostprocess.sendZero(df,2*halfInputW,2*halfInputH);
180 180

  
181 181
    mesh.draw();
182 182
    }

Also available in: Unified diff