From 7ee442a06af880c13d060d5d5f2257b12f036ab7 Mon Sep 17 00:00:00 2001 From: Nicholas Bottone Date: Tue, 12 Dec 2023 22:36:31 -0500 Subject: Add unit sphere --- scenefiles-4d/unit_sphere.json | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 scenefiles-4d/unit_sphere.json diff --git a/scenefiles-4d/unit_sphere.json b/scenefiles-4d/unit_sphere.json new file mode 100644 index 0000000..f86ee09 --- /dev/null +++ b/scenefiles-4d/unit_sphere.json @@ -0,0 +1,46 @@ +{ + "name": "root", + "globalData": { + "ambientCoeff": 0.5, + "diffuseCoeff": 0.5, + "specularCoeff": 0.5, + "transparentCoeff": 0, + "gravity": [0.0, -0.0098, 0.0, 0.0] + }, + "cameraData": { + "position": [3.0, 3.0, 3.0, 1.0], + "up": [0.0, 1.0, 0.0, 0.0], + "heightAngle": 30.0, + "depthAngle": 30.0, + "focus": [0.0, 0.0, 0.0, 0.0], + "over": [0.0, 1.0, 0.0, 0.0] + }, + "groups": [ + { + "lights": [ + { + "type": "directional", + "color": [1.0, 1.0, 1.0], + "direction": [-3.0, -2.0, -1.0, 0.0] + } + ] + }, + { + "groups": [ + { + "translate": [0.0, 0.0, 0.0, 0.0], + "rotate": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], + "scale": [1.0, 1.0, 1.0, 1.0], + "primitives": [ + { + "type": "sphere", + "diffuse": [1.0, 0.0, 0.0], + "specular": [1.0, 1.0, 1.0], + "shininess": 25.0 + } + ] + } + ] + } + ] +} -- cgit v1.2.3-70-g09d2