user preferences via API

This commit is contained in:
STEINNI
2025-10-07 19:57:58 +00:00
parent d5940e2f08
commit db3d10539a
7 changed files with 79 additions and 65 deletions
+15
View File
@@ -2,6 +2,7 @@
"molecule1": {
"type": "Mesh",
"geometry": { "type": "BoxGeometry", "args": [1, 1, 1] },
"position": [0, 0.5, 0],
"material": { "type": "MeshStandardMaterial", "color": "orange" },
"children": [
{
@@ -10,6 +11,20 @@
"geometry": { "type": "SphereGeometry", "args": [0.3, 16, 16] },
"material": { "type": "MeshStandardMaterial", "color": "blue" },
"position": [0, 0.5, 0]
},
{
"type": "Mesh",
"childSuffix": "head",
"geometry": { "type": "CylinderGeometry", "args": [1, 1, 0.5] },
"material": { "type": "MeshBasicMaterial",
"color": "0x9090F0",
"transparent": true,
"opacity": 0.3,
"blending": "AdditiveBlending",
"side": "BackSide"
},
"scale": [1.5, 2, 1],
"position": [0, 0, 0]
}
]
},