ft: texture loading err handling
now uses a default placeholder texture + colour source
This commit is contained in:
1 parent
5c6bf98f3e
commit
f1f0bee4cf
6 files changed
+83
-55
No files matched your search
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"filename": "lowDef.png",
|
||||
"image_width": 1920,
|
||||
"image_height": 1080,
|
||||
"max_depth": 50,
|
||||
"camera": {
|
||||
"anti_alias_rate": 7,
|
||||
"fov": 20.0,
|
||||
"look_from": [10, 5, 10],
|
||||
"look_at": [0.0, 0.0, -1.0],
|
||||
"vup": [0.0, 1.0, 0.0],
|
||||
"defocus_angle": 0,
|
||||
"focus_dist": 15.68
|
||||
},
|
||||
"materials": [
|
||||
{ "type": "metal", "colour": "./balls", "prob": 1.0, "fuzz": 0.1},
|
||||
{ "type": "metal", "colour": "./balls", "prob": 1.0, "fuzz": 0.1},
|
||||
{ "type": "lambertian", "colour": "balls", "prob": 1.0},
|
||||
{ "type": "metal", "colour": "./balls", "prob": 1.0, "fuzz": 0.1},
|
||||
{ "type": "dielectric", "colour": "balls", "refraction_index": 1.5},
|
||||
{ "type": "dielectric", "colour": "balls", "refraction_index": 1.5},
|
||||
{ "type": "dielectric", "colour": "balls", "refraction_index": 1.5}
|
||||
|
||||
],
|
||||
"objects": [
|
||||
{ "type": "sphere", "center": [0, 0.7, -0.4], "radius": 0.2, "material": 0},
|
||||
{ "type": "sphere", "center": [0.0, 0.5, -0.8], "radius": 0.1, "material": 1},
|
||||
{ "type": "sphere", "center": [0.0, -100.5, -1.0], "radius": 100.0, "material": 2},
|
||||
{ "type": "sphere", "center": [0.0, 0.0, -1.2], "radius": 0.5, "material": 3},
|
||||
{ "type": "sphere", "center": [-1, 0, -1], "radius": 0.4, "material": 5},
|
||||
{ "type": "sphere", "center": [1, 0, -1], "radius": 0.5, "material": 6},
|
||||
{ "type": "sphere", "center": [20, 7, -15], "radius": 10.5, "material": 0}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||