aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bottone <nick@bottone.io>2023-12-12 22:42:23 -0500
committerNicholas Bottone <nick@bottone.io>2023-12-12 22:42:23 -0500
commit7382a6f7c01b71d08e6482707f34639820333f43 (patch)
treebf6984c92ab3eaa21fec46a289296f143f2d1176
parent7ee442a06af880c13d060d5d5f2257b12f036ab7 (diff)
Add gravity, look, and over properties to cameraData and velocity property to groups
-rw-r--r--scenefiles-4d/five_shapes.json22
-rw-r--r--scenefiles-4d/unit_sphere.json3
2 files changed, 17 insertions, 8 deletions
diff --git a/scenefiles-4d/five_shapes.json b/scenefiles-4d/five_shapes.json
index 7e250e4..d198d5d 100644
--- a/scenefiles-4d/five_shapes.json
+++ b/scenefiles-4d/five_shapes.json
@@ -4,13 +4,16 @@
"ambientCoeff": 0.5,
"diffuseCoeff": 0.5,
"specularCoeff": 0.5,
- "transparentCoeff": 0
+ "transparentCoeff": 0,
+ "gravity": [0.0, -0.0098, 0.0, 0.0]
},
"cameraData": {
"position": [0.0, 0.0, 5.0, 6.5],
"up": [0.0, 1.0, 0.0, 0.0],
"heightAngle": 50.0,
- "focus": [0.0, 0.0, 0.0, 0.0]
+ "focus": [0.0, 0.0, 0.0, 0.0],
+ "look": [0.0, 0.0, 0.0, 0.0],
+ "over": [0.0, 1.0, 0.0, 0.0]
},
"groups": [
{
@@ -33,7 +36,8 @@
"ambient": [0.0, 0.5, 0.0],
"diffuse": [0.0, 1.0, 0.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 30.0
+ "shininess": 30.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
},
@@ -50,7 +54,8 @@
"ambient": [0.0, 0.5, 0.5],
"diffuse": [0.0, 1.0, 1.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 30.0
+ "shininess": 30.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
},
@@ -63,7 +68,8 @@
"ambient": [0.5, 0.5, 0.0],
"diffuse": [1.0, 1.0, 0.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 30.0
+ "shininess": 30.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
},
@@ -76,7 +82,8 @@
"ambient": [0.5, 0.0, 0.5],
"diffuse": [1.0, 0.0, 1.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 30.0
+ "shininess": 30.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
},
@@ -89,7 +96,8 @@
"ambient": [0.5, 0.5, 0.5],
"diffuse": [1.0, 1.0, 1.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 30.0
+ "shininess": 30.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
}
diff --git a/scenefiles-4d/unit_sphere.json b/scenefiles-4d/unit_sphere.json
index f86ee09..500b8fc 100644
--- a/scenefiles-4d/unit_sphere.json
+++ b/scenefiles-4d/unit_sphere.json
@@ -36,7 +36,8 @@
"type": "sphere",
"diffuse": [1.0, 0.0, 0.0],
"specular": [1.0, 1.0, 1.0],
- "shininess": 25.0
+ "shininess": 25.0,
+ "velocity": [0.0, 0.0, 0.0, 0.0]
}
]
}