+ | Portal matrices reflection

This commit is contained in:
TheRedShip
2025-01-08 12:07:26 +01:00
parent fe440958dc
commit 8e4d844f38
8 changed files with 113 additions and 68 deletions

29
scenes/portalcornell.rt Normal file
View File

@ -0,0 +1,29 @@
CAM 0 2.5 0
MAT 30 30 30 0.0 0.0 0.0 //white
MAT 255 255 255 0.0 1.0 1.0 //mirror
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
MAT 255 255 255 0.0 1.45 0.0 DIE //glass
pl 0 0 0 0 1 0 0
cu 0 0.5 0 1 1 1 1
sp 0 1.5 0 1 1
qu -1 4 -1 2 0 0 0 0 2 2
cu 0 2.5 0 5 5 5 1
po -1 1 -1.5 0 2 0 2 0 0 0 3
po -1 1 1.5 0 2 0 2 0 0 1 4
po -1.5 1 -1 0 2 0 0 0 2 1 5
po 1.5 1 -1 0 2 0 0 0 2 0 6

23
scenes/portalrotation.rt Normal file
View File

@ -0,0 +1,23 @@
MAT 255 255 255 2.0 0.0 0.0 //light
MAT 255 255 255 0.0 0.0 0.0 //white
MAT 255 100 100 0.0 0.0 0.0 //red
MAT 100 255 100 0.0 0.0 0.0 //green
MAT 100 100 255 0.0 0.0 0.0 //blue
MAT 255 255 100 0.0 0.0 0.0 //yellow
MAT 50 50 50 0.0 0.0 0.0 //gray
qu -1 2.5 -1 2 0 0 0 0 2 0
pl 0 3 0 0 -1 0 1
pl 0 -3 0 0 1 0 6
pl 3 0 0 -1 0 0 5
pl -3 0 0 1 0 0 3
pl 0 0 -3 0 0 1 4
pl 0 0 3 0 0 -1 2
po -0.5 -0.5 -1 0 1 0 1 1 0 0 2
po -0.5 -0.5 1 0 1 0 1 0 0 1 4

View File

@ -1,26 +0,0 @@
CAM 0 2 5
MAT 30 30 30 0.0 0.0 0.0 //white
MAT 255 255 255 0.0 1.0 1.0 //mirror
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 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