feat: centralize all screen related callbacks in useScreen
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
const store = useContactStore();
|
||||
const { onRender } = useScreen();
|
||||
|
||||
const store = useContactStore();
|
||||
const { assets } = useAssets();
|
||||
|
||||
useRender((ctx) => {
|
||||
onRender((ctx) => {
|
||||
ctx.globalAlpha = store.isIntro
|
||||
? store.intro.stage1Opacity
|
||||
: store.outro.stage2Opacity;
|
||||
|
||||
Reference in New Issue
Block a user