change GPUBvh struct to have only one index

This commit is contained in:
2025-01-25 15:19:53 +01:00
parent 6378ed0737
commit e1e53b99fe
5 changed files with 21 additions and 32 deletions

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 18:30:18 by ycontre #+# #+# */
/* Updated: 2025/01/24 19:35:52 by ycontre ### ########.fr */
/* Updated: 2025/01/25 14:10:19 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -77,10 +77,7 @@ struct GPUBvh
alignas(16) glm::vec3 min;
alignas(16) glm::vec3 max;
int left_index;
int right_index;
int first_primitive;
int index;
int primitive_count;
};
@ -146,4 +143,4 @@ class Scene
Camera *_camera;
};
#endif
#endif