Revision 07206c71
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
---|---|---|
35 | 35 |
import org.distorted.library.effect.FragmentEffect; |
36 | 36 |
import org.distorted.library.effect.PostprocessEffect; |
37 | 37 |
import org.distorted.library.effect.VertexEffect; |
38 |
import org.distorted.library.effectqueue.EffectQueueVertex; |
|
39 |
import org.distorted.library.mesh.DeferredJobs; |
|
38 | 40 |
import org.distorted.library.mesh.MeshBase; |
39 | 41 |
import org.distorted.library.message.EffectMessageSender; |
40 | 42 |
import org.distorted.library.program.DistortedProgram; |
... | ... | |
475 | 477 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
476 | 478 |
// execute all VertexEffects and adjust all vertices |
477 | 479 |
|
478 |
public static void adjustVertices(MeshBase mesh) |
|
480 |
public static void adjustVertices(MeshBase mesh, EffectQueueVertex queue)
|
|
479 | 481 |
{ |
480 | 482 |
if( mFullProgram!=null ) |
481 | 483 |
{ |
... | ... | |
486 | 488 |
|
487 | 489 |
mFullProgram.useProgram(); |
488 | 490 |
mesh.bindVertexAttribs(mFullProgram); |
489 |
mesh.computeQueue();
|
|
490 |
mesh.sendQueue();
|
|
491 |
queue.compute(1);
|
|
492 |
queue.send(0.0f,3);
|
|
491 | 493 |
mesh.send(3); |
492 | 494 |
|
493 | 495 |
GLES30.glBindBufferBase(GLES30.GL_TRANSFORM_FEEDBACK_BUFFER, 0, tfo ); |
... | ... | |
979 | 981 |
DistortedEffects.onDestroy(); |
980 | 982 |
EffectQueue.onDestroy(); |
981 | 983 |
Effect.onDestroy(); |
984 |
DeferredJobs.onDestroy(); |
|
982 | 985 |
EffectMessageSender.stopSending(); |
983 | 986 |
|
984 | 987 |
mInitialized = false; |
Also available in: Unified diff
First attempt at Deferred Mesh Jobs.
Only apply(VertexEffect) supported for now.