Revision c1e24646
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
200 | 200 |
int drawRecursive(int renderNum, long currTime, DistortedOutputSurface surface) |
201 | 201 |
{ |
202 | 202 |
int ret = 0; |
203 |
float halfX = mSurface.getWidth()/2.0f; |
|
204 |
float halfY = mSurface.getHeight()/2.0f; |
|
205 | 203 |
|
206 | 204 |
if( mNumChildren[0]>0 && mData.numRender!=renderNum ) |
207 | 205 |
{ |
... | ... | |
214 | 212 |
if( mSurface.setAsInput() ) |
215 | 213 |
{ |
216 | 214 |
ret++; |
217 |
DistortedEffects.drawNoEffectsPriv(halfX, halfY, mMesh, mData.mFBO);
|
|
215 |
DistortedEffects.blitPriv(mData.mFBO);
|
|
218 | 216 |
} |
219 | 217 |
|
220 | 218 |
for(int i=0; i<mNumChildren[0]; i++) |
... | ... | |
229 | 227 |
{ |
230 | 228 |
ret++; |
231 | 229 |
mState.apply(); |
232 |
mEffects.drawPriv(halfX, halfY, mMesh, surface, currTime);
|
|
230 |
mEffects.drawPriv(mSurface.getWidth()/2, mSurface.getHeight()/2, mMesh, surface, currTime);
|
|
233 | 231 |
} |
234 | 232 |
|
235 | 233 |
return ret; |
Also available in: Unified diff
Introduce Effects.blitPriv() (faster than previous drawNoEffectsPriv)