~ | Better fps handling

This commit is contained in:
RedShip
2025-02-25 19:03:35 +01:00
committed by tomoron
parent 47c0c38662
commit 0aaf4d0492
6 changed files with 71 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
/* Updated: 2025/03/18 13:36:35 by tomoron ### ########.fr */
/* Updated: 2025/03/18 16:23:30 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -83,6 +83,8 @@ int main(int argc, char **argv)
raytracing_program.set_float("u_time", (float)(glfwGetTime()));
raytracing_program.set_vec2("u_resolution", glm::vec2(WIDTH, HEIGHT));
window.reduceTimeFrame();
std::map<std::string, std::vector<GLuint>> object_textures;
object_textures["textures"] = scene.getTextureIDs();
object_textures["emissive_textures"] = scene.getEmissionTextureIDs();