~ | Better portal map

This commit is contained in:
TheRedShip
2025-01-07 22:26:44 +01:00
parent b3e2a0ed34
commit fe440958dc
2 changed files with 9 additions and 2 deletions

View File

@ -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 255 100 100 0.0 0.0 0.0 //red
MAT 100 100 255 0.0 0.0 0.0 //blue 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 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 3
cu 1 0.5 -3 1 1 1 4 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 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 sp 0 30 0 30 2

View File

@ -90,7 +90,7 @@ hitInfo traceRay(Ray ray)
{ {
hitInfo hit; hitInfo hit;
for (int p = 0; p < 2; p++) //portals for (int p = 0; p < 10; p++) //portals
{ {
hit.t = 1e30; hit.t = 1e30;
hit.obj_index = -1; hit.obj_index = -1;