mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
local comp registering
This commit is contained in:
parent
b086889053
commit
7960dfd152
@ -9,11 +9,17 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Object3D } from 'three';
|
import { Object3D } from 'three';
|
||||||
import { gsap, Power4 } from 'gsap';
|
import { gsap, Power4 } from 'gsap';
|
||||||
|
|
||||||
|
import Camera from '../../core/PerspectiveCamera.js';
|
||||||
|
import Renderer from '../../core/Renderer.js';
|
||||||
|
import Scene from '../../core/Scene.js';
|
||||||
|
|
||||||
import { lerp } from '../../tools.js';
|
import { lerp } from '../../tools.js';
|
||||||
import AnimatedPlane from './AnimatedPlane.js';
|
import AnimatedPlane from './AnimatedPlane.js';
|
||||||
import useTextures from '../../use/useTextures';
|
import useTextures from '../../use/useTextures';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { Camera, Renderer, Scene },
|
||||||
props: {
|
props: {
|
||||||
images: Array,
|
images: Array,
|
||||||
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },
|
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },
|
||||||
|
@ -8,11 +8,17 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Vector2 } from 'three';
|
import { Vector2 } from 'three';
|
||||||
import { gsap, Power4 } from 'gsap';
|
import { gsap, Power4 } from 'gsap';
|
||||||
|
|
||||||
|
import OrthographicCamera from '../../core/OrthographicCamera.js';
|
||||||
|
import Renderer from '../../core/Renderer.js';
|
||||||
|
import Scene from '../../core/Scene.js';
|
||||||
|
|
||||||
import { lerp, lerpv2 } from '../../tools.js';
|
import { lerp, lerpv2 } from '../../tools.js';
|
||||||
import ZoomBlurImage from './ZoomBlurImage.js';
|
import ZoomBlurImage from './ZoomBlurImage.js';
|
||||||
import useTextures from '../../use/useTextures.js';
|
import useTextures from '../../use/useTextures.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { OrthographicCamera, Renderer, Scene },
|
||||||
props: {
|
props: {
|
||||||
images: Array,
|
images: Array,
|
||||||
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },
|
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },
|
||||||
|
@ -9,8 +9,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
||||||
|
import Camera from '../../core/PerspectiveCamera.js';
|
||||||
|
import Renderer from '../../core/Renderer.js';
|
||||||
|
import Scene from '../../core/Scene.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: { Camera, Renderer, Scene },
|
||||||
props: {
|
props: {
|
||||||
src: String,
|
src: String,
|
||||||
cameraPosition: Object,
|
cameraPosition: Object,
|
||||||
|
Loading…
Reference in New Issue
Block a user