aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/illuminate/optional/reflection
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-12-07 16:23:20 -0500
committersotech117 <michael_foiani@brown.edu>2023-12-07 16:23:20 -0500
commitcaa765bff49d54217b75aaf0e7acf4e5392a11e4 (patch)
tree9b92914dfb88b99599e8e60e4512e9e9ea9a25db /scenefiles/illuminate/optional/reflection
parenta9274459443f1d560d7580a162deb581549980cb (diff)
upload base code
Diffstat (limited to 'scenefiles/illuminate/optional/reflection')
-rw-r--r--scenefiles/illuminate/optional/reflection/test_reflectiveness.json77
1 files changed, 77 insertions, 0 deletions
diff --git a/scenefiles/illuminate/optional/reflection/test_reflectiveness.json b/scenefiles/illuminate/optional/reflection/test_reflectiveness.json
new file mode 100644
index 0000000..358d50a
--- /dev/null
+++ b/scenefiles/illuminate/optional/reflection/test_reflectiveness.json
@@ -0,0 +1,77 @@
+{
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [5, 1, 5],
+ "up": [0, 1, 0],
+ "heightAngle": 30,
+ "look": [-1, 0, -1]
+ },
+ "groups": [
+ {
+ "name": "Lights",
+ "lights": [
+ {
+ "color": [1, 0, 0],
+ "type": "directional",
+ "direction": [0, -0.2, -1]
+ },
+ {
+ "color": [0, 1, 0],
+ "type": "directional",
+ "direction": [0, -0.2, 1]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [-1, -0.2, 0]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [1, -0.2, 0]
+ }
+ ]
+ },
+ {
+ "name": "Mirror",
+ "scale": [0.1, 3, 4],
+ "primitives": [
+ {
+ "type": "cube",
+ "reflective": [0.2, 0.2, 0.2],
+ "ambient": [0.68, 0.85, 0.9],
+ "diffuse": [0.8, 0.8, 0.8]
+ }
+ ]
+ },
+ {
+ "name": "Sphere",
+ "translate": [1.5, 0, -1.5],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [1, 0, 0],
+ "diffuse": [0, 0, 0],
+ "shininess": 30,
+ "specular": [1, 1, 1]
+ }
+ ]
+ },
+ {
+ "name": "Table",
+ "translate": [0, -0.75, 0],
+ "scale": [10, 0.5, 10],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0, 0.2, 0.13]
+ }
+ ]
+ }
+ ]
+}