Revision 031fbe7a
Added by Leszek Koltunski over 7 years ago
| 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); |
| src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java | ||
|---|---|---|
| 134 | 134 |
* |
| 135 | 135 |
* @y.exclude |
| 136 | 136 |
*/ |
| 137 |
public int getQuality() |
|
| 137 |
public int getQuality()
|
|
| 138 | 138 |
{
|
| 139 | 139 |
return 0; |
| 140 | 140 |
} |
| ... | ... | |
| 229 | 229 |
// blit back to inBuffer if we have to |
| 230 | 230 |
if( mQualityLevel>0 ) |
| 231 | 231 |
{
|
| 232 |
inBuffer.setAsOutput(); |
|
| 233 |
outBuffer.setAsInput(0); |
|
| 232 |
inBuffer.setAsOutputFBO(fbo); |
|
| 233 |
inBuffer.bindForOutput(2*fbo); |
|
| 234 |
outBuffer.setAsInput(2*fbo); |
|
| 234 | 235 |
GLES31.glEnable(GLES31.GL_BLEND); |
| 235 | 236 |
DistortedEffects.blitPriv(inBuffer); |
| 236 | 237 |
GLES31.glDisable(GLES31.GL_BLEND); |
| src/main/java/org/distorted/library/main/DistortedEffects.java | ||
|---|---|---|
| 233 | 233 |
mNormalMVPMatrixH = GLES31.glGetUniformLocation( normalProgramH, "u_MVPMatrix"); |
| 234 | 234 |
} |
| 235 | 235 |
|
| 236 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
| 236 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 237 | 237 |
|
| 238 | 238 |
static void createProgramsOIT(Resources resources) |
| 239 | 239 |
{
|
Also available in: Unified diff
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.