summaryrefslogtreecommitdiff
path: root/src/SomhairlesDream.Frontend/Bindings.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 23:52:23 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 23:52:23 +0800
commit027025e4af3217bd1e026f614f47a1c92fcbd8b9 (patch)
tree9b1247fc4938e5c7f8159ccebc6a4efaafbc6d63 /src/SomhairlesDream.Frontend/Bindings.fs
parent5d73943e584b1c0c0753dda85fbda34d27726986 (diff)
downloadsomhairles-dream-fsharp-027025e4af3217bd1e026f614f47a1c92fcbd8b9.tar.gz
feat(viewer): starfield backdrop for deep-space context
Diffstat (limited to 'src/SomhairlesDream.Frontend/Bindings.fs')
-rw-r--r--src/SomhairlesDream.Frontend/Bindings.fs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SomhairlesDream.Frontend/Bindings.fs b/src/SomhairlesDream.Frontend/Bindings.fs
index 05d8e95..df94777 100644
--- a/src/SomhairlesDream.Frontend/Bindings.fs
+++ b/src/SomhairlesDream.Frontend/Bindings.fs
@@ -59,6 +59,12 @@ type ServerEvent =
type GLTFScene =
abstract scene: ThreeNode with get
+[<Emit("new THREE.PointsMaterial({ color: $0, size: $1, sizeAttenuation: true, transparent: true, opacity: $2, depthWrite: false })")>]
+let createPointsMaterial (color: string) (size: float) (opacity: float) : obj = jsNative
+
+[<Emit("new THREE.Points($0, $1)")>]
+let createPoints (geometry: obj) (material: obj) : ThreeNode = jsNative
+
[<Emit("new DRACOLoader()")>]
let createDRACOLoader () : obj = jsNative