318 this->gridMatrix * glm::vec4{1, 0, 0, 1}, |
318 this->gridMatrix * glm::vec4{1, 0, 0, 1}, |
319 this->gridMatrix * glm::vec4{0, 1, 0, 1}, |
319 this->gridMatrix * glm::vec4{0, 1, 0, 1}, |
320 }; |
320 }; |
321 this->gridPlane = geom::planeFromTriangle(triangle); |
321 this->gridPlane = geom::planeFromTriangle(triangle); |
322 this->gridProgram->setGridMatrix(this->gridMatrix); |
322 this->gridProgram->setGridMatrix(this->gridMatrix); |
|
323 this->update(); |
323 } |
324 } |
324 |
325 |
325 /** |
326 /** |
326 * @brief Gets the current camera vector, i.e. the vector from the camera to the grid origin. |
327 * @brief Gets the current camera vector, i.e. the vector from the camera to the grid origin. |
327 * @return vector |
328 * @return vector |