Revision b3120b1b
Added by Leszek Koltunski over 8 years ago
| src/main/java/org/distorted/library/DistortedNode.java | ||
|---|---|---|
| 265 | 265 |
|
| 266 | 266 |
if( input.setAsInput() ) |
| 267 | 267 |
{
|
| 268 |
surface.setAsOutput(currTime); |
|
| 269 |
|
|
| 268 | 270 |
// Mark area of our object + marginInPixels pixels around with 1s in Stencil buffer |
| 269 | 271 |
DistortedRenderState.setUpStencilMark(); |
| 270 | 272 |
mEffects.drawPriv(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime, marginInPixels); |
| ... | ... | |
| 286 | 288 |
|
| 287 | 289 |
if( input.setAsInput() ) |
| 288 | 290 |
{
|
| 291 |
surface.setAsOutput(currTime); |
|
| 289 | 292 |
mState.apply(); |
| 290 | 293 |
mEffects.drawPriv(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime, 0); |
| 291 | 294 |
return 1; |
Also available in: Unified diff
Progress with Stencil in Postprocessing (doesn't work still)