mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
~ | Better portal map
This commit is contained in:
@ -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
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user