From b425f1e7b80f0b95cb9090e60e39d142e08b3707 Mon Sep 17 00:00:00 2001 From: RedShip Date: Mon, 3 Feb 2025 20:25:19 +0100 Subject: [PATCH] ~ | chepa --- shaders/trace.glsl | 2 +- srcs/class/ObjParser.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/trace.glsl b/shaders/trace.glsl index 50067f2..57ef4d8 100644 --- a/shaders/trace.glsl +++ b/shaders/trace.glsl @@ -171,7 +171,7 @@ hitInfo traceRay(Ray ray) hitInfo hitScene; hitInfo hit; - #if 1 + #if 0 for (int i = 0; i < 10; i++) // portal ray { hitBVH = traverseBVHs(ray); diff --git a/srcs/class/ObjParser.cpp b/srcs/class/ObjParser.cpp index 42fe4df..25a882e 100644 --- a/srcs/class/ObjParser.cpp +++ b/srcs/class/ObjParser.cpp @@ -6,7 +6,7 @@ /* By: ycontre +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; } 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(!(lineStream >> mat->color.x >> mat->color.y >> mat->color.z))