1
0
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:
Kevin Levron 2021-03-03 20:51:07 +01:00
parent b086889053
commit 7960dfd152
3 changed files with 16 additions and 0 deletions

View File

@ -9,11 +9,17 @@
<script>
import { Object3D } from 'three';
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 AnimatedPlane from './AnimatedPlane.js';
import useTextures from '../../use/useTextures';
export default {
components: { Camera, Renderer, Scene },
props: {
images: Array,
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },

View File

@ -8,11 +8,17 @@
<script>
import { Vector2 } from 'three';
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 ZoomBlurImage from './ZoomBlurImage.js';
import useTextures from '../../use/useTextures.js';
export default {
components: { OrthographicCamera, Renderer, Scene },
props: {
images: Array,
events: { type: Object, default: () => { return { wheel: true, click: true, keyup: true }; } },

View File

@ -9,8 +9,12 @@
<script>
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 {
components: { Camera, Renderer, Scene },
props: {
src: String,
cameraPosition: Object,