Revision 41b3ada0
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
---|---|---|
36 | 36 |
import org.distorted.library.effect.PostprocessEffect; |
37 | 37 |
import org.distorted.library.effect.VertexEffect; |
38 | 38 |
import org.distorted.library.effectqueue.EffectQueueVertex; |
39 |
import org.distorted.library.mesh.AssociationUniformBlock; |
|
40 | 39 |
import org.distorted.library.mesh.DeferredJobs; |
41 | 40 |
import org.distorted.library.mesh.MeshBase; |
42 | 41 |
import org.distorted.library.message.EffectMessageSender; |
... | ... | |
305 | 304 |
mBlitDepthDepthTextureH = GLES30.glGetUniformLocation( blitDepthProgramH, "u_DepthTexture"); |
306 | 305 |
mBlitDepthDepthH = GLES30.glGetUniformLocation( blitDepthProgramH, "u_Depth"); |
307 | 306 |
mBlitDepthTexCorrH = GLES30.glGetUniformLocation( blitDepthProgramH, "u_TexCorr"); |
308 |
|
|
309 |
int[] params = new int[1]; |
|
310 |
int index = GLES30.glGetUniformBlockIndex(mMainProgramH, "meshAssociation"); |
|
311 |
GLES30.glGetActiveUniformBlockiv( mMainProgramH, index, GLES30.GL_UNIFORM_BLOCK_DATA_SIZE, params, 0); |
|
312 |
AssociationUniformBlock.setAssociationSize(params[0]); |
|
313 | 307 |
} |
314 | 308 |
|
315 | 309 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Simplify AssociationUniformBlock