Skip to content

Instantly share code, notes, and snippets.

@BALUSANGEM
Last active June 14, 2018 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BALUSANGEM/1544e2e3135d7e603aa64feb01be257d to your computer and use it in GitHub Desktop.
Save BALUSANGEM/1544e2e3135d7e603aa64feb01be257d to your computer and use it in GitHub Desktop.
public void update(float[] modelMatrix) {
float[] scaleMatrix = new float[16];
Matrix.setIdentityM(scaleMatrix, 0);
float SCALE_FACTOR = 1f;
scaleMatrix[0] = SCALE_FACTOR;
scaleMatrix[5] = SCALE_FACTOR;
scaleMatrix[10] = SCALE_FACTOR;
Matrix.multiplyMM(this.mModelMatrix, 0, modelMatrix, 0, scaleMatrix, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment