+ | 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