Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 10th, 2012  |  syntax: Java  |  size: 0.27 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.       Matrix4 modifications = new Matrix4();
  2.       modifications.translate(1, 0, 0);
  3.       modifications.rotate(0, 0, 1, 10);
  4.       Matrix4 result = new Matrix4(cam.combined).mul(modifications);
  5.       ...
  6.       shader.setUniformMatrix("u_projectionViewMatrix", result);