Project

General

Profile

« Previous | Next » 

Revision 031fbe7a

Added by Leszek Koltunski almost 6 years ago

Partially 'fix' Glow effect for the case when FBO_QUEUE_SIZE > 1 (come back to pre-FBO_QUEUE_SIZE level of functionality).
Still, Glow needs to actually get implemented correctly.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java
134 134
 *
135 135
 * @y.exclude
136 136
 */
137
 public int getQuality()
137
  public int getQuality()
138 138
   {
139 139
   return 0;
140 140
   }
......
229 229
    // blit back to inBuffer if we have to
230 230
    if( mQualityLevel>0 )
231 231
      {
232
      inBuffer.setAsOutput();
233
      outBuffer.setAsInput(0);
232
      inBuffer.setAsOutputFBO(fbo);
233
      inBuffer.bindForOutput(2*fbo);
234
      outBuffer.setAsInput(2*fbo);
234 235
      GLES31.glEnable(GLES31.GL_BLEND);
235 236
      DistortedEffects.blitPriv(inBuffer);
236 237
      GLES31.glDisable(GLES31.GL_BLEND);

Also available in: Unified diff