Revision bfe45b4a
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/DistortedNode.java | ||
---|---|---|
163 | 163 |
{ |
164 | 164 |
mState.apply(); |
165 | 165 |
GLES31.glDisable(GLES31.GL_BLEND); |
166 |
mEffects.drawPriv(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
166 |
Distorted.drawPriv(mEffects.getQueues(), mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
167 | 167 |
GLES31.glEnable(GLES31.GL_BLEND); |
168 | 168 |
return 1; |
169 | 169 |
} |
... | ... | |
181 | 181 |
if( input.setAsInput() ) |
182 | 182 |
{ |
183 | 183 |
mState.apply(); |
184 |
mEffects.drawPrivOIT(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
184 |
Distorted.drawPrivOIT(mEffects.getQueues(), mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
185 | 185 |
return 1; |
186 | 186 |
} |
187 | 187 |
|
... | ... | |
198 | 198 |
if( input.setAsInput() ) |
199 | 199 |
{ |
200 | 200 |
mState.apply(); |
201 |
mEffects.drawPriv(mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
201 |
Distorted.drawPriv(mEffects.getQueues(), mSurface.getWidth()/2.0f, mSurface.getHeight()/2.0f, mMesh, surface, currTime);
|
|
202 | 202 |
return 1; |
203 | 203 |
} |
204 | 204 |
|
... | ... | |
226 | 226 |
if( mSurface.setAsInput() ) |
227 | 227 |
{ |
228 | 228 |
numRenders++; |
229 |
DistortedEffects.blitPriv(mData.mFBO);
|
|
229 |
Distorted.blitPriv(mData.mFBO); |
|
230 | 230 |
} |
231 | 231 |
|
232 | 232 |
numRenders += mData.mFBO.renderChildren(currTime,numChildren,mChildren,0, mRenderWayOIT); |
... | ... | |
389 | 389 |
mRenderWayOIT = oit; |
390 | 390 |
|
391 | 391 |
if( initialSize>0.0f && initialSize<10.0f ) |
392 |
DistortedEffects.setSSBOSize(initialSize);
|
|
392 |
Distorted.setSSBOSize(initialSize); |
|
393 | 393 |
} |
394 | 394 |
|
395 | 395 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Move all Program-related stuff to Distorted. Now the DistortedEffects class is very simple.