-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): v-if working on custom renderer
- Loading branch information
1 parent
d480b36
commit e19da3a
Showing
7 changed files
with
184 additions
and
65 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const gridVisible = ref(false) | ||
setTimeout(() => { | ||
gridVisible.value = true | ||
}, 4000) | ||
</script> | ||
<template> | ||
<TresPerspectiveCamera :args="[75, 1, 0.1, 1000]" :position="[0, 2, 7]"></TresPerspectiveCamera> | ||
<TresAmbientLight :color="0xffffff" :intensity="0.75" /> | ||
<TresDirectionalLight :color="0xffffff" :intensity="2" :position="[-2, 2, 0]" /> | ||
<TresMesh :position="[0, 1, 0]"> | ||
<TresSphereGeometry :args="[1, 32, 16]"></TresSphereGeometry> | ||
<TresMeshToonMaterial color="teal"></TresMeshToonMaterial> | ||
</TresMesh> | ||
<TresGridHelper v-if="gridVisible" :args="[4, 4]"></TresGridHelper> | ||
</template> |
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
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ import './style.css' | |
export const app = createApp(App) | ||
|
||
app.mount('#app') | ||
|
||
console.log(app) |
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