setProjectionMatrix method
- Matrix4 matrix
Sets the projection matrix used by the shaders.
matrix
: The Matrix4 to use as the projection matrix.
Implementation
void setProjectionMatrix(Matrix4 matrix) {
flush();
_renderState.projectionMatrix.setFrom(matrix);
gl.uniformMatrix4fv(_projectionMatrixLocation, false, _renderState.projectionMatrix.storage.toJS);
}