Revision 3eb6f354
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/library/effectqueue/EffectQueueMatrix.java | ||
---|---|---|
146 | 146 |
void send(int width, int height, float distance, float mipmap, float[] projection, float halfX, float halfY, float halfZ, int variant) |
147 | 147 |
{ |
148 | 148 |
Matrix.setIdentityM(mViewMatrix, 0); |
149 |
Matrix.translateM(mViewMatrix, 0, -width*0.5f, -height*0.5f, -distance); |
|
149 |
//Matrix.translateM(mViewMatrix, 0, -width*0.5f, -height*0.5f, -distance); |
|
150 |
|
|
151 |
Matrix.translateM(mViewMatrix, 0, 0,0, -distance); |
|
152 |
|
|
150 | 153 |
if( mipmap!=1 ) Matrix.scaleM(mViewMatrix, 0, mipmap, mipmap, mipmap); |
151 | 154 |
|
152 | 155 |
for(int i=mNumEffects-1; i>=0; i--) ((MatrixEffect)mEffects[i]).apply(mViewMatrix,mUniforms,i); |
153 | 156 |
|
154 |
Matrix.translateM(mViewMatrix, 0, halfX,halfY,halfZ); |
|
157 |
// Matrix.translateM(mViewMatrix, 0, halfX,halfY,halfZ);
|
|
155 | 158 |
Matrix.multiplyMM(mMVPMatrix, 0, projection, 0, mViewMatrix, 0); |
156 | 159 |
|
157 | 160 |
GLES31.glUniform3f( mObjDH[variant] , halfX, halfY, halfZ); |
Also available in: Unified diff
Merge branch 'empty-matrix-effects-in-the-center' into modern-empty-matrix-effects-in-the-center