Revision c2c08950
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/EffectQueueMatrix.java | ||
---|---|---|
294 | 294 |
GLES30.glUniformMatrix4fv(mMVPMatrixH, 1, false, mMVPMatrix , 0); |
295 | 295 |
} |
296 | 296 |
|
297 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
298 |
// here construct the ModelView Matrix, but without any effects |
|
299 |
|
|
300 |
synchronized static void sendZero(DistortedOutputSurface projection, float halfX, float halfY, float halfZ) |
|
301 |
{ |
|
302 |
Matrix.setIdentityM(mTmpMatrix, 0); |
|
303 |
Matrix.translateM(mTmpMatrix, 0, halfX-projection.mWidth/2, projection.mHeight/2-halfY, -projection.mDistance); |
|
304 |
Matrix.multiplyMM(mMVPMatrix, 0, projection.mProjectionMatrix, 0, mTmpMatrix, 0); |
|
305 |
|
|
306 |
GLES30.glUniform3f( mObjDH , halfX, halfY, halfZ); |
|
307 |
GLES30.glUniform1f( mDepthH, projection.mDepth); |
|
308 |
GLES30.glUniformMatrix4fv(mMVMatrixH , 1, false, mTmpMatrix, 0); |
|
309 |
GLES30.glUniformMatrix4fv(mMVPMatrixH, 1, false, mMVPMatrix, 0); |
|
310 |
} |
|
311 |
|
|
312 | 297 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
313 | 298 |
// move, scale |
314 | 299 |
|
Also available in: Unified diff
simplify blitPriv()