mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | map changing
This commit is contained in:
27
scenes/cornell.rt
Normal file
27
scenes/cornell.rt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
MAT 255 255 255 0.0 0.0 0.0
|
||||||
|
MAT 255 255 255 5.0 0.0 0.0
|
||||||
|
|
||||||
|
MAT 255 100 100 0.0 0.0 0.0
|
||||||
|
MAT 100 100 255 0.0 0.0 0.0
|
||||||
|
MAT 100 255 100 0.0 0.0 0.0
|
||||||
|
|
||||||
|
MAT 255 255 255 0.0 0.98 0.0
|
||||||
|
|
||||||
|
sp 0 -1 0 1 5
|
||||||
|
|
||||||
|
sp 0 -2 -1 2 2
|
||||||
|
sp -1 -2 0.8 2 3
|
||||||
|
sp 1 -2 0.8 2 4
|
||||||
|
|
||||||
|
qu -1 2.9 -1 2 0 0 0 0 2 1
|
||||||
|
|
||||||
|
pl 0 3 0 0 -1 0 5
|
||||||
|
pl 0 -3 0 0 1 0 5
|
||||||
|
pl 3 0 0 -1 0 0 3
|
||||||
|
pl -3 0 0 1 0 0 2
|
||||||
|
pl 0 0 -3 0 0 1 0
|
||||||
|
pl 0 0 3 0 0 -1 0
|
||||||
|
|
||||||
|
|
||||||
|
R 1.0 -2.0 10
|
@ -1,27 +1,10 @@
|
|||||||
|
MAT 255 255 255 0.0 0.0 0.0 //white
|
||||||
MAT 255 255 255 0.0 0.0 0.0
|
MAT 255 100 100 0.0 0.0 0.0 //red
|
||||||
MAT 255 255 255 5.0 0.0 0.0
|
MAT 255 255 255 5.0 0.0 0.0 //sun
|
||||||
|
|
||||||
MAT 255 100 100 0.0 0.0 0.0
|
|
||||||
MAT 100 100 255 0.0 0.0 0.0
|
|
||||||
MAT 100 255 100 0.0 0.0 0.0
|
|
||||||
|
|
||||||
MAT 255 255 255 0.0 1.0 0.0
|
|
||||||
|
|
||||||
sp 0 -1 0 1 5
|
|
||||||
|
|
||||||
sp 0 -2 -1 2 2
|
|
||||||
sp -1 -2 0.8 2 3
|
|
||||||
sp 1 -2 0.8 2 4
|
|
||||||
|
|
||||||
qu -1.5 2.9 -1.5 3 0 0 0 0 3 1
|
|
||||||
|
|
||||||
pl 0 3 0 0 -1 0 5
|
|
||||||
pl 0 -3 0 0 1 0 0
|
|
||||||
pl 3 0 0 -1 0 0 3
|
|
||||||
pl -3 0 0 1 0 0 2
|
|
||||||
pl 0 0 -3 0 0 1 0
|
|
||||||
pl 0 0 3 0 0 -1 0
|
|
||||||
|
|
||||||
|
|
||||||
R 1.0 -2.0 10
|
pl 0 -1 0 0 1 0 0
|
||||||
|
|
||||||
|
cu 0 1 -3 1 1 1
|
||||||
|
|
||||||
|
sp 15 30 -30 30 2
|
||||||
|
@ -97,7 +97,7 @@ vec3 pathtrace(Ray ray, vec2 uv)
|
|||||||
|
|
||||||
float closest_t = 1e30;
|
float closest_t = 1e30;
|
||||||
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
hitInfo hit = traceRay(ray);
|
hitInfo hit = traceRay(ray);
|
||||||
if (hit.obj_index == -1)
|
if (hit.obj_index == -1)
|
||||||
|
Reference in New Issue
Block a user