【发布时间】:2013-12-02 09:07:25
【问题描述】:
如何将“特征矩阵”发送到 GLSL? 例如:
// Set up the model and projection matrix
Eigen::Matrix<GLfloat,4,4> projection_matrix;
projection_matrix = frustum(-1.0f, 1.0f, -aspect, aspect, 1.0f, 500.0f);
glUniformMatrix4fv(render_projection_matrix_loc, 1, GL_FALSE, &projection_matrix.data()[0]);
我在way(matrix.date()[0]) 中查找了 uBLAS,但 Eigen 不是 uBLAS。我该怎么做?
【问题讨论】:
-
您可能想看看
eigen/demos/opengl目录。
标签: c++ opengl matrix glsl eigen