Esempio n. 1
0
 public void makePmvMatrix() {
   FloatUtil.multMatrixf(pmvMatrix.glGetPMatrixf(), pmvMatrix.glGetMvMatrixf(), mvp, 0);
   getMatrix4f(pmvMatrix.glGetPMatrixf())
       .mul(getMatrix4f(pmvMatrix.glGetMvMatrixf()))
       .writeToBuffer(pmv, true, false);
 }
Esempio n. 2
0
 /**
  * Send uniform matrices "ProjectionMatrix, ModelViewMatrix and ModelViewProjectionMatrix" to
  * vertex shader
  *
  * @param pmvMatrix the PMVMatrix containing all matrices
  */
 public void setPMVMatrix(PMVMatrix pmvMatrix) {
   FloatBuffer pmvMat = FloatBuffer.allocate(16);
   FloatUtil.multMatrixf(pmvMatrix.glGetPMatrixf(), pmvMatrix.glGetMvMatrixf(), pmvMat);
   gl.glUniformMatrix4fv(this.getModelViewProjectionMatrixID(), 1, false, pmvMat);
 }