diff --git a/includes/RT/objects/Portal.hpp b/includes/RT/objects/Portal.hpp index 0e341b3..cc99de6 100644 --- a/includes/RT/objects/Portal.hpp +++ b/includes/RT/objects/Portal.hpp @@ -6,7 +6,7 @@ /* By: ycontre +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/12/23 19:12:51 by ycontre #+# #+# */ -/* Updated: 2025/01/13 18:44:40 by ycontre ### ########.fr */ +/* Updated: 2025/02/06 18:09:03 by ycontre ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/scenes/lambo.rt b/scenes/lambo.rt index 19c8f89..c07b656 100644 --- a/scenes/lambo.rt +++ b/scenes/lambo.rt @@ -8,7 +8,7 @@ qu -5 5 -5 0 0 10 10 0 0 0 0 MAT 255 100 100 1.0 0.0 0.0 //1 red MAT 100 100 255 1.0 0.0 0.0 //2 blue -po -0.75 1.5 5 0 1.5 0 1.5 0 0 0 2 +po -0.75 1.5 5 0 1.5 0 1.5 0 0 1 2 po -0.75 10 2.4 0 1.5 0 1.5 0 0 0 1 diff --git a/scenes/noneuclidian.rt b/scenes/noneuclidian.rt index 55f68cf..5e7da8c 100644 --- a/scenes/noneuclidian.rt +++ b/scenes/noneuclidian.rt @@ -45,5 +45,5 @@ po -10 1 0 0 3 0 0 0 3 0 1 -po -1 1.5 10 0 1.5 0 1.5 0 0 0 1 -po 1 1.5 10 0 0 1.5 1.5 0 0 0 1 \ No newline at end of file +po 1 1.5 10 1.5 0 0 0 0 1.5 1 1 +po -1 1.5 10 1.5 0 0 0 1.5 0 1 1 \ No newline at end of file diff --git a/shaders/light.glsl b/shaders/light.glsl index 1bf4147..990df9c 100644 --- a/shaders/light.glsl +++ b/shaders/light.glsl @@ -1,4 +1,4 @@ -hitInfo traceRay(Ray ray); +hitInfo traceRay(inout Ray ray); vec3 GetEnvironmentLight(Ray ray) { diff --git a/shaders/trace.glsl b/shaders/trace.glsl index 50067f2..6c365c7 100644 --- a/shaders/trace.glsl +++ b/shaders/trace.glsl @@ -165,7 +165,7 @@ hitInfo traverseBVHs(Ray ray) return (hit); } -hitInfo traceRay(Ray ray) +hitInfo traceRay(inout Ray ray) { hitInfo hitBVH; hitInfo hitScene; diff --git a/srcs/RT.cpp b/srcs/RT.cpp index 5f66716..9021c86 100644 --- a/srcs/RT.cpp +++ b/srcs/RT.cpp @@ -6,7 +6,7 @@ /* By: ycontre +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */ -/* Updated: 2025/02/05 18:44:28 by ycontre ### ########.fr */ +/* Updated: 2025/02/06 18:02:18 by ycontre ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/class/Camera.cpp b/srcs/class/Camera.cpp index 21559cd..f91ae09 100644 --- a/srcs/class/Camera.cpp +++ b/srcs/class/Camera.cpp @@ -6,7 +6,7 @@ /* By: ycontre +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/15 14:00:38 by TheRed #+# #+# */ -/* Updated: 2025/02/06 02:07:47 by tomoron ### ########.fr */ +/* Updated: 2025/02/06 18:02:23 by ycontre ### ########.fr */ /* */ /* ************************************************************************** */