src/ui/canvas.cpp

changeset 188
64ea7282611e
parent 187
30204975694a
child 189
815fbaae9cb2
equal deleted inserted replaced
187:30204975694a 188:64ea7282611e
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

mercurial