Skip to content

Commit

Permalink
i don't know
Browse files Browse the repository at this point in the history
  • Loading branch information
wellcaffeinated committed Apr 3, 2024
1 parent 229920a commit 9a0c1e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/entities/Sky.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,21 @@
visible={$skyVisible}
renderOrder={2}
>
<T.PlaneGeometry args={[6, 6]} />
<!-- <T.PlaneGeometry args={[6, 6]} /> -->
<T.CircleGeometry args={[3, 32]} />
<!-- <T.MeshBasicMaterial color={0xff0000} /> -->
<T is={Sky.shader} />
</T.Mesh>
{:else}
<T.Mesh
visible={$skyVisible}
scale.x={1e11}
scale.y={1e11}
scale.z={1e11}
renderOrder={2}
>
<T.IcosahedronGeometry args={[1e11, 32]} />
<!-- <T.SphereGeometry args={[1, 32]} /> -->
<T.IcosahedronGeometry args={[1, 32]} />
<T is={Sky.shader} />
</T.Mesh>
{/if}
2 changes: 1 addition & 1 deletion src/store/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const sphereIntersection = (origin, ray, radius) => {
return x0 < x1 ? [x0, x1] : [x1, x0]
}

export const skyScale = writable(1)
export const skyScale = writable(0)
export const showTutorial = writable(false)
export const showHelp = writable(false)
export const hasLoaded = writable(false)
Expand Down

0 comments on commit 9a0c1e7

Please sign in to comment.