-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
980 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
--- | ||
title: InstancedSpriteMesh | ||
description: Parallax Occlusion material for three.js | ||
description: InstancedSpriteMesh | ||
--- | ||
|
||
import { Image } from "astro:assets"; | ||
|
||
|
||
### InstancedSpriteMesh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
<script lang="ts"> | ||
import App from '$lib/components/App.svelte'; | ||
<script> | ||
export const ssr = false; | ||
</script> | ||
|
||
<div> | ||
<App> | ||
<slot /> | ||
</App> | ||
</div> | ||
|
||
<style> | ||
:global(body) { | ||
margin: 0; | ||
} | ||
div { | ||
width: 100vw; | ||
height: 100vh; | ||
background: rgb(13, 19, 32); | ||
background: linear-gradient(180deg, rgba(13, 19, 32, 1) 0%, rgba(8, 12, 21, 1) 100%); | ||
} | ||
</style> | ||
<slot /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
<script lang="ts"> | ||
<script> | ||
import GlintScene from '$lib/glint/GlintScene.svelte'; | ||
import App from '$lib/components/App.svelte'; | ||
</script> | ||
|
||
<GlintScene /> | ||
<div> | ||
<App> | ||
<GlintScene /> | ||
</App> | ||
</div> | ||
|
||
<style> | ||
:global(body) { | ||
margin: 0; | ||
} | ||
div { | ||
width: 100vw; | ||
height: 100vh; | ||
background: rgb(13, 19, 32); | ||
background: linear-gradient(180deg, rgba(13, 19, 32, 1) 0%, rgba(8, 12, 21, 1) 100%); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
<script> | ||
import Scene from './Scene.svelte'; | ||
import App from '$lib/components/App.svelte'; | ||
</script> | ||
|
||
<Scene /> | ||
<div> | ||
<App> | ||
<Scene /> | ||
</App> | ||
</div> | ||
|
||
<style> | ||
:global(body) { | ||
margin: 0; | ||
} | ||
div { | ||
width: 100vw; | ||
height: 100vh; | ||
background: rgb(13, 19, 32); | ||
background: linear-gradient(180deg, rgba(13, 19, 32, 1) 0%, rgba(8, 12, 21, 1) 100%); | ||
} | ||
</style> |
8 changes: 8 additions & 0 deletions
8
apps/playground/src/routes/instanced-sprite/vanilla/+page.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script> | ||
import { onMount } from 'svelte'; | ||
import { start } from './instancedSprite'; | ||
onMount(() => { | ||
start(); | ||
}); | ||
</script> |
Oops, something went wrong.
8736dd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
threejs-kit-playground – ./apps/playground
threejs-kit-playground-git-main-jerzakm.vercel.app
threejs-kit-playground-jerzakm.vercel.app
threejs-kit-playground.vercel.app