在两个场景中,转换必须在glMatrix中交换.
即在glMatrix中实现1):
mat4.translate(modelViewMatrix, modelViewMatrix, [0.6, 0.0, 0.0]); mat4.rotateZ(modelViewMatrix, modelViewMatrix, degToRad(45));
为什么转换顺序颠倒了?
transformation gl-matrix
gl-matrix ×1
transformation ×1