~ | chepa

This commit is contained in:
RedShip
2025-02-03 20:25:19 +01:00
parent 294be844e2
commit 4b8f53e5fa
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ hitInfo traceRay(Ray ray)
hitInfo hitScene; hitInfo hitScene;
hitInfo hit; hitInfo hit;
#if 1 #if 0
for (int i = 0; i < 10; i++) // portal ray for (int i = 0; i < 10; i++) // portal ray
{ {
hitBVH = traverseBVHs(ray); hitBVH = traverseBVHs(ray);

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */ /* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/16 15:00:33 by tomoron #+# #+# */ /* Created: 2025/01/16 15:00:33 by tomoron #+# #+# */
/* Updated: 2025/02/03 18:40:04 by ycontre ### ########.fr */ /* Updated: 2025/02/03 19:01:06 by ycontre ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -257,7 +257,7 @@ void ObjParser::parseMtl(std::stringstream &input_line, Scene &scene)
continue; continue;
} }
if(!mat) if(!mat)
throw std::runtime_error("OBJ: error in material file, material name not defined"); throw std::runtime_error("OBJ: error in material file, material name not defined ");
if(identifier == "Kd") if(identifier == "Kd")
{ {
if(!(lineStream >> mat->color.x >> mat->color.y >> mat->color.z)) if(!(lineStream >> mat->color.x >> mat->color.y >> mat->color.z))