101102103104105106107108109110111
} public void scale(float x, float y, float z) { Mat4 mat = new Mat4(); mat.clear(0); mat.set(0, x); mat.set(5, y); mat.set(10, z); mat.set(15, 1);
118119120121122123124125126127128
public void translate(float x, float y, float z) { Mat4 mat = new Mat4(); mat.clear(1); mat.set(12, x); mat.set(13, y); mat.set(14, z); currentMatrix.mul(mat);