| 47 | |
| 48 | |
| 49 | void Light::update() { |
| 50 | orientation_vec = glm::vec3(0,0,0); |
| 51 | orientation = glm::normalize(glm::quat(orientation_vec)); |
| 52 | RotationMatrix = glm::toMat4(orientation); |
| 53 | //Rotate around center |
| 54 | TranslationMatrix = glm::translate(glm::mat4(1.0), glm::vec3(0,0,0)); |
| 55 | ModelMatrix = TranslationMatrix * RotationMatrix; |
| 56 | |
| 57 | ViewMatrix = glm::lookAt(position, lookAt, glm::vec3(0,1.0,0)); |
| 58 | } |
| 59 | |
| 60 | void Light::destroy() { |
| 61 | glDeleteBuffers(1, &vertexbuffer); |
nothing calls this directly
no outgoing calls
no test coverage detected