Project

General

Profile

« Previous | Next » 

Revision 031fbe7a

Added by Leszek Koltunski almost 6 years ago

Partially 'fix' Glow effect for the case when FBO_QUEUE_SIZE > 1 (come back to pre-FBO_QUEUE_SIZE level of functionality).
Still, Glow needs to actually get implemented correctly.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffect.java
56 56

  
57 57
    mQuadPositions = ByteBuffer.allocateDirect(POS_DATA_SIZE*dataLength*bytes_per_float).order(ByteOrder.nativeOrder()).asFloatBuffer();
58 58
    mQuadPositions.put(position).position(0);
59
    mQuadTexture= ByteBuffer.allocateDirect(TEX_DATA_SIZE*dataLength*bytes_per_float).order(ByteOrder.nativeOrder()).asFloatBuffer();
59
    mQuadTexture   = ByteBuffer.allocateDirect(TEX_DATA_SIZE*dataLength*bytes_per_float).order(ByteOrder.nativeOrder()).asFloatBuffer();
60 60
    mQuadTexture.put(textureNor).position(0);
61 61
    mQuadTextureInv= ByteBuffer.allocateDirect(TEX_DATA_SIZE*dataLength*bytes_per_float).order(ByteOrder.nativeOrder()).asFloatBuffer();
62 62
    mQuadTextureInv.put(textureInv).position(0);

Also available in: Unified diff