Project

General

Profile

« Previous | Next » 

Revision b3120b1b

Added by Leszek Koltunski almost 7 years ago

Progress with Stencil in Postprocessing (doesn't work still)

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
194 194
            mBuffer1[j] = new DistortedFramebuffer(mDepthStencil      ,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
195 195
            mBuffer2[j] = new DistortedFramebuffer(NO_DEPTH_NO_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
196 196
            mBuffer1[j].mMipmap = mipmap;
197
            mBuffer1[j].glClear(GLES30.GL_COLOR_BUFFER_BIT|GLES30.GL_DEPTH_BUFFER_BIT|GLES30.GL_STENCIL_BUFFER_BIT);
198 197
            mipmap *= EffectQuality.MULTIPLIER;
199 198
            }
200 199
          DistortedObject.toDo(); // create the FBOs immediately. This is safe as we must be holding the OpenGL context now.
201 200
          }
202 201

  
203
        numRenders += child.markStencilAndDraw(time,mBuffer1[currP.getQuality()],20);
202
        numRenders += child.markStencilAndDraw(time,mBuffer1[currP.getQuality()],50);
204 203

  
205 204
        if( i==num-1 )
206 205
          {

Also available in: Unified diff