Skip to content

Commit

Permalink
feat: on-demand sky
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jun 17, 2024
1 parent adc0ea8 commit 5f0fe94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/staging/Sky.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<script setup lang="ts">
// eslint-disable-file vue/attribute-hyphenation
import { MathUtils, Vector3 } from 'three'
import { Sky as SkyImpl } from 'three/examples/jsm/objects/Sky'
import { Sky as SkyImpl } from 'three-stdlib'
import { computed, shallowRef } from 'vue'
import { useOnDemandInvalidation } from '../../composables/useOnDemandInvalidation'
export interface SkyProps {
/**
Expand Down Expand Up @@ -46,6 +47,8 @@ const props = withDefaults(defineProps<SkyProps>(), {
distance: 450000,
})
useOnDemandInvalidation(props)
const skyRef = shallowRef<SkyImpl>()
const skyImpl = new SkyImpl()
const sunPosition = computed(() =>
Expand Down

0 comments on commit 5f0fe94

Please sign in to comment.