Project

General

Profile

« Previous | Next » 

Revision 5c83f4b4

Added by Leszek Koltunski almost 7 years ago

Progress with Stencil in Postprocessing: stencil during the 1st stage postprocess (buffer1->buffer2) works now, provided quality is HIGHEST.
(lower quality --> render errors, looks like Stencil is not set up correctly then)

View differences:

src/main/java/org/distorted/library/DistortedFramebuffer.java
246 246
      if( depthStencil!= NO_DEPTH_NO_STENCIL && mDepthStencilCreated==DONT_CREATE )
247 247
        {
248 248
        mDepthStencilCreated = NOT_CREATED_YET;
249

  
250
        if( mBuffer1[0]!=null )
251
          for(int i=0; i<EffectQuality.LENGTH; i++) mBuffer1[i].enableDepthStencil(depthStencil);
252

  
253 249
        markForCreation();
254 250
        }
255 251
      if( depthStencil== NO_DEPTH_NO_STENCIL && mDepthStencilCreated!=DONT_CREATE )
256 252
        {
257 253
        mDepthStencilCreated = DONT_CREATE;
258

  
259
        if( mBuffer1[0]!=null )
260
          for(int i=0; i<EffectQuality.LENGTH; i++) mBuffer1[i].enableDepthStencil(depthStencil);
261

  
262 254
        markForCreation();
263 255
        }
264 256
      }

Also available in: Unified diff