src/gl/partrenderer.cpp

changeset 32
767592024ec5
parent 31
b6df269a2c6b
child 34
1de2b8d64e9f
equal deleted inserted replaced
31:b6df269a2c6b 32:767592024ec5
46 } 46 }
47 this->compiler->initialize(); 47 this->compiler->initialize();
48 this->compiler->build(this->model, this->documents); 48 this->compiler->build(this->model, this->documents);
49 this->initializeLighting(); 49 this->initializeLighting();
50 this->initialized = true; 50 this->initialized = true;
51 this->modelQuaternion = glm::angleAxis(glm::radians(30.0f), glm::vec3{1, 0, 0}); 51 this->modelQuaternion = glm::angleAxis(glm::radians(30.0f), glm::vec3{-1, 0, 0});
52 this->modelQuaternion *= glm::angleAxis(glm::radians(330.0f), glm::vec3{0, 1, 0}); 52 this->modelQuaternion *= glm::angleAxis(glm::radians(225.0f), glm::vec3{-0, 1, 0});
53 this->updateViewMatrix(); 53 this->updateViewMatrix();
54 glLineWidth(2.0); 54 glLineWidth(2.0);
55 this->update(); 55 this->update();
56 } 56 }
57 57

mercurial