Revision 5c83f4b4
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/DistortedOutputSurface.java | ||
---|---|---|
191 | 191 |
|
192 | 192 |
for(int j=0; j<EffectQuality.LENGTH; j++) |
193 | 193 |
{ |
194 |
mBuffer1[j] = new DistortedFramebuffer(mDepthStencil ,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
|
|
195 |
mBuffer2[j] = new DistortedFramebuffer(NO_DEPTH_NO_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
|
|
194 |
mBuffer1[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
|
|
195 |
mBuffer2[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
|
|
196 | 196 |
mBuffer1[j].mMipmap = mipmap; |
197 | 197 |
mipmap *= EffectQuality.MULTIPLIER; |
198 | 198 |
} |
199 | 199 |
DistortedObject.toDo(); // create the FBOs immediately. This is safe as we must be holding the OpenGL context now. |
200 | 200 |
} |
201 | 201 |
|
202 |
numRenders += child.markStencilAndDraw(time,mBuffer1[currP.getQuality()],50);
|
|
202 |
numRenders += child.markStencilAndDraw(time,this,currP.getQuality(),50);
|
|
203 | 203 |
|
204 | 204 |
if( i==num-1 ) |
205 | 205 |
{ |
Also available in: Unified diff
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)