Revision d1fa4e16
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/library/mesh/MeshBase.java | ||
---|---|---|
21 | 21 |
package org.distorted.library.mesh; |
22 | 22 |
|
23 | 23 |
import android.opengl.GLES30; |
24 |
import android.opengl.Matrix; |
|
25 | 24 |
|
26 | 25 |
import org.distorted.library.effect.MatrixEffect; |
27 | 26 |
import org.distorted.library.effect.VertexEffect; |
... | ... | |
263 | 262 |
float[] uniforms = new float[7]; |
264 | 263 |
int start, end=-1, numComp = mEffComponent.size(); |
265 | 264 |
|
266 |
Matrix.setIdentityM(matrixP,0); |
|
267 |
Matrix.setIdentityM(matrixV,0); |
|
265 |
matrixP[0] = matrixP[5] = matrixP[10] = matrixP[15] = 1; |
|
266 |
matrixV[0] = matrixV[5] = matrixV[10] = matrixV[15] = 1; |
|
267 |
|
|
268 | 268 |
effect.compute(uniforms,0,0,0); |
269 | 269 |
effect.apply(matrixP, matrixV, uniforms, 0); |
270 | 270 |
|
Also available in: Unified diff
Make the touchable part of the 'coin' in the CoinTetrahedroon a bit smaller.