dev #43
|
@ -23,7 +23,6 @@ const cameraStat = reactive({
|
|||
})
|
||||
|
||||
const pointLight = ref()
|
||||
const pointLight2 = ref()
|
||||
const loadAll = async () => {
|
||||
const { scene: light } = await useGLTF('/models_light/zabor_so_svetom.glb')
|
||||
pointLight.value = light.children[2]
|
||||
|
@ -35,7 +34,7 @@ const loadAll = async () => {
|
|||
pointLight.value.shadow.mapSize.x = 512 * j
|
||||
pointLight.value.shadow.mapSize.y = 512 * j
|
||||
|
||||
const k = 5
|
||||
const k = 3
|
||||
pointLight.value.position.x = pointLight.value.position.x * k
|
||||
pointLight.value.position.y = pointLight.value.position.y * k
|
||||
pointLight.value.position.z = pointLight.value.position.z * k
|
||||
|
|
|
@ -63,7 +63,7 @@ onMounted(() => {
|
|||
Загрузка 3D модели
|
||||
</div>
|
||||
</template>
|
||||
<TresCanvas height="600" preset="realistic" render-mode="on-demand">
|
||||
<TresCanvas height="600" preset="realistic">
|
||||
<TresPerspectiveCamera :position="[-7, 2, 4]" ref="camera" />
|
||||
<OrbitControls v-bind="controlsState" ref="controls" make-default />
|
||||
<Suspense>
|
||||
|
|
Loading…
Reference in New Issue