Revision 835b197e
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
---|---|---|
557 | 557 |
|
558 | 558 |
mFullProgram.useProgram(); |
559 | 559 |
mesh.bindVertexAttribs(mFullProgram); |
560 |
queue.compute(1); |
|
560 |
queue.compute(1,0);
|
|
561 | 561 |
queue.send(0.0f,mFullProgramH,3); |
562 | 562 |
mesh.send(mFullProgramH,3); |
563 | 563 |
|
... | ... | |
573 | 573 |
|
574 | 574 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
575 | 575 |
|
576 |
static void drawPrivOIT(DistortedEffects effects, MeshBase mesh, InternalOutputSurface surface, long currTime) |
|
576 |
static void drawPrivOIT(DistortedEffects effects, MeshBase mesh, InternalOutputSurface surface, long currTime, long step)
|
|
577 | 577 |
{ |
578 | 578 |
if( mMainOITProgram!=null ) |
579 | 579 |
{ |
580 | 580 |
EffectQueue[] queues = effects.getQueues(); |
581 | 581 |
|
582 |
EffectQueue.compute(queues, currTime); |
|
582 |
EffectQueue.compute(queues, currTime, step);
|
|
583 | 583 |
GLES30.glViewport(0, 0, surface.mWidth, surface.mHeight ); |
584 | 584 |
|
585 | 585 |
mMainOITProgram.useProgram(); |
... | ... | |
609 | 609 |
|
610 | 610 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
611 | 611 |
|
612 |
static void drawPriv(DistortedEffects effects, MeshBase mesh, InternalOutputSurface surface, long currTime) |
|
612 |
static void drawPriv(DistortedEffects effects, MeshBase mesh, InternalOutputSurface surface, long currTime, long step)
|
|
613 | 613 |
{ |
614 | 614 |
if( mMainProgram!=null ) |
615 | 615 |
{ |
616 | 616 |
EffectQueue[] queues = effects.getQueues(); |
617 | 617 |
|
618 |
EffectQueue.compute(queues, currTime); |
|
618 |
EffectQueue.compute(queues, currTime, step);
|
|
619 | 619 |
GLES30.glViewport(0, 0, surface.mWidth, surface.mHeight ); |
620 | 620 |
|
621 | 621 |
mMainProgram.useProgram(); |
Also available in: Unified diff
Move the information when was a EffectQueue last time evaluated from the EffectQueues all the way up to the Node which contains them.
The point: we need to reset this time back to 0 every time we attach the Node (and thus start evaluating the Queues inside)