218 lines
3.3 KiB
Plaintext
218 lines
3.3 KiB
Plaintext
|
# config
|
||
|
window_name Ray Tracing Refraction Demo 1
|
||
|
window_size 1024 512
|
||
|
pixel_shader_path shaders/ray_tracing/RayTracing.compute
|
||
|
|
||
|
# shader data
|
||
|
reflections 18
|
||
|
samples 1
|
||
|
camera_position 60 20 -60
|
||
|
camera_rotation -10 45 0
|
||
|
sensitivity 10
|
||
|
fov 40
|
||
|
|
||
|
# textures
|
||
|
texture_sky_path assets/textures/kiara_1_dawn_4k.hdr
|
||
|
texture_2_path assets/textures/grid.jpg
|
||
|
|
||
|
# imported models
|
||
|
object_0 assets/objects/fox/fox.obj
|
||
|
object_1 assets/objects/plane.obj
|
||
|
object_2 assets/objects/cube.obj
|
||
|
object_3 assets/objects/disco.obj
|
||
|
|
||
|
# transparent cube 1
|
||
|
model
|
||
|
obj_id 2
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 0 0 22.5
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 0.9 0.9 0.9
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.2
|
||
|
transparency 1
|
||
|
type 2
|
||
|
|
||
|
# transparent cube 2
|
||
|
model
|
||
|
obj_id 2
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position -22.5 0 22.5
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 0.7 0.7 0.7
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.4
|
||
|
transparency 0.99
|
||
|
type 2
|
||
|
|
||
|
# transparent cube 3
|
||
|
model
|
||
|
obj_id 2
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 22.5 0 22.5
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 0.8 0.8 0.8
|
||
|
emission 0 0 0
|
||
|
smoothness 0.95
|
||
|
refractive_index 1.1
|
||
|
transparency 0.99
|
||
|
type 2
|
||
|
|
||
|
# transparent sphere
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 0 5 0
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 1 1 1
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.1
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# transparent sphere
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position -15 5 0
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 1 1 1
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.2
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# transparent sphere
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position -30 5 0
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 1 1 1
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.3
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# transparent sphere
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 15 5 0
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 1 1 1
|
||
|
emission 0 0 0
|
||
|
smoothness 0.95
|
||
|
refractive_index 1.5
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# transparent sphere
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 30 5 0
|
||
|
rotation 0 90 0
|
||
|
size 5 5 5
|
||
|
albedo 0 0 0
|
||
|
specular 1 1 1
|
||
|
emission 0 0 0
|
||
|
smoothness 0.5
|
||
|
refractive_index 1.5
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# transparent cube in
|
||
|
model
|
||
|
obj_id 2
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 0 0 -30
|
||
|
rotation 0 0 0
|
||
|
size 10 10 10
|
||
|
albedo 0 0 0
|
||
|
specular 0.8 0.8 0.8
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.1
|
||
|
transparency 0.99
|
||
|
type 2
|
||
|
|
||
|
# transparent cube in
|
||
|
model
|
||
|
obj_id 2
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 0 2 -30
|
||
|
rotation 0 0 0
|
||
|
size 8 8 8
|
||
|
albedo 0 0 0
|
||
|
specular 0.8 0.8 0.8
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.3
|
||
|
transparency 0.99
|
||
|
type 2
|
||
|
|
||
|
# transparent sphere in cube
|
||
|
model
|
||
|
texture_albedo 0
|
||
|
texture_specular 0
|
||
|
texture_emission 0
|
||
|
position 0 9.5 -30
|
||
|
rotation 0 0 0
|
||
|
size 3 3 3
|
||
|
albedo 0 0 0
|
||
|
specular 0.8 0.8 0.8
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|
||
|
refractive_index 1.4
|
||
|
transparency 0.99
|
||
|
type sphere
|
||
|
|
||
|
# plane
|
||
|
model
|
||
|
obj_id 1
|
||
|
texture_albedo 2
|
||
|
texture_specular 2
|
||
|
texture_emission 0
|
||
|
position -50 0 0
|
||
|
rotation 0 0 90
|
||
|
size 1 50 50
|
||
|
albedo 1 1 1
|
||
|
specular 0.1 0.1 0.1
|
||
|
emission 0 0 0
|
||
|
smoothness 1
|