mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Small opti
This commit is contained in:
@ -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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user