+ | Small opti

This commit is contained in:
RedShip
2025-01-24 19:54:14 +01:00
parent c050caa789
commit 6378ed0737
17 changed files with 119432 additions and 676 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/16 21:36:19 by TheRed #+# #+# */
/* Updated: 2025/01/17 18:59:28 by ycontre ### ########.fr */
/* Updated: 2025/01/24 19:35:58 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* ObjParser.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/16 15:00:49 by tomoron #+# #+# */
/* Updated: 2025/01/21 16:01:21 by tomoron ### ########.fr */
/* Updated: 2025/01/24 18:49:57 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,7 +18,7 @@
class ObjParser
{
public:
ObjParser(std::string &filename, std::string &scene_filename);
ObjParser(std::string &filename, std::string &scene_filename, int mat);
~ObjParser();
void parse(Scene &scene, glm::vec3 offset, float scale, glm::mat4 transform);

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 18:30:18 by ycontre #+# #+# */
/* Updated: 2025/01/23 18:30:18 by ycontre ### ########.fr */
/* Updated: 2025/01/24 19:35:52 by ycontre ### ########.fr */
/* */
/* ************************************************************************** */
@ -80,10 +80,9 @@ struct GPUBvh
int left_index;
int right_index;
int is_leaf;
int first_primitive;
int primitive_count;
};
struct GPUBvhData