Skip to content

Commit

Permalink
Loading states
Browse files Browse the repository at this point in the history
adeira-source-id: 75073e730091b6245b06205d4a3dbfa711ac1919
  • Loading branch information
itsdouges authored and triplex-bot committed Oct 26, 2023
1 parent 9744b64 commit 8f0b518
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changeset/seven-socks-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@triplex/editor": patch
"@triplex/electron": patch
---

Editor now shows a loading screen prior to the project being successfully
loaded.
12 changes: 4 additions & 8 deletions examples/geometry/src/breakfast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ export function Frypan({
position={position}
rotation={rotation}
>
<Clone
castShadow
object={nodes.frypan}
position={[2.326_120_867_996_49, 0, 0.337_704_964_306_508]}
receiveShadow
>
<Clone castShadow object={nodes.frypan} receiveShadow>
<meshStandardMaterial map={materials["lambert6SG"].map} />
</Clone>
</RigidBody>
Expand Down Expand Up @@ -386,6 +381,7 @@ export function Breakfast() {
</group>
<pointLight
castShadow={true}
intensity={50}
position={[
-4.101_842_057_534_756, 5.508_838_681_006_239,
-0.516_666_266_100_172_2,
Expand All @@ -396,15 +392,15 @@ export function Breakfast() {
<pointLight
castShadow={true}
color={undefined}
intensity={0.2}
intensity={20}
position={[
-1.281_323_266_732_092_6, 2.613_904_657_900_211_4,
-5.815_240_373_544_561,
]}
/>
<pointLight
castShadow={true}
intensity={0.5}
intensity={30}
position={[
4.543_368_511_890_467, 3.295_888_814_429_723_4,
1.927_909_503_058_799_4,
Expand Down

0 comments on commit 8f0b518

Please sign in to comment.