Revision d58407a8
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java | ||
---|---|---|
156 | 156 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
157 | 157 |
// TODO (now only really works in case of 1 effect!) |
158 | 158 |
|
159 |
public boolean getRender() |
|
159 |
public boolean getRenderDirectly()
|
|
160 | 160 |
{ |
161 |
return mNumEffects > 0 && ((PostprocessEffect) mEffects[0]).getRender(); |
|
161 |
return mNumEffects > 0 && ((PostprocessEffect) mEffects[0]).getRenderDirectly();
|
|
162 | 162 |
} |
163 | 163 |
|
164 | 164 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
213 | 213 |
|
214 | 214 |
for(int i=0; i<mNumEffects; i++) |
215 | 215 |
{ |
216 |
numRenders += ((PostprocessEffect)mEffects[i]).apply(array,NUM_FLOAT_UNIFORMS*i, buffer);
|
|
216 |
numRenders += ((PostprocessEffect)mEffects[i]).postprocess(array,NUM_FLOAT_UNIFORMS*i, buffer);
|
|
217 | 217 |
} |
218 | 218 |
|
219 | 219 |
GLES30.glEnable(GLES30.GL_BLEND); |
Also available in: Unified diff
New postprocess effect 'Border' (not working yet) and adding it to the testing app 'Triblur'.