mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | Small fixes
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/12/23 19:12:51 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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -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 255 100 100 1.0 0.0 0.0 //1 red
|
||||||
MAT 100 100 255 1.0 0.0 0.0 //2 blue
|
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
|
po -0.75 10 2.4 0 1.5 0 1.5 0 0 0 1
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 1.5 0 0 0 0 1.5 1 1
|
||||||
po 1 1.5 10 0 0 1.5 1.5 0 0 0 1
|
po -1 1.5 10 1.5 0 0 0 1.5 0 1 1
|
@ -1,4 +1,4 @@
|
|||||||
hitInfo traceRay(Ray ray);
|
hitInfo traceRay(inout Ray ray);
|
||||||
|
|
||||||
vec3 GetEnvironmentLight(Ray ray)
|
vec3 GetEnvironmentLight(Ray ray)
|
||||||
{
|
{
|
||||||
|
@ -165,7 +165,7 @@ hitInfo traverseBVHs(Ray ray)
|
|||||||
return (hit);
|
return (hit);
|
||||||
}
|
}
|
||||||
|
|
||||||
hitInfo traceRay(Ray ray)
|
hitInfo traceRay(inout Ray ray)
|
||||||
{
|
{
|
||||||
hitInfo hitBVH;
|
hitInfo hitBVH;
|
||||||
hitInfo hitScene;
|
hitInfo hitScene;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/27 14:51:49 by TheRed #+# #+# */
|
/* 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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/10/15 14:00:38 by TheRed #+# #+# */
|
/* 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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user