From e32ae2c6b9b8a8878c96456142eb77c958adab80 Mon Sep 17 00:00:00 2001 From: Walther Date: Sun, 22 Dec 2024 02:03:21 +0200 Subject: [PATCH] chore: remove iridescent scene, use material in dragon instead --- scenes/dragon.json | 10 ++++++--- scenes/iridescent.json | 51 ------------------------------------------ 2 files changed, 7 insertions(+), 54 deletions(-) delete mode 100644 scenes/iridescent.json diff --git a/scenes/dragon.json b/scenes/dragon.json index 3cf0a4b8..bf1376de 100644 --- a/scenes/dragon.json +++ b/scenes/dragon.json @@ -18,7 +18,7 @@ "scale": 2500, "center": [-45, -135, -100], "rotation": [0, 200, 0], - "material": "white lambertian" + "material": "iridescent" }, { "kind": "Quad", @@ -55,11 +55,15 @@ } }, { - "name": "white lambertian", + "name": "iridescent", "kind": "Lambertian", "albedo": { "kind": "SolidColor", - "color": [0.8, 0.8, 0.8] + "color": [0.6, 0.6, 0.6] + }, + "thin_film": { + "refraction_index": 1.5, + "thickness": 256.0 } }, { diff --git a/scenes/iridescent.json b/scenes/iridescent.json deleted file mode 100644 index e4713928..00000000 --- a/scenes/iridescent.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "time_0": 0, - "time_1": 1, - "camera": { - "look_from": [30, 20, 10], - "look_at": [0, -1, 0], - "up": [-0.5, 1, -0.5], - "vertical_fov": 40, - "aperture": 0, - "focus_distance": 10 - }, - "background_color": [0, 0, 0], - "objects": [ - { - "kind": "Quad", - "priority": true, - "q": [-100, 80, -100], - "u": [200, 0, 0], - "v": [0, 0, 100], - "material": "lamp" - }, - { - "kind": "Boxy", - "corner_0": [-7, -7, -7], - "corner_1": [7, 7, 7], - "material": "iridescent" - } - ], - "materials": [ - { - "name": "lamp", - "kind": "DiffuseLight", - "emit": { - "kind": "SolidColor", - "color": [2.5, 2.5, 2.5] - } - }, - { - "name": "iridescent", - "kind": "Lambertian", - "albedo": { - "kind": "SolidColor", - "color": [0.8, 0.8, 0.8] - }, - "thin_film": { - "refractive_index": 1.5, - "thickness": 600.0 - } - } - ] -}