From aa47b54e4c4ca02514e642032d68bbbb9c3a4a7d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 29 Mar 2020 19:44:12 +0200 Subject: [PATCH] examples: move OBJ-related files to subdirectory --- pathtracer/examples/cornell-box.yaml | 4 +++- pathtracer/examples/{ => objs}/cornell-box.mtl | 0 pathtracer/examples/{ => objs}/cornell-box.obj | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename pathtracer/examples/{ => objs}/cornell-box.mtl (100%) rename pathtracer/examples/{ => objs}/cornell-box.obj (100%) diff --git a/pathtracer/examples/cornell-box.yaml b/pathtracer/examples/cornell-box.yaml index ffcda34..d6fa9bb 100644 --- a/pathtracer/examples/cornell-box.yaml +++ b/pathtracer/examples/cornell-box.yaml @@ -17,6 +17,8 @@ lights: color: {r: 1.0, g: 1.0, b: 1.0} meshes: - - obj_file: "pathtracer/examples/cornell-box.obj" + # FIXME: make the path relative to the YAML in some way? + # Easiest solution would be to chdir to the YAML's directory + - obj_file: "pathtracer/examples/objs/cornell-box.obj" translation: [0.0, 0.0, 1.0] rotation: [0, 180, 0] diff --git a/pathtracer/examples/cornell-box.mtl b/pathtracer/examples/objs/cornell-box.mtl similarity index 100% rename from pathtracer/examples/cornell-box.mtl rename to pathtracer/examples/objs/cornell-box.mtl diff --git a/pathtracer/examples/cornell-box.obj b/pathtracer/examples/objs/cornell-box.obj similarity index 100% rename from pathtracer/examples/cornell-box.obj rename to pathtracer/examples/objs/cornell-box.obj