From fe440958dc5c8758d57003ca3653c58d471efd5f Mon Sep 17 00:00:00 2001 From: TheRedShip Date: Tue, 7 Jan 2025 22:26:44 +0100 Subject: [PATCH] ~ | Better portal map --- scenes/test.rt | 9 ++++++++- shaders/compute.glsl | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scenes/test.rt b/scenes/test.rt index 8594eaa..4714289 100644 --- a/scenes/test.rt +++ b/scenes/test.rt @@ -8,12 +8,19 @@ MAT 255 255 255 2.0 0.0 0.0 //sun MAT 255 100 100 0.0 0.0 0.0 //red MAT 100 100 255 0.0 0.0 0.0 //blue +MAT 100 255 100 0.0 0.0 0.0 //green +MAT 255 255 100 0.0 0.0 0.0 //yellow + pl 0 0 0 0 1 0 0 cu 1 0.5 3 1 1 1 3 cu 1 0.5 -3 1 1 1 4 po 3 1 0 0 2 0 2 0 0 0 3 -po -3 1 0 0 2 0 2 0 2 1 4 +po 3 1 3 0 2 0 2 0 0 1 4 + +# po 6 1 0 0 2 0 2 0 0 0 3 +# po 6 1 0 0 2 0 2 0 0 1 4 + sp 0 30 0 30 2 diff --git a/shaders/compute.glsl b/shaders/compute.glsl index dc889e3..897e921 100644 --- a/shaders/compute.glsl +++ b/shaders/compute.glsl @@ -90,7 +90,7 @@ hitInfo traceRay(Ray ray) { hitInfo hit; - for (int p = 0; p < 2; p++) //portals + for (int p = 0; p < 10; p++) //portals { hit.t = 1e30; hit.obj_index = -1;