Revision 1d6d261e
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
272 | 272 |
float h = mSurface.getHeight()/2.0f; |
273 | 273 |
|
274 | 274 |
// Actually draw our object. |
275 |
buffer1.setAsOutput(currTime);
|
|
275 |
buffer1.setAsOutput(); |
|
276 | 276 |
mState.apply(); |
277 | 277 |
mEffects.drawPriv(w, h, mMesh, buffer1, currTime, 0); |
278 | 278 |
|
279 | 279 |
// Mark area of our object + marginInPixels pixels around with 1s in Stencil buffer |
280 |
buffer2.setAsOutput(currTime);
|
|
280 |
//buffer2.setAsOutput();
|
|
281 | 281 |
DistortedRenderState.setUpStencilMark(); |
282 |
mEffects.drawPriv(w, h, mMesh, buffer2, currTime, effects.getHalo()*buffer2.mMipmap);
|
|
282 |
mEffects.drawPriv(w, h, mMesh, buffer1, currTime, effects.getHalo()*buffer1.mMipmap);
|
|
283 | 283 |
DistortedRenderState.unsetUpStencilMark(); |
284 | 284 |
|
285 | 285 |
return 1; |
Also available in: Unified diff
Move to a new way to detecting depth of postprocessing halos.
This switches off stenciling (hopefully temporarily!)