Skip to content

Commit

Permalink
Remote module plugin
Browse files Browse the repository at this point in the history
adeira-source-id: 26bd068bbb62af61cd1f104caa3c207867c89e9d
  • Loading branch information
itsdouges authored and triplex-bot committed Oct 24, 2023
1 parent c3be31a commit 29613eb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-walls-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@triplex/server": minor
---

Add `onSourceFileChange` api to project.
13 changes: 13 additions & 0 deletions .changeset/twenty-parrots-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@triplex/client": minor
"@triplex/editor": minor
"@triplex/server": minor
"@triplex/scene": minor
"@triplex/electron": minor
---

Scene modules are now loaded remotely instead of from the fs. This is going to
raise the ceiling on features we can implement as now everything becomes a
mutation to the remote source instead of that AND also trying to handle the
intermediate state in the scene prior to it being flushed to the fs. Super
excited about this.
2 changes: 1 addition & 1 deletion .changeset/wicked-eagles-hide.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@triplex/ws-client": patch
"@triplex/ws": patch
"@triplex/bridge": patch
"@triplex/client": patch
"@triplex/editor": patch
Expand Down
2 changes: 1 addition & 1 deletion .tsconfig/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"display": "Node",
"extends": "./base.json",
"compilerOptions": {
"lib": ["es2022"],
"lib": ["dom", "dom.iterable", "es2022"],
"module": "Node16",
"target": "ES2017",
"resolveJsonModule": true
Expand Down
7 changes: 6 additions & 1 deletion examples/geometry/src/breakfast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export function Frypan({
position={position}
rotation={rotation}
>
<Clone castShadow object={nodes.frypan} receiveShadow>
<Clone
castShadow
object={nodes.frypan}
position={[2.326_120_867_996_49, 0, 0.337_704_964_306_508]}
receiveShadow
>
<meshStandardMaterial map={materials["lambert6SG"].map} />
</Clone>
</RigidBody>
Expand Down

0 comments on commit 29613eb

Please sign in to comment.