#include "engine.h" #include #include "loops.h" #include void djalim::OpenGlEngine::onUpdate(){ showFps(); shaderProgram.use(); shaderProgram.setUniform("material.diffuseMap", 0); glm::mat4 model(1.0), view(1.0), projection(1.0); // Create the View matrix view = Camera.getViewMatrix(); // Create the projection matrix projection = glm::perspective(glm::radians(Camera.getFOV()), (float)windowWidth / (float)windowHeight, 0.1f, 200.0f); // Matrice de Projection shaderProgram.setUniform("projection", projection); shaderProgram.setUniform("view", view); lighting.update(shaderProgram, Camera); draw((objects["cube"]).get()); draw((objects["mimikyu"]).get()); }