{"version":3,"file":"trois.module.min.js","sources":["../src/core/useThree.js","../src/core/Renderer.js","../src/tools.js","../src/use/useBindProp.js","../src/core/PerspectiveCamera.js","../src/core/Scene.js","../src/core/Texture.js","../src/core/CubeTexture.js","../src/geometries/Geometry.js","../src/geometries/BoxGeometry.js","../src/geometries/CircleGeometry.js","../src/geometries/ConeGeometry.js","../src/geometries/CylinderGeometry.js","../src/geometries/DodecahedronGeometry.js","../src/geometries/IcosahedronGeometry.js","../src/geometries/LatheGeometry.js","../src/geometries/OctahedronGeometry.js","../src/geometries/PolyhedronGeometry.js","../src/geometries/RingGeometry.js","../src/geometries/SphereGeometry.js","../src/geometries/TetrahedronGeometry.js","../src/geometries/TorusGeometry.js","../src/geometries/TorusKnotGeometry.js","../src/geometries/TubeGeometry.js","../src/lights/Light.js","../src/lights/AmbientLight.js","../src/lights/DirectionalLight.js","../src/lights/PointLight.js","../src/lights/SpotLight.js","../src/materials/Material.js","../src/materials/BasicMaterial.js","../src/materials/LambertMaterial.js","../src/materials/PhongMaterial.js","../src/materials/StandardMaterial.js","../src/materials/PhysicalMaterial.js","../src/materials/SubsurfaceScatteringShader.js","../src/materials/SubSurfaceMaterial.js","../src/materials/ShaderMaterial.js","../src/materials/ToonMaterial.js","../src/materials/Map.js","../src/materials/EnvMap.js","../src/meshes/Mesh.js","../src/meshes/Box.js","../src/meshes/Circle.js","../src/meshes/Cone.js","../src/meshes/Cylinder.js","../src/meshes/Dodecahedron.js","../src/meshes/Icosahedron.js","../src/meshes/Lathe.js","../src/meshes/Octahedron.js","../src/meshes/Plane.js","../src/meshes/Polyhedron.js","../src/meshes/Ring.js","../src/meshes/Sphere.js","../src/meshes/Tetrahedron.js","../src/meshes/TextProps.js","../src/meshes/Text.js","../src/meshes/Torus.js","../src/meshes/TorusKnot.js","../src/meshes/Tube.js","../src/meshes/Gem.js","../src/meshes/Image.js","../src/meshes/InstancedMesh.js","../src/meshes/MirrorMesh.js","../src/meshes/RefractionMesh.js","../src/meshes/Sprite.js","../src/effects/EffectComposer.js","../src/effects/EffectPass.js","../src/effects/RenderPass.js","../src/effects/BokehPass.js","../src/effects/FilmPass.js","../src/effects/HalftonePass.js","../src/effects/SAOPass.js","../src/effects/UnrealBloomPass.js","../src/glsl/snoise2.glsl.js","../src/components/noisy/NoisyImage.js","../src/components/noisy/NoisyPlane.js","../src/components/noisy/NoisySphere.js","../src/components/noisy/NoisyText.js","../src/components/sliders/AnimatedPlane.js","../src/components/sliders/Slider1.vue","../src/use/useTextures.js","../src/components/viewers/GLTFViewer.vue","../src/plugin.js"],"sourcesContent":["import {\r\n Plane,\r\n Raycaster,\r\n Vector2,\r\n Vector3,\r\n WebGLRenderer,\r\n} from 'three';\r\n\r\nimport { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';\r\n\r\n/**\r\n * Three.js helper\r\n */\r\nexport default function useThree() {\r\n // default conf\r\n const conf = {\r\n canvas: null,\r\n antialias: true,\r\n alpha: false,\r\n autoClear: true,\r\n orbit_ctrl: false,\r\n mouse_move: false,\r\n mouse_raycast: false,\r\n resize: 'window',\r\n width: 0,\r\n height: 0,\r\n };\r\n\r\n // size\r\n const size = {\r\n width: 0, height: 0,\r\n wWidth: 0, wHeight: 0,\r\n ratio: 0,\r\n };\r\n\r\n // handlers\r\n let afterInitCallbacks = [];\r\n let afterResizeCallbacks = [];\r\n let beforeRenderCallbacks = [];\r\n\r\n // mouse tracking\r\n const mouse = new Vector2();\r\n const mouseV3 = new Vector3();\r\n const mousePlane = new Plane(new Vector3(0, 0, 1), 0);\r\n const raycaster = new Raycaster();\r\n\r\n // returned object\r\n const obj = {\r\n conf,\r\n renderer: null,\r\n camera: null,\r\n cameraCtrl: null,\r\n materials: {},\r\n scene: null,\r\n size,\r\n mouse, mouseV3,\r\n init,\r\n dispose,\r\n render,\r\n renderC,\r\n setSize,\r\n onAfterInit,\r\n onAfterResize, offAfterResize,\r\n onBeforeRender, offBeforeRender,\r\n };\r\n\r\n /**\r\n * init three\r\n */\r\n function init(params) {\r\n if (params) {\r\n Object.entries(params).forEach(([key, value]) => {\r\n conf[key] = value;\r\n });\r\n }\r\n\r\n if (!obj.scene) {\r\n console.error('Missing Scene');\r\n return;\r\n }\r\n\r\n if (!obj.camera) {\r\n console.error('Missing Camera');\r\n return;\r\n }\r\n\r\n obj.renderer = new WebGLRenderer({ canvas: conf.canvas, antialias: conf.antialias, alpha: conf.alpha });\r\n obj.renderer.autoClear = conf.autoClear;\r\n\r\n if (conf.orbit_ctrl) {\r\n obj.orbitCtrl = new OrbitControls(obj.camera, obj.renderer.domElement);\r\n if (conf.orbit_ctrl instanceof Object) {\r\n Object.entries(conf.orbit_ctrl).forEach(([key, value]) => {\r\n obj.orbitCtrl[key] = value;\r\n });\r\n }\r\n }\r\n\r\n if (conf.width && conf.height) {\r\n setSize(conf.width, conf.height);\r\n } else if (conf.resize) {\r\n onResize();\r\n window.addEventListener('resize', onResize);\r\n }\r\n\r\n if (conf.mouse_move) {\r\n if (conf.mouse_move === 'body') {\r\n obj.mouse_move_element = document.body;\r\n } else {\r\n obj.mouse_move_element = obj.renderer.domElement;\r\n }\r\n obj.mouse_move_element.addEventListener('mousemove', onMousemove);\r\n obj.mouse_move_element.addEventListener('mouseleave', onMouseleave);\r\n }\r\n\r\n afterInitCallbacks.forEach(c => c());\r\n\r\n return true;\r\n };\r\n\r\n /**\r\n * add after init callback\r\n */\r\n function onAfterInit(callback) {\r\n afterInitCallbacks.push(callback);\r\n }\r\n\r\n /**\r\n * add after resize callback\r\n */\r\n function onAfterResize(callback) {\r\n afterResizeCallbacks.push(callback);\r\n }\r\n\r\n /**\r\n * remove after resize callback\r\n */\r\n function offAfterResize(callback) {\r\n afterResizeCallbacks = afterResizeCallbacks.filter(c => c !== callback);\r\n }\r\n\r\n /**\r\n * add before render callback\r\n */\r\n function onBeforeRender(callback) {\r\n beforeRenderCallbacks.push(callback);\r\n }\r\n\r\n /**\r\n * remove before render callback\r\n */\r\n function offBeforeRender(callback) {\r\n beforeRenderCallbacks = beforeRenderCallbacks.filter(c => c !== callback);\r\n }\r\n\r\n /**\r\n * default render\r\n */\r\n function render() {\r\n if (obj.orbitCtrl) obj.orbitCtrl.update();\r\n beforeRenderCallbacks.forEach(c => c());\r\n obj.renderer.render(obj.scene, obj.camera);\r\n }\r\n\r\n /**\r\n * composer render\r\n */\r\n function renderC() {\r\n if (obj.orbitCtrl) obj.orbitCtrl.update();\r\n beforeRenderCallbacks.forEach(c => c());\r\n obj.composer.render();\r\n }\r\n\r\n /**\r\n * remove listeners\r\n */\r\n function dispose() {\r\n beforeRenderCallbacks = [];\r\n window.removeEventListener('resize', onResize);\r\n if (obj.mouse_move_element) {\r\n obj.mouse_move_element.removeEventListener('mousemove', onMousemove);\r\n obj.mouse_move_element.removeEventListener('mouseleave', onMouseleave);\r\n }\r\n if (obj.orbitCtrl) obj.orbitCtrl.dispose();\r\n this.renderer.dispose();\r\n }\r\n\r\n /**\r\n * mousemove listener\r\n */\r\n function onMousemove(e) {\r\n mouse.x = (e.clientX / size.width) * 2 - 1;\r\n mouse.y = -(e.clientY / size.height) * 2 + 1;\r\n updateMouseV3();\r\n }\r\n\r\n /**\r\n * mouseleave listener\r\n */\r\n function onMouseleave(e) {\r\n mouse.x = 0;\r\n mouse.y = 0;\r\n updateMouseV3();\r\n }\r\n\r\n /**\r\n * get 3d mouse position\r\n */\r\n function updateMouseV3() {\r\n if (conf.mouse_raycast) {\r\n obj.camera.getWorldDirection(mousePlane.normal);\r\n mousePlane.normal.normalize();\r\n raycaster.setFromCamera(mouse, obj.camera);\r\n raycaster.ray.intersectPlane(mousePlane, mouseV3);\r\n }\r\n }\r\n\r\n /**\r\n * resize listener\r\n */\r\n function onResize() {\r\n if (conf.resize === 'window') {\r\n setSize(window.innerWidth, window.innerHeight);\r\n } else {\r\n setSize(conf.resize.clientWidth, conf.resize.clientHeight);\r\n }\r\n afterResizeCallbacks.forEach(c => c());\r\n }\r\n\r\n /**\r\n * update renderer size and camera\r\n */\r\n function setSize(width, height) {\r\n size.width = width;\r\n size.height = height;\r\n size.ratio = width / height;\r\n\r\n obj.renderer.setSize(width, height, false);\r\n obj.camera.aspect = size.ratio;\r\n obj.camera.updateProjectionMatrix();\r\n\r\n if (obj.composer) {\r\n obj.composer.setSize(width, height);\r\n }\r\n\r\n const wsize = getCameraSize();\r\n size.wWidth = wsize[0]; size.wHeight = wsize[1];\r\n }\r\n\r\n /**\r\n * calculate camera visible area size\r\n */\r\n function getCameraSize() {\r\n const vFOV = (obj.camera.fov * Math.PI) / 180;\r\n const h = 2 * Math.tan(vFOV / 2) * Math.abs(obj.camera.position.z);\r\n const w = h * obj.camera.aspect;\r\n return [w, h];\r\n }\r\n\r\n return obj;\r\n}\r\n","import { h } from 'vue';\r\nimport useThree from './useThree';\r\n\r\nexport default {\r\n props: {\r\n antialias: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n alpha: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n autoClear: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n shadow: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n orbitCtrl: {\r\n type: [Boolean, Object],\r\n default: false,\r\n },\r\n mouseMove: {\r\n type: [Boolean, String],\r\n default: false,\r\n },\r\n mouseRaycast: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n resize: {\r\n type: [Boolean, String, Element],\r\n default: 'window',\r\n },\r\n width: String,\r\n height: String,\r\n },\r\n setup() {\r\n return {\r\n three: useThree(),\r\n raf: true,\r\n onMountedCallbacks: [],\r\n };\r\n },\r\n provide() {\r\n return {\r\n three: this.three,\r\n // renderer: this.three.renderer,\r\n rendererComponent: this,\r\n };\r\n },\r\n mounted() {\r\n const params = {\r\n canvas: this.$refs.canvas,\r\n antialias: this.antialias,\r\n alpha: this.alpha,\r\n autoClear: this.autoClear,\r\n orbit_ctrl: this.orbitCtrl,\r\n mouse_move: this.mouseMove,\r\n mouse_raycast: this.mouseRaycast,\r\n resize: this.resize,\r\n width: this.width,\r\n height: this.height,\r\n };\r\n\r\n if (this.three.init(params)) {\r\n this.three.renderer.shadowMap.enabled = this.shadow;\r\n if (this.three.composer) this.animateC();\r\n else this.animate();\r\n };\r\n\r\n this.onMountedCallbacks.forEach(c => c());\r\n },\r\n beforeUnmount() {\r\n this.raf = false;\r\n this.three.dispose();\r\n },\r\n methods: {\r\n onMounted(callback) {\r\n this.onMountedCallbacks.push(callback);\r\n },\r\n onBeforeRender(callback) {\r\n this.three.onBeforeRender(callback);\r\n },\r\n onAfterResize(callback) {\r\n this.three.onAfterResize(callback);\r\n },\r\n animate() {\r\n if (this.raf) requestAnimationFrame(this.animate);\r\n this.three.render();\r\n },\r\n animateC() {\r\n if (this.raf) requestAnimationFrame(this.animateC);\r\n this.three.renderC();\r\n },\r\n },\r\n render() {\r\n return h(\r\n 'canvas',\r\n { ref: 'canvas' },\r\n this.$slots.default()\r\n );\r\n },\r\n};\r\n","export function setFromProp(o, prop) {\r\n if (prop instanceof Object) {\r\n Object.entries(prop).forEach(([key, value]) => {\r\n o[key] = value;\r\n });\r\n }\r\n};\r\n\r\nexport function propsValues(props, exclude) {\r\n const values = {};\r\n Object.entries(props).forEach(([key, value]) => {\r\n if (!exclude || (exclude && !exclude.includes(key))) {\r\n values[key] = value;\r\n }\r\n });\r\n return values;\r\n};\r\n\r\nexport function lerp(value1, value2, amount) {\r\n amount = amount < 0 ? 0 : amount;\r\n amount = amount > 1 ? 1 : amount;\r\n return value1 + (value2 - value1) * amount;\r\n};\r\n\r\nexport function lerpv3(v1, v2, amount) {\r\n v1.x = lerp(v1.x, v2.x, amount);\r\n v1.y = lerp(v1.y, v2.y, amount);\r\n v1.z = lerp(v1.z, v2.z, amount);\r\n};\r\n\r\nexport function limit(val, min, max) {\r\n return val < min ? min : (val > max ? max : val);\r\n};\r\n","import { toRef, watch } from 'vue';\r\nimport { setFromProp } from '../tools.js';\r\n\r\nexport default function useBindProp(comp, prop, object) {\r\n if (comp[prop]) {\r\n const ref = toRef(comp, prop);\r\n setFromProp(object, ref.value);\r\n watch(ref, () => {\r\n setFromProp(object, ref.value);\r\n }, { deep: true });\r\n }\r\n};\r\n","import { PerspectiveCamera, Vector3 } from 'three';\r\nimport { watch } from 'vue';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n inject: ['three'],\r\n props: {\r\n aspect: {\r\n type: Number,\r\n default: 1,\r\n },\r\n far: {\r\n type: Number,\r\n default: 2000,\r\n },\r\n fov: {\r\n type: Number,\r\n default: 50,\r\n },\r\n near: {\r\n type: Number,\r\n default: 0.1,\r\n },\r\n position: {\r\n type: [Object, Vector3],\r\n default: { x: 0, y: 0, z: 0 },\r\n },\r\n },\r\n created() {\r\n this.camera = new PerspectiveCamera(this.fov, this.aspect, this.near, this.far);\r\n useBindProp(this, 'position', this.camera.position);\r\n\r\n ['aspect', 'far', 'fov', 'near'].forEach(p => {\r\n watch(() => this[p], () => {\r\n this.camera[p] = this[p];\r\n this.camera.updateProjectionMatrix();\r\n });\r\n });\r\n\r\n this.three.camera = this.camera;\r\n },\r\n render() {\r\n return [];\r\n },\r\n __hmrId: 'PerspectiveCamera',\r\n};\r\n","import { Scene, Color } from 'three';\r\nimport { watch } from 'vue';\r\n\r\nexport default {\r\n inject: ['three'],\r\n props: {\r\n id: String,\r\n background: [String, Number],\r\n },\r\n setup(props) {\r\n const scene = new Scene();\r\n if (props.background) scene.background = new Color(props.background);\r\n watch(() => props.background, (value) => { scene.background = new Color(value); });\r\n return { scene };\r\n },\r\n provide() {\r\n return {\r\n scene: this.scene,\r\n };\r\n },\r\n mounted() {\r\n if (!this.three.scene) {\r\n this.three.scene = this.scene;\r\n }\r\n },\r\n methods: {\r\n // add(o) {\r\n // this.scene.add(o);\r\n // },\r\n // remove(o) {\r\n // this.scene.remove(o);\r\n // },\r\n },\r\n render() {\r\n if (this.$slots.default) {\r\n return this.$slots.default();\r\n }\r\n return [];\r\n },\r\n};\r\n","import { TextureLoader } from 'three';\r\nimport { watch } from 'vue';\r\n\r\nexport default {\r\n inject: ['three'],\r\n emits: ['loaded'],\r\n props: {\r\n src: String,\r\n onLoad: Function,\r\n onProgress: Function,\r\n onError: Function,\r\n },\r\n created() {\r\n this.createTexture();\r\n watch(() => this.src, this.refreshTexture);\r\n },\r\n unmounted() {\r\n this.texture.dispose();\r\n },\r\n methods: {\r\n createTexture() {\r\n this.texture = new TextureLoader().load(this.src, this.onLoaded, this.onProgress, this.onError);\r\n },\r\n refreshTexture() {\r\n this.createTexture();\r\n },\r\n onLoaded() {\r\n if (this.onLoad) this.onLoad();\r\n this.$emit('loaded');\r\n },\r\n },\r\n render() {\r\n return [];\r\n },\r\n};\r\n","import { CubeTextureLoader } from 'three';\r\nimport { watch } from 'vue';\r\n\r\nexport default {\r\n inject: ['three'],\r\n emits: ['loaded'],\r\n props: {\r\n path: String,\r\n urls: {\r\n type: Array,\r\n default: ['px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg'],\r\n },\r\n onLoad: Function,\r\n onProgress: Function,\r\n onError: Function,\r\n },\r\n created() {\r\n this.createTexture();\r\n watch(() => this.path, this.refreshTexture);\r\n watch(() => this.urls, this.refreshTexture);\r\n },\r\n unmounted() {\r\n this.texture.dispose();\r\n },\r\n methods: {\r\n createTexture() {\r\n this.texture = new CubeTextureLoader()\r\n .setPath(this.path)\r\n .load(this.urls, this.onLoaded, this.onProgress, this.onError);\r\n },\r\n refreshTexture() {\r\n this.createTexture();\r\n },\r\n onLoaded() {\r\n if (this.onLoad) this.onLoad();\r\n this.$emit('loaded');\r\n },\r\n },\r\n render() {\r\n return [];\r\n },\r\n};\r\n","import { watch } from 'vue';\r\n\r\nexport default {\r\n emits: ['ready'],\r\n inject: ['mesh'],\r\n props: {\r\n rotateX: Number,\r\n rotateY: Number,\r\n rotateZ: Number,\r\n },\r\n created() {\r\n if (!this.mesh) {\r\n console.error('Missing parent Mesh');\r\n }\r\n this.watchProps = [];\r\n Object.entries(this.$props).forEach(e => this.watchProps.push(e[0]));\r\n },\r\n beforeMount() {\r\n this.createGeometry();\r\n this.rotateGeometry();\r\n this.mesh.setGeometry(this.geometry);\r\n },\r\n mounted() {\r\n this.addWatchers();\r\n },\r\n unmounted() {\r\n this.geometry.dispose();\r\n },\r\n methods: {\r\n rotateGeometry() {\r\n if (this.rotateX) this.geometry.rotateX(this.rotateX);\r\n if (this.rotateY) this.geometry.rotateY(this.rotateY);\r\n if (this.rotateZ) this.geometry.rotateZ(this.rotateZ);\r\n },\r\n addWatchers() {\r\n this.watchProps.forEach(prop => {\r\n watch(() => this[prop], () => {\r\n this.refreshGeometry();\r\n });\r\n });\r\n },\r\n refreshGeometry() {\r\n const oldGeo = this.geometry;\r\n this.createGeometry();\r\n this.rotateGeometry();\r\n this.mesh.setGeometry(this.geometry);\r\n oldGeo.dispose();\r\n },\r\n },\r\n render() {\r\n return [];\r\n },\r\n};\r\n","import { BoxBufferGeometry } from 'three';\r\nimport Geometry from './Geometry.js';\r\n\r\nexport default {\r\n extends: Geometry,\r\n props: {\r\n size: Number,\r\n width: { type: Number, default: 1 },\r\n height: { type: Number, default: 1 },\r\n depth: { type: Number, default: 1 },\r\n widthSegments: { type: Number, default: 1 },\r\n heightSegments: { type: Number, default: 1 },\r\n depthSegments: { type: Number, default: 1 },\r\n },\r\n methods: {\r\n createGeometry() {\r\n let w = this.width, h = this.height, d = this.depth;\r\n if (this.size) {\r\n w = this.size; h = this.size; d = this.size;\r\n }\r\n this.geometry = new BoxBufferGeometry(w, h, d, this.widthSegments, this.heightSegments, this.depthSegments);\r\n },\r\n },\r\n};\r\n","import { CircleBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n segments: { type: Number, default: 8 },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new CircleBufferGeometry(this.radius, this.segments, this.thetaStart, this.thetaLength);\n },\n },\n};\n","import { ConeBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n height: { type: Number, default: 1 },\n radialSegments: { type: Number, default: 8 },\n heightSegments: { type: Number, default: 1 },\n openEnded: { type: Boolean, default: false },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new ConeBufferGeometry(this.radius, this.height, this.radialSegments, this.heightSegments, this.openEnded, this.thetaStart, this.thetaLength);\n },\n },\n};\n","import { CylinderBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radiusTop: { type: Number, default: 1 },\n radiusBottom: { type: Number, default: 1 },\n height: { type: Number, default: 1 },\n radialSegments: { type: Number, default: 8 },\n heightSegments: { type: Number, default: 1 },\n openEnded: { type: Boolean, default: false },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new CylinderBufferGeometry(this.radiusTop, this.radiusBottom, this.height, this.radialSegments, this.heightSegments, this.openEnded, this.thetaStart, this.thetaLength);\n },\n },\n};\n","import { DodecahedronBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n methods: {\n createGeometry() {\n this.geometry = new DodecahedronBufferGeometry(this.radius, this.detail);\n },\n },\n};\n","import { IcosahedronBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n methods: {\n createGeometry() {\n this.geometry = new IcosahedronBufferGeometry(this.radius, this.detail);\n },\n },\n};\n","import { LatheBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n points: Array,\n segments: { type: Number, default: 12 },\n phiStart: { type: Number, default: 0 },\n phiLength: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new LatheBufferGeometry(this.points, this.segments, this.phiStart, this.phiLength);\n },\n },\n};\n","import { OctahedronBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n methods: {\n createGeometry() {\n this.geometry = new OctahedronBufferGeometry(this.radius, this.detail);\n },\n },\n};\n","import { PolyhedronBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n vertices: Array,\n indices: Array,\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n methods: {\n createGeometry() {\n this.geometry = new PolyhedronBufferGeometry(this.vertices, this.indices, this.radius, this.detail);\n },\n },\n};\n","import { RingBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n innerRadius: { type: Number, default: 0.5 },\n outerRadius: { type: Number, default: 1 },\n thetaSegments: { type: Number, default: 8 },\n phiSegments: { type: Number, default: 1 },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new RingBufferGeometry(this.innerRadius, this.outerRadius, this.thetaSegments, this.phiSegments, this.thetaStart, this.thetaLength);\n },\n },\n};\n","import { SphereBufferGeometry } from 'three';\r\nimport Geometry from './Geometry.js';\r\n\r\nexport default {\r\n extends: Geometry,\r\n props: {\r\n radius: { type: Number, default: 1 },\r\n widthSegments: { type: Number, default: 12 },\r\n heightSegments: { type: Number, default: 12 },\r\n },\r\n methods: {\r\n createGeometry() {\r\n this.geometry = new SphereBufferGeometry(this.radius, this.widthSegments, this.heightSegments);\r\n },\r\n },\r\n};\r\n","import { TetrahedronBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n methods: {\n createGeometry() {\n this.geometry = new TetrahedronBufferGeometry(this.radius, this.detail);\n },\n },\n};\n","import { TorusBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n tube: { type: Number, default: 0.4 },\n radialSegments: { type: Number, default: 8 },\n tubularSegments: { type: Number, default: 6 },\n arc: { type: Number, default: Math.PI * 2 },\n },\n methods: {\n createGeometry() {\n this.geometry = new TorusBufferGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.arc);\n },\n },\n};\n","import { TorusKnotBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n radius: { type: Number, default: 1 },\n tube: { type: Number, default: 0.4 },\n radialSegments: { type: Number, default: 64 },\n tubularSegments: { type: Number, default: 8 },\n p: { type: Number, default: 2 },\n q: { type: Number, default: 3 },\n },\n methods: {\n createGeometry() {\n this.geometry = new TorusKnotBufferGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q);\n },\n },\n};\n","import { Curve, TubeBufferGeometry } from 'three';\nimport Geometry from './Geometry.js';\n\nexport default {\n extends: Geometry,\n props: {\n path: Curve,\n tubularSegments: { type: Number, default: 64 },\n radius: { type: Number, default: 1 },\n radiusSegments: { type: Number, default: 8 },\n closed: { type: Boolean, default: false },\n },\n methods: {\n createGeometry() {\n this.geometry = new TubeBufferGeometry(this.path, this.tubularSegments, this.radius, this.radiusSegments, this.closed);\n },\n },\n};\n","import { Color } from 'three';\r\nimport { watch } from 'vue';\r\nimport { setFromProp } from '../tools.js';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n inject: ['scene'],\r\n props: {\r\n color: {\r\n type: String,\r\n default: '#ffffff',\r\n },\r\n intensity: {\r\n type: Number,\r\n default: 1,\r\n },\r\n castShadow: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n shadowMapSize: Object,\r\n position: Object,\r\n },\r\n mounted() {\r\n useBindProp(this, 'position', this.light.position);\r\n\r\n if (this.light.target) {\r\n useBindProp(this, 'target', this.light.target.position);\r\n }\r\n\r\n if (this.light.shadow) {\r\n this.light.castShadow = this.castShadow;\r\n setFromProp(this.light.shadow.mapSize, this.shadowMapSize);\r\n }\r\n\r\n ['color', 'intensity', 'castShadow'].forEach(p => {\r\n watch(() => this[p], () => {\r\n if (p === 'color') {\r\n this.light.color = new Color(this.color);\r\n } else {\r\n this.light[p] = this[p];\r\n }\r\n });\r\n });\r\n\r\n this.scene.add(this.light);\r\n if (this.light.target) this.scene.add(this.light.target);\r\n },\r\n unmounted() {\r\n this.scene.remove(this.light);\r\n },\r\n render() {\r\n return [];\r\n },\r\n __hmrId: 'Light',\r\n};\r\n","import { AmbientLight } from 'three';\r\nimport Light from './Light.js';\r\n\r\nexport default {\r\n extends: Light,\r\n created() {\r\n this.light = new AmbientLight(this.color, this.intensity);\r\n },\r\n __hmrId: 'AmbientLight',\r\n};\r\n","import { DirectionalLight } from 'three';\r\nimport Light from './Light.js';\r\n\r\nexport default {\r\n extends: Light,\r\n props: {\r\n target: Object,\r\n },\r\n created() {\r\n this.light = new DirectionalLight(this.color, this.intensity);\r\n },\r\n __hmrId: 'DirectionalLight',\r\n};\r\n","import { PointLight } from 'three';\r\nimport Light from './Light.js';\r\n\r\nexport default {\r\n extends: Light,\r\n props: {\r\n distance: {\r\n type: Number,\r\n default: 0,\r\n },\r\n decay: {\r\n type: Number,\r\n default: 1,\r\n },\r\n },\r\n created() {\r\n this.light = new PointLight(this.color, this.intensity, this.distance, this.decay);\r\n },\r\n __hmrId: 'PointLight',\r\n};\r\n","import { SpotLight } from 'three';\r\nimport { watch } from 'vue';\r\nimport Light from './Light.js';\r\n\r\nexport default {\r\n extends: Light,\r\n props: {\r\n angle: {\r\n type: Number,\r\n default: Math.PI / 3,\r\n },\r\n decay: {\r\n type: Number,\r\n default: 1,\r\n },\r\n distance: {\r\n type: Number,\r\n default: 0,\r\n },\r\n penumbra: {\r\n type: Number,\r\n default: 0,\r\n },\r\n target: Object,\r\n },\r\n created() {\r\n this.light = new SpotLight(this.color, this.intensity, this.distance, this.angle, this.penumbra, this.decay);\r\n ['angle', 'decay', 'distance', 'penumbra'].forEach(p => {\r\n watch(() => this[p], () => {\r\n this.light[p] = this[p];\r\n });\r\n });\r\n },\r\n __hmrId: 'SpotLight',\r\n};\r\n","import { watch } from 'vue';\r\nimport { Color, FrontSide } from 'three';\r\n\r\nexport default {\r\n inject: ['three', 'mesh'],\r\n props: {\r\n id: String,\r\n color: { type: [String, Number], default: '#ffffff' },\r\n depthTest: { type: Boolean, default: true },\r\n depthWrite: { type: Boolean, default: true },\r\n flatShading: Boolean,\r\n fog: { type: Boolean, default: true },\r\n opacity: { type: Number, default: 1 },\r\n side: { type: Number, default: FrontSide },\r\n transparent: Boolean,\r\n vertexColors: Boolean,\r\n },\r\n provide() {\r\n return {\r\n material: this,\r\n };\r\n },\r\n beforeMount() {\r\n this.createMaterial();\r\n if (this.id) this.three.materials[this.id] = this.material;\r\n this.mesh.setMaterial(this.material);\r\n },\r\n mounted() {\r\n this._addWatchers();\r\n if (this.addWatchers) this.addWatchers();\r\n },\r\n unmounted() {\r\n this.material.dispose();\r\n if (this.id) delete this.three.materials[this.id];\r\n },\r\n methods: {\r\n setMap(texture) {\r\n this.material.map = texture;\r\n this.material.needsUpdate = true;\r\n },\r\n setEnvMap(texture) {\r\n this.material.envMap = texture;\r\n this.material.needsUpdate = true;\r\n },\r\n _addWatchers() {\r\n // don't work for flatShading\r\n ['color', 'depthTest', 'depthWrite', 'fog', 'opacity', 'side', 'transparent'].forEach(p => {\r\n watch(() => this[p], () => {\r\n if (p === 'color') {\r\n this.material.color.set(this.color);\r\n } else {\r\n this.material[p] = this[p];\r\n }\r\n });\r\n });\r\n },\r\n },\r\n render() {\r\n if (this.$slots.default) {\r\n return this.$slots.default();\r\n }\r\n return [];\r\n },\r\n __hmrId: 'Material',\r\n};\r\n","import { MeshBasicMaterial } from 'three';\r\nimport { propsValues } from '../tools.js';\r\nimport Material from './Material';\r\n\r\nexport default {\r\n extends: Material,\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshBasicMaterial(propsValues(this.$props, ['id']));\r\n },\r\n },\r\n __hmrId: 'BasicMaterial',\r\n};\r\n","import { MeshLambertMaterial } from 'three';\r\nimport { propsValues } from '../tools.js';\r\nimport Material from './Material';\r\n\r\nexport default {\r\n extends: Material,\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshLambertMaterial(propsValues(this.$props, ['id']));\r\n },\r\n },\r\n __hmrId: 'LambertMaterial',\r\n};\r\n","import { MeshPhongMaterial } from 'three';\r\nimport { propsValues } from '../tools.js';\r\nimport Material from './Material';\r\n\r\nexport default {\r\n extends: Material,\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshPhongMaterial(propsValues(this.$props, ['id']));\r\n },\r\n },\r\n __hmrId: 'PhongMaterial',\r\n};\r\n","import { Color, MeshStandardMaterial } from 'three';\r\nimport { watch } from 'vue';\r\nimport { propsValues } from '../tools.js';\r\nimport Material from './Material';\r\n\r\nexport default {\r\n extends: Material,\r\n props: {\r\n emissive: { type: [Number, String], default: 0 },\r\n emissiveIntensity: { type: Number, default: 1 },\r\n metalness: { type: Number, default: 0 },\r\n roughness: { type: Number, default: 1 },\r\n },\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshStandardMaterial(propsValues(this.$props, ['id']));\r\n },\r\n addWatchers() {\r\n ['emissive', 'emissiveIntensity', 'metalness', 'roughness'].forEach(p => {\r\n watch(() => this[p], (value) => {\r\n if (p === 'emissive') {\r\n this.material.emissive = new Color(value);\r\n } else {\r\n this.material[p] = value;\r\n }\r\n });\r\n });\r\n },\r\n },\r\n __hmrId: 'StandardMaterial',\r\n};\r\n","import { MeshPhysicalMaterial } from 'three';\r\nimport { propsValues } from '../tools.js';\r\nimport StandardMaterial from './StandardMaterial';\r\n\r\nexport default {\r\n extends: StandardMaterial,\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshPhysicalMaterial(propsValues(this.$props, ['id']));\r\n },\r\n },\r\n __hmrId: 'PhysicalMaterial',\r\n};\r\n","/**\n * ------------------------------------------------------------------------------------------\n * Subsurface Scattering shader\n * Based on three/examples/jsm/shaders/SubsurfaceScatteringShader.js\n * Based on GDC 2011 – Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look\n * https://colinbarrebrisebois.com/2011/03/07/gdc-2011-approximating-translucency-for-a-fast-cheap-and-convincing-subsurface-scattering-look/\n *------------------------------------------------------------------------------------------\n */\nimport {\n Color,\n ShaderChunk,\n ShaderLib,\n UniformsUtils,\n} from 'three';\n\nfunction replaceAll(string, find, replace) {\n return string.split(find).join(replace);\n}\n\nconst meshphongFragHead = ShaderChunk.meshphong_frag.slice(0, ShaderChunk.meshphong_frag.indexOf('void main() {'));\nconst meshphongFragBody = ShaderChunk.meshphong_frag.slice(ShaderChunk.meshphong_frag.indexOf('void main() {'));\n\nconst SubsurfaceScatteringShader = {\n\n uniforms: UniformsUtils.merge([\n ShaderLib.phong.uniforms,\n {\n thicknessColor: { value: new Color(0x668597) },\n thicknessDistortion: { value: 0.1 },\n thicknessAmbient: { value: 0.0 },\n thicknessAttenuation: { value: 0.1 },\n thicknessPower: { value: 2.0 },\n thicknessScale: { value: 10.0 },\n },\n ]),\n\n vertexShader: `\n #define USE_UV\n ${ShaderChunk.meshphong_vert}\n `,\n\n fragmentShader: `\n #define USE_UV\n #define SUBSURFACE\n\n ${meshphongFragHead}\n\n uniform float thicknessPower;\n uniform float thicknessScale;\n uniform float thicknessDistortion;\n uniform float thicknessAmbient;\n uniform float thicknessAttenuation;\n uniform vec3 thicknessColor;\n\n void RE_Direct_Scattering(const in IncidentLight directLight, const in vec2 uv, const in GeometricContext geometry, inout ReflectedLight reflectedLight) {\n #ifdef USE_COLOR\n vec3 thickness = vColor * thicknessColor;\n #else\n vec3 thickness = thicknessColor;\n #endif\n vec3 scatteringHalf = normalize(directLight.direction + (geometry.normal * thicknessDistortion));\n float scatteringDot = pow(saturate(dot(geometry.viewDir, -scatteringHalf)), thicknessPower) * thicknessScale;\n vec3 scatteringIllu = (scatteringDot + thicknessAmbient) * thickness;\n reflectedLight.directDiffuse += scatteringIllu * thicknessAttenuation * directLight.color;\n }\n ` + meshphongFragBody.replace(\n '#include ',\n replaceAll(\n ShaderChunk.lights_fragment_begin,\n 'RE_Direct( directLight, geometry, material, reflectedLight );',\n `\n RE_Direct( directLight, geometry, material, reflectedLight );\n #if defined( SUBSURFACE ) && defined( USE_UV )\n RE_Direct_Scattering(directLight, vUv, geometry, reflectedLight);\n #endif\n `\n )\n ),\n};\n\nexport default SubsurfaceScatteringShader;\n","import { Color, ShaderMaterial as TShaderMaterial, UniformsUtils } from 'three';\r\nimport SubsurfaceScatteringShader from './SubsurfaceScatteringShader.js';\r\nimport ShaderMaterial from './ShaderMaterial';\r\n\r\nexport default {\r\n extends: ShaderMaterial,\r\n props: {\r\n diffuse: { type: String, default: '#ffffff' },\r\n thicknessColor: { type: String, default: '#ffffff' },\r\n thicknessDistortion: { type: Number, default: 0.4 },\r\n thicknessAmbient: { type: Number, default: 0.01 },\r\n thicknessAttenuation: { type: Number, default: 0.7 },\r\n thicknessPower: { type: Number, default: 2 },\r\n thicknessScale: { type: Number, default: 4 },\r\n transparent: { type: Boolean, default: false },\r\n opacity: { type: Number, default: 1 },\r\n vertexColors: { type: Boolean, default: false },\r\n },\r\n methods: {\r\n createMaterial() {\r\n const params = SubsurfaceScatteringShader;\r\n const uniforms = UniformsUtils.clone(params.uniforms);\r\n Object.entries(this.$props).forEach(([key, value]) => {\r\n if (key === 'diffuse' || key === 'thicknessColor') {\r\n value = new Color(value);\r\n }\r\n if (key !== 'id' && key !== 'transparent' && key !== 'vertexColors') {\r\n uniforms[key].value = value;\r\n }\r\n });\r\n\r\n this.material = new TShaderMaterial({\r\n ...params,\r\n uniforms,\r\n lights: true,\r\n transparent: this.transparent,\r\n vertexColors: this.vertexColors,\r\n });\r\n },\r\n },\r\n __hmrId: 'SubSurfaceMaterial',\r\n};\r\n","export default {\r\n inject: ['three', 'mesh'],\r\n props: {\r\n id: String,\r\n uniforms: Object,\r\n vertexShader: String,\r\n fragmentShader: String,\r\n },\r\n beforeMount() {\r\n this.createMaterial();\r\n if (this.id) this.three.materials[this.id] = this.material;\r\n this.mesh.setMaterial(this.material);\r\n },\r\n mounted() {\r\n if (this.addWatchers) this.addWatchers();\r\n },\r\n unmounted() {\r\n this.material.dispose();\r\n if (this.id) delete this.three.materials[this.id];\r\n },\r\n render() {\r\n return [];\r\n },\r\n __hmrId: 'ShaderMaterial',\r\n};\r\n","import { MeshToonMaterial } from 'three';\r\nimport { propsValues } from '../tools.js';\r\nimport Material from './Material';\r\n\r\nexport default {\r\n extends: Material,\r\n methods: {\r\n createMaterial() {\r\n this.material = new MeshToonMaterial(propsValues(this.$props, ['id']));\r\n },\r\n },\r\n __hmrId: 'ToonMaterial',\r\n};\r\n","import Texture from '../core/Texture';\r\n\r\nexport default {\r\n extends: Texture,\r\n inject: ['material'],\r\n created() {\r\n this.material.setMap(this.texture);\r\n },\r\n unmounted() {\r\n this.material.setMap(null);\r\n },\r\n methods: {\r\n refreshTexture() {\r\n this.createTexture();\r\n this.material.setMap(this.texture);\r\n },\r\n },\r\n __hmrId: 'Map',\r\n};\r\n","import CubeTexture from '../core/CubeTexture';\r\n\r\nexport default {\r\n extends: CubeTexture,\r\n inject: ['material'],\r\n created() {\r\n this.material.setEnvMap(this.texture);\r\n },\r\n unmounted() {\r\n this.material.setEnvMap(null);\r\n },\r\n methods: {\r\n refreshTexture() {\r\n this.createTexture();\r\n this.material.setEnvMap(this.texture);\r\n },\r\n },\r\n __hmrId: 'EnvMap',\r\n};\r\n","import { Mesh } from 'three';\nimport { watch } from 'vue';\nimport useBindProp from '../use/useBindProp.js';\n\nexport default {\n inject: ['three', 'scene', 'rendererComponent'],\n emits: ['ready'],\n props: {\n materialId: String,\n position: Object,\n rotation: Object,\n scale: Object,\n castShadow: Boolean,\n receiveShadow: Boolean,\n },\n provide() {\n return {\n mesh: this,\n };\n },\n mounted() {\n // console.log('Mesh mounted');\n if (this.geometry && !this.mesh) this.initMesh();\n },\n unmounted() {\n // console.log('Mesh unmounted');\n if (this.mesh) this.scene.remove(this.mesh);\n if (this.geometry) this.geometry.dispose();\n if (this.material && !this.materialId) this.material.dispose();\n },\n methods: {\n initMesh() {\n if (!this.material && this.materialId) {\n this.material = this.three.materials[this.materialId];\n }\n this.mesh = new Mesh(this.geometry, this.material);\n this.bindProps();\n this.scene.add(this.mesh);\n this.$emit('ready');\n },\n bindProps() {\n useBindProp(this, 'position', this.mesh.position);\n useBindProp(this, 'rotation', this.mesh.rotation);\n useBindProp(this, 'scale', this.mesh.scale);\n\n ['castShadow', 'receiveShadow'].forEach(p => {\n this.mesh[p] = this[p];\n watch(() => this[p], () => { this.mesh[p] = this[p]; });\n });\n\n watch(() => this.materialId, () => {\n this.mesh.material = this.three.materials[this.materialId];\n });\n },\n setGeometry(geometry) {\n this.geometry = geometry;\n if (this.mesh) this.mesh.geometry = geometry;\n },\n setMaterial(material) {\n this.material = material;\n if (this.mesh) this.mesh.material = material;\n },\n refreshGeometry() {\n const oldGeo = this.geometry;\n this.createGeometry();\n this.mesh.geometry = this.geometry;\n oldGeo.dispose();\n },\n },\n render() {\n if (this.$slots.default) {\n return this.$slots.default();\n }\n return [];\n },\n __hmrId: 'Mesh',\n};\n","import { BoxBufferGeometry } from 'three';\r\nimport { watch } from 'vue';\r\nimport Mesh from './Mesh.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n size: Number,\r\n width: { type: Number, default: 1 },\r\n height: { type: Number, default: 1 },\r\n depth: { type: Number, default: 1 },\r\n widthSegments: { type: Number, default: 1 },\r\n heightSegments: { type: Number, default: 1 },\r\n depthSegments: { type: Number, default: 1 },\r\n },\r\n created() {\r\n this.createGeometry();\r\n\r\n ['size', 'width', 'height', 'depth', 'widthSegments', 'heightSegments', 'depthSegments'].forEach(prop => {\r\n watch(() => this[prop], () => {\r\n this.refreshGeometry();\r\n });\r\n });\r\n },\r\n methods: {\r\n createGeometry() {\r\n if (this.size) {\r\n this.geometry = new BoxBufferGeometry(this.size, this.size, this.size);\r\n } else {\r\n this.geometry = new BoxBufferGeometry(this.width, this.height, this.depth);\r\n }\r\n },\r\n },\r\n __hmrId: 'Box',\r\n};\r\n","import { CircleBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n segments: { type: Number, default: 8 },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'segments', 'thetaStart', 'thetaLength'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new CircleBufferGeometry(this.radius, this.segments, this.thetaStart, this.thetaLength);\n },\n },\n __hmrId: 'Circle',\n};\n","import { ConeBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n height: { type: Number, default: 1 },\n radialSegments: { type: Number, default: 8 },\n heightSegments: { type: Number, default: 1 },\n openEnded: { type: Boolean, default: false },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'height', 'radialSegments', 'heightSegments', 'openEnded', 'thetaStart', 'thetaLength'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new ConeBufferGeometry(this.radius, this.height, this.radialSegments, this.heightSegments, this.openEnded, this.thetaStart, this.thetaLength);\n },\n },\n __hmrId: 'Cone',\n};\n","import { CylinderBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radiusTop: { type: Number, default: 1 },\n radiusBottom: { type: Number, default: 1 },\n height: { type: Number, default: 1 },\n radialSegments: { type: Number, default: 8 },\n heightSegments: { type: Number, default: 1 },\n openEnded: { type: Boolean, default: false },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radiusTop', 'radiusBottom', 'height', 'radialSegments', 'heightSegments', 'openEnded', 'thetaStart', 'thetaLength'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new CylinderBufferGeometry(this.radiusTop, this.radiusBottom, this.height, this.radialSegments, this.heightSegments, this.openEnded, this.thetaStart, this.thetaLength);\n },\n },\n __hmrId: 'Cylinder',\n};\n","import { DodecahedronBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'detail'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new DodecahedronBufferGeometry(this.radius, this.detail);\n },\n },\n __hmrId: 'Dodecahedron',\n};\n","import { IcosahedronBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'detail'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new IcosahedronBufferGeometry(this.radius, this.detail);\n },\n },\n __hmrId: 'Icosahedron',\n};\n","import { LatheBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n points: Array,\n segments: { type: Number, default: 12 },\n phiStart: { type: Number, default: 0 },\n phiLength: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['points', 'segments', 'phiStart', 'phiLength'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new LatheBufferGeometry(this.points, this.segments, this.phiStart, this.phiLength);\n },\n },\n __hmrId: 'Lathe',\n};\n","import { OctahedronBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'detail'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new OctahedronBufferGeometry(this.radius, this.detail);\n },\n },\n __hmrId: 'Octahedron',\n};\n","import { PlaneBufferGeometry } from 'three';\r\nimport { watch } from 'vue';\r\nimport Mesh from './Mesh.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n width: { type: Number, default: 1 },\r\n height: { type: Number, default: 1 },\r\n widthSegments: { type: Number, default: 1 },\r\n heightSegments: { type: Number, default: 1 },\r\n },\r\n created() {\r\n this.createGeometry();\r\n\r\n const watchProps = ['width', 'height', 'widthSegments', 'heightSegments'];\r\n watchProps.forEach(prop => {\r\n watch(() => this[prop], () => {\r\n this.refreshGeometry();\r\n });\r\n });\r\n },\r\n methods: {\r\n createGeometry() {\r\n this.geometry = new PlaneBufferGeometry(this.width, this.height, this.widthSegments, this.heightSegments);\r\n },\r\n },\r\n __hmrId: 'Plane',\r\n};\r\n","import { PolyhedronBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n vertices: Array,\n indices: Array,\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['vertices', 'indices', 'radius', 'detail'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new PolyhedronBufferGeometry(this.vertices, this.indices, this.radius, this.detail);\n },\n },\n __hmrId: 'Polyhedron',\n};\n","import { RingBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n innerRadius: { type: Number, default: 0.5 },\n outerRadius: { type: Number, default: 1 },\n thetaSegments: { type: Number, default: 8 },\n phiSegments: { type: Number, default: 1 },\n thetaStart: { type: Number, default: 0 },\n thetaLength: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['innerRadius', 'outerRadius', 'thetaSegments', 'phiSegments', 'thetaStart', 'thetaLength'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new RingBufferGeometry(this.innerRadius, this.outerRadius, this.thetaSegments, this.phiSegments, this.thetaStart, this.thetaLength);\n },\n },\n __hmrId: 'Ring',\n};\n","import { SphereBufferGeometry } from 'three';\r\nimport Mesh from './Mesh.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n radius: Number,\r\n widthSegments: { type: Number, default: 12 },\r\n heightSegments: { type: Number, default: 12 },\r\n },\r\n watch: {\r\n radius() { this.refreshGeometry(); },\r\n widthSegments() { this.refreshGeometry(); },\r\n heightSegments() { this.refreshGeometry(); },\r\n },\r\n created() {\r\n this.createGeometry();\r\n },\r\n methods: {\r\n createGeometry() {\r\n this.geometry = new SphereBufferGeometry(this.radius, this.widthSegments, this.heightSegments);\r\n },\r\n },\r\n __hmrId: 'Sphere',\r\n};\r\n","import { TetrahedronBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 1 },\n detail: { type: Number, default: 0 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'detail'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new TetrahedronBufferGeometry(this.radius, this.detail);\n },\n },\n __hmrId: 'Tetrahedron',\n};\n","export default {\n text: String,\n fontSrc: String,\n size: { type: Number, default: 80 },\n height: { type: Number, default: 5 },\n depth: { type: Number, default: 1 },\n curveSegments: { type: Number, default: 12 },\n bevelEnabled: { type: Boolean, default: false },\n bevelThickness: { type: Number, default: 10 },\n bevelSize: { type: Number, default: 8 },\n bevelOffset: { type: Number, default: 0 },\n bevelSegments: { type: Number, default: 5 },\n align: { type: [Boolean, String], default: false },\n};\n","import { FontLoader, TextBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\nimport TextProps from './TextProps.js';\n\nexport default {\n extends: Mesh,\n props: {\n ...TextProps,\n },\n created() {\n // add watchers\n const watchProps = [\n 'text', 'size', 'height', 'curveSegments',\n 'bevelEnabled', 'bevelThickness', 'bevelSize', 'bevelOffset', 'bevelSegments',\n 'align',\n ];\n watchProps.forEach(p => {\n watch(() => this[p], () => {\n if (this.font) this.refreshGeometry();\n });\n });\n\n const loader = new FontLoader();\n loader.load(this.fontSrc, (font) => {\n this.font = font;\n this.createGeometry();\n this.initMesh();\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new TextBufferGeometry(this.text, {\n font: this.font,\n size: this.size,\n height: this.height,\n depth: this.depth,\n curveSegments: this.curveSegments,\n bevelEnabled: this.bevelEnabled,\n bevelThickness: this.bevelThickness,\n bevelSize: this.bevelSize,\n bevelOffset: this.bevelOffset,\n bevelSegments: this.bevelSegments,\n });\n\n if (this.align === 'center') {\n this.geometry.center();\n }\n },\n },\n};\n","import { TorusBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 0.5 },\n tube: { type: Number, default: 0.4 },\n radialSegments: { type: Number, default: 8 },\n tubularSegments: { type: Number, default: 6 },\n arc: { type: Number, default: Math.PI * 2 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'tube', 'radialSegments', 'tubularSegments', 'arc'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new TorusBufferGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.arc);\n },\n },\n __hmrId: 'Torus',\n};\n","import { TorusKnotBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n radius: { type: Number, default: 0.5 },\n tube: { type: Number, default: 0.4 },\n radialSegments: { type: Number, default: 64 },\n tubularSegments: { type: Number, default: 8 },\n p: { type: Number, default: 2 },\n q: { type: Number, default: 3 },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['radius', 'tube', 'radialSegments', 'tubularSegments', 'p', 'q'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new TorusKnotBufferGeometry(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q);\n },\n },\n __hmrId: 'TorusKnot',\n};\n","import { Curve, TubeBufferGeometry } from 'three';\nimport { watch } from 'vue';\nimport Mesh from './Mesh.js';\n\nexport default {\n extends: Mesh,\n props: {\n path: Curve,\n tubularSegments: { type: Number, default: 64 },\n radius: { type: Number, default: 1 },\n radialSegments: { type: Number, default: 8 },\n closed: { type: Boolean, default: false },\n },\n created() {\n this.createGeometry();\n\n const watchProps = ['path', 'tubularSegments', 'radius', 'radialSegments', 'closed'];\n watchProps.forEach(prop => {\n watch(() => this[prop], () => {\n this.refreshGeometry();\n });\n });\n },\n methods: {\n createGeometry() {\n this.geometry = new TubeBufferGeometry(this.path, this.tubularSegments, this.radius, this.radialSegments, this.closed);\n },\n },\n __hmrId: 'Tube',\n};\n","import {\r\n BackSide,\r\n CubeCamera,\r\n FrontSide,\r\n LinearMipmapLinearFilter,\r\n Mesh as TMesh,\r\n RGBFormat,\r\n WebGLCubeRenderTarget,\r\n} from 'three';\r\n// import { watch } from 'vue';\r\nimport Mesh from '../meshes/Mesh.js';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n cubeRTSize: { type: Number, default: 512 },\r\n cubeCameraNear: { type: Number, default: 0.1 },\r\n cubeCameraFar: { type: Number, default: 2000 },\r\n autoUpdate: Boolean,\r\n },\r\n mounted() {\r\n this.initGem();\r\n if (this.autoUpdate) this.three.onBeforeRender(this.updateCubeRT);\r\n else this.rendererComponent.onMounted(this.updateCubeRT);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateCubeRT);\r\n if (this.meshBack) this.scene.remove(this.meshBack);\r\n if (this.materialBack) this.materialBack.dispose();\r\n },\r\n methods: {\r\n initGem() {\r\n const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });\r\n this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);\r\n useBindProp(this, 'position', this.cubeCamera.position);\r\n this.scene.add(this.cubeCamera);\r\n\r\n this.material.side = FrontSide;\r\n this.material.envMap = cubeRT.texture;\r\n this.material.envMapIntensity = 10;\r\n this.material.metalness = 0;\r\n this.material.roughness = 0;\r\n this.material.opacity = 0.75;\r\n this.material.transparent = true;\r\n this.material.premultipliedAlpha = true;\r\n this.material.needsUpdate = true;\r\n\r\n this.materialBack = this.material.clone();\r\n this.materialBack.side = BackSide;\r\n this.materialBack.envMapIntensity = 5;\r\n this.materialBack.metalness = 1;\r\n this.materialBack.roughness = 0;\r\n this.materialBack.opacity = 0.5;\r\n\r\n this.meshBack = new TMesh(this.geometry, this.materialBack);\r\n\r\n useBindProp(this, 'position', this.meshBack.position);\r\n useBindProp(this, 'rotation', this.meshBack.rotation);\r\n useBindProp(this, 'scale', this.meshBack.scale);\r\n this.scene.add(this.meshBack);\r\n },\r\n updateCubeRT() {\r\n this.mesh.visible = false;\r\n this.meshBack.visible = false;\r\n this.cubeCamera.update(this.three.renderer, this.scene);\r\n this.mesh.visible = true;\r\n this.meshBack.visible = true;\r\n },\r\n },\r\n __hmrId: 'Gem',\r\n};\r\n","import { DoubleSide, MeshBasicMaterial, PlaneBufferGeometry, TextureLoader } from 'three';\r\nimport { watch } from 'vue';\r\nimport Mesh from './Mesh.js';\r\n\r\nexport default {\r\n emits: ['loaded'],\r\n extends: Mesh,\r\n props: {\r\n src: String,\r\n width: Number,\r\n height: Number,\r\n keepSize: Boolean,\r\n },\r\n created() {\r\n this.createGeometry();\r\n this.createMaterial();\r\n this.initMesh();\r\n\r\n watch(() => this.src, this.refreshTexture);\r\n\r\n ['width', 'height'].forEach(p => {\r\n watch(() => this[p], this.resize);\r\n });\r\n\r\n if (this.keepSize) this.three.onAfterResize(this.resize);\r\n },\r\n methods: {\r\n createGeometry() {\r\n this.geometry = new PlaneBufferGeometry(1, 1, 1, 1);\r\n },\r\n createMaterial() {\r\n this.material = new MeshBasicMaterial({ side: DoubleSide, map: this.loadTexture() });\r\n },\r\n loadTexture() {\r\n return new TextureLoader().load(this.src, this.onLoaded);\r\n },\r\n refreshTexture() {\r\n if (this.texture) this.texture.dispose();\r\n this.material.map = this.loadTexture();\r\n this.material.needsUpdate = true;\r\n },\r\n onLoaded(texture) {\r\n this.texture = texture;\r\n this.resize();\r\n this.$emit('loaded');\r\n },\r\n resize() {\r\n if (!this.texture) return;\r\n const screen = this.three.size;\r\n const iW = this.texture.image.width;\r\n const iH = this.texture.image.height;\r\n const iRatio = iW / iH;\r\n let w, h;\r\n if (this.width && this.height) {\r\n w = this.width * screen.wWidth / screen.width;\r\n h = this.height * screen.wHeight / screen.height;\r\n } else if (this.width) {\r\n w = this.width * screen.wWidth / screen.width;\r\n h = w / iRatio;\r\n } else if (this.height) {\r\n h = this.height * screen.wHeight / screen.height;\r\n w = h * iRatio;\r\n }\r\n this.mesh.scale.x = w;\r\n this.mesh.scale.y = h;\r\n },\r\n },\r\n __hmrId: 'Image',\r\n};\r\n","import { InstancedMesh } from 'three';\r\nimport { watch } from 'vue';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n inject: ['three', 'scene'],\r\n props: {\r\n materialId: String,\r\n count: Number,\r\n position: Object,\r\n castShadow: Boolean,\r\n receiveShadow: Boolean,\r\n },\r\n provide() {\r\n return {\r\n mesh: this,\r\n };\r\n },\r\n beforeMount() {\r\n if (!this.$slots.default) {\r\n console.error('Missing Geometry');\r\n }\r\n },\r\n mounted() {\r\n this.initMesh();\r\n },\r\n unmounted() {\r\n this.scene.remove(this.mesh);\r\n },\r\n methods: {\r\n initMesh() {\r\n if (!this.material && this.materialId) {\r\n this.material = this.three.materials[this.materialId];\r\n }\r\n\r\n this.mesh = new InstancedMesh(this.geometry, this.material, this.count);\r\n\r\n useBindProp(this, 'position', this.mesh.position);\r\n useBindProp(this, 'rotation', this.mesh.rotation);\r\n useBindProp(this, 'scale', this.mesh.scale);\r\n\r\n ['castShadow', 'receiveShadow'].forEach(p => {\r\n this.mesh[p] = this[p];\r\n watch(() => this[p], () => { this.mesh[p] = this[p]; });\r\n });\r\n\r\n // watch(() => this.materialId, () => {\r\n // this.mesh.material = this.three.materials[this.materialId];\r\n // });\r\n\r\n this.scene.add(this.mesh);\r\n },\r\n setGeometry(geometry) {\r\n this.geometry = geometry;\r\n if (this.mesh) this.mesh.geometry = geometry;\r\n },\r\n setMaterial(material) {\r\n this.material = material;\r\n if (this.mesh) this.mesh.material = material;\r\n },\r\n },\r\n render() {\r\n return this.$slots.default();\r\n },\r\n __hmrId: 'InstancedMesh',\r\n};\r\n","import {\r\n CubeCamera,\r\n LinearMipmapLinearFilter,\r\n RGBFormat,\r\n WebGLCubeRenderTarget,\r\n} from 'three';\r\n// import { watch } from 'vue';\r\nimport Mesh from './Mesh.js';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n cubeRTSize: { type: Number, default: 512 },\r\n cubeCameraNear: { type: Number, default: 0.1 },\r\n cubeCameraFar: { type: Number, default: 2000 },\r\n autoUpdate: Boolean,\r\n },\r\n mounted() {\r\n this.initMirrorMesh();\r\n if (this.autoUpdate) this.three.onBeforeRender(this.updateCubeRT);\r\n else this.rendererComponent.onMounted(this.updateCubeRT);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateCubeRT);\r\n },\r\n methods: {\r\n initMirrorMesh() {\r\n const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });\r\n this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);\r\n useBindProp(this, 'position', this.cubeCamera.position);\r\n this.scene.add(this.cubeCamera);\r\n\r\n this.material.envMap = cubeRT.texture;\r\n this.material.needsUpdate = true;\r\n },\r\n updateCubeRT() {\r\n this.mesh.visible = false;\r\n this.cubeCamera.update(this.three.renderer, this.scene);\r\n this.mesh.visible = true;\r\n },\r\n },\r\n __hmrId: 'MirrorMesh',\r\n};\r\n","import {\r\n CubeCamera,\r\n CubeRefractionMapping,\r\n LinearMipmapLinearFilter,\r\n RGBFormat,\r\n WebGLCubeRenderTarget,\r\n} from 'three';\r\n// import { watch } from 'vue';\r\nimport Mesh from './Mesh.js';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n extends: Mesh,\r\n props: {\r\n cubeRTSize: { type: Number, default: 512 },\r\n cubeCameraNear: { type: Number, default: 0.1 },\r\n cubeCameraFar: { type: Number, default: 2000 },\r\n autoUpdate: Boolean,\r\n },\r\n mounted() {\r\n this.initMirrorMesh();\r\n if (this.autoUpdate) this.three.onBeforeRender(this.updateCubeRT);\r\n else this.rendererComponent.onMounted(this.updateCubeRT);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateCubeRT);\r\n },\r\n methods: {\r\n initMirrorMesh() {\r\n const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { mapping: CubeRefractionMapping, format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter });\r\n this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT);\r\n useBindProp(this, 'position', this.cubeCamera.position);\r\n this.scene.add(this.cubeCamera);\r\n\r\n this.material.envMap = cubeRT.texture;\r\n this.material.refractionRatio = 0.95;\r\n this.material.needsUpdate = true;\r\n },\r\n updateCubeRT() {\r\n this.mesh.visible = false;\r\n this.cubeCamera.update(this.three.renderer, this.scene);\r\n this.mesh.visible = true;\r\n },\r\n },\r\n __hmrId: 'RefractionMesh',\r\n};\r\n","import { Sprite, SpriteMaterial, TextureLoader } from 'three';\r\nimport { watch } from 'vue';\r\nimport useBindProp from '../use/useBindProp.js';\r\n\r\nexport default {\r\n emits: ['ready', 'loaded'],\r\n inject: ['three', 'scene'],\r\n props: {\r\n src: String,\r\n position: Object,\r\n scale: Object,\r\n },\r\n mounted() {\r\n this.texture = new TextureLoader().load(this.src, this.onLoaded);\r\n this.material = new SpriteMaterial({ map: this.texture });\r\n this.sprite = new Sprite(this.material);\r\n this.geometry = this.sprite.geometry;\r\n\r\n useBindProp(this, 'position', this.sprite.position);\r\n useBindProp(this, 'scale', this.sprite.scale);\r\n\r\n // watch(() => this.src, () => {\r\n // this.texture = new TextureLoader().load(this.src, this.onLoaded);\r\n // this.material.map = this.texture;\r\n // });\r\n\r\n this.scene.add(this.sprite);\r\n this.$emit('ready');\r\n },\r\n unmounted() {\r\n this.texture.dispose();\r\n this.material.dispose();\r\n this.scene.remove(this.sprite);\r\n },\r\n methods: {\r\n onLoaded() {\r\n this.updateUV();\r\n this.$emit('loaded');\r\n },\r\n updateUV() {\r\n this.iWidth = this.texture.image.width;\r\n this.iHeight = this.texture.image.height;\r\n this.iRatio = this.iWidth / this.iHeight;\r\n\r\n let x = 0.5, y = 0.5;\r\n if (this.iRatio > 1) {\r\n y = 0.5 / this.iRatio;\r\n } else {\r\n x = 0.5 / this.iRatio;\r\n }\r\n\r\n const positions = this.geometry.attributes.position.array;\r\n positions[0] = -x; positions[1] = -y;\r\n positions[5] = x; positions[6] = -y;\r\n positions[10] = x; positions[11] = y;\r\n positions[15] = -x; positions[16] = y;\r\n this.geometry.attributes.position.needsUpdate = true;\r\n },\r\n },\r\n render() {\r\n return [];\r\n },\r\n __hmrId: 'Sprite',\r\n};\r\n","import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';\r\n\r\nexport default {\r\n setup() {\r\n return {\r\n passes: [],\r\n };\r\n },\r\n inject: ['three'],\r\n provide() {\r\n return {\r\n passes: this.passes,\r\n };\r\n },\r\n mounted() {\r\n this.three.onAfterInit(() => {\r\n this.composer = new EffectComposer(this.three.renderer);\r\n this.three.renderer.autoClear = false;\r\n this.passes.forEach(pass => {\r\n this.composer.addPass(pass);\r\n });\r\n this.three.composer = this.composer;\r\n });\r\n },\r\n render() {\r\n return this.$slots.default();\r\n },\r\n __hmrId: 'EffectComposer',\r\n};\r\n","export default {\r\n inject: ['three', 'passes'],\r\n beforeMount() {\r\n if (!this.passes) {\r\n console.error('Missing parent EffectComposer');\r\n }\r\n },\r\n unmounted() {\r\n if (this.pass.dispose) this.pass.dispose();\r\n },\r\n render() {\r\n return [];\r\n },\r\n __hmrId: 'EffectPass',\r\n};\r\n","import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n mounted() {\r\n if (!this.three.scene) {\r\n console.error('Missing Scene');\r\n }\r\n if (!this.three.camera) {\r\n console.error('Missing Camera');\r\n }\r\n const pass = new RenderPass(this.three.scene, this.three.camera);\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'RenderPass',\r\n};\r\n","import { BokehPass } from 'three/examples/jsm/postprocessing/BokehPass.js';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n props: {\r\n focus: {\r\n type: Number,\r\n default: 1,\r\n },\r\n aperture: {\r\n type: Number,\r\n default: 0.025,\r\n },\r\n maxblur: {\r\n type: Number,\r\n default: 0.01,\r\n },\r\n },\r\n watch: {\r\n focus() { this.pass.uniforms.focus.value = this.focus; },\r\n aperture() { this.pass.uniforms.aperture.value = this.aperture; },\r\n maxblur() { this.pass.uniforms.maxblur.value = this.maxblur; },\r\n },\r\n mounted() {\r\n if (!this.three.scene) {\r\n console.error('Missing Scene');\r\n }\r\n if (!this.three.camera) {\r\n console.error('Missing Camera');\r\n }\r\n const params = {\r\n focus: this.focus,\r\n aperture: this.aperture,\r\n maxblur: this.maxblur,\r\n width: this.three.size.width,\r\n height: this.three.size.height,\r\n };\r\n const pass = new BokehPass(this.three.scene, this.three.camera, params);\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'BokehPass',\r\n};\r\n","import { FilmPass } from 'three/examples/jsm/postprocessing/FilmPass.js';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n props: {\r\n noiseIntensity: {\r\n type: Number,\r\n default: 0.5,\r\n },\r\n scanlinesIntensity: {\r\n type: Number,\r\n default: 0.05,\r\n },\r\n scanlinesCount: {\r\n type: Number,\r\n default: 4096,\r\n },\r\n grayscale: {\r\n type: Number,\r\n default: 0,\r\n },\r\n },\r\n watch: {\r\n noiseIntensity() { this.pass.uniforms.nIntensity.value = this.noiseIntensity; },\r\n scanlinesIntensity() { this.pass.uniforms.sIntensity.value = this.scanlinesIntensity; },\r\n scanlinesCount() { this.pass.uniforms.sCount.value = this.scanlinesCount; },\r\n grayscale() { this.pass.uniforms.grayscale.value = this.grayscale; },\r\n },\r\n mounted() {\r\n const pass = new FilmPass(this.noiseIntensity, this.scanlinesIntensity, this.scanlinesCount, this.grayscale);\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'FilmPass',\r\n};\r\n","import { HalftonePass } from 'three/examples/jsm/postprocessing/HalftonePass.js';\r\nimport { watch } from 'vue';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n props: {\r\n shape: { type: Number, default: 1 },\r\n radius: { type: Number, default: 4 },\r\n rotateR: { type: Number, default: Math.PI / 12 * 1 },\r\n rotateG: { type: Number, default: Math.PI / 12 * 2 },\r\n rotateB: { type: Number, default: Math.PI / 12 * 3 },\r\n scatter: { type: Number, default: 0 },\r\n },\r\n mounted() {\r\n const pass = new HalftonePass(this.three.size.width, this.three.size.height, {});\r\n\r\n ['shape', 'radius', 'rotateR', 'rotateG', 'rotateB', 'scatter'].forEach(p => {\r\n pass.uniforms[p].value = this[p];\r\n watch(() => this[p], () => {\r\n pass.uniforms[p].value = this[p];\r\n });\r\n });\r\n\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'HalftonePass',\r\n};\r\n","import { Vector2 } from 'three';\r\nimport { SAOPass } from 'three/examples/jsm/postprocessing/SAOPass.js';\r\nimport { watch } from 'vue';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n props: {\r\n depthTexture: { type: Boolean, default: false },\r\n useNormals: { type: Boolean, default: false },\r\n resolution: Object,\r\n },\r\n mounted() {\r\n if (!this.three.scene) {\r\n console.error('Missing Scene');\r\n }\r\n if (!this.three.camera) {\r\n console.error('Missing Camera');\r\n }\r\n\r\n const resolution = this.resolution ? new Vector2(this.resolution.x, this.resolution.y) : new Vector2(this.three.size.width, this.three.size.height);\r\n const pass = new SAOPass(this.three.scene, this.three.camera, this.depthTexture, this.useNormals, resolution);\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'SAOPass',\r\n};\r\n","import { Vector2 } from 'three';\r\nimport { UnrealBloomPass } from 'three/examples/jsm/postprocessing/UnrealBloomPass.js';\r\nimport EffectPass from './EffectPass.js';\r\n\r\nexport default {\r\n extends: EffectPass,\r\n props: {\r\n strength: { type: Number, default: 1.5 },\r\n radius: { type: Number, default: 0 },\r\n threshold: { type: Number, default: 0 },\r\n },\r\n watch: {\r\n strength() { this.pass.strength = this.strength; },\r\n radius() { this.pass.radius = this.radius; },\r\n threshold() { this.pass.threshold = this.threshold; },\r\n },\r\n mounted() {\r\n const size = new Vector2(this.three.size.width, this.three.size.height);\r\n const pass = new UnrealBloomPass(size, this.strength, this.radius, this.threshold);\r\n this.passes.push(pass);\r\n this.pass = pass;\r\n },\r\n __hmrId: 'UnrealBloomPass',\r\n};\r\n","export default `\n//\n// Description : Array and textureless GLSL 2D simplex noise function.\n// Author : Ian McEwan, Ashima Arts.\n// Maintainer : ijm\n// Lastmod : 20110822 (ijm)\n// License : Copyright (C) 2011 Ashima Arts. All rights reserved.\n// Distributed under the MIT License. See LICENSE file.\n// https://github.com/ashima/webgl-noise\n//\n\nvec3 mod289(vec3 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec2 mod289(vec2 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec3 permute(vec3 x) {\n return mod289(((x*34.0)+1.0)*x);\n}\n\nfloat snoise(vec2 v)\n{\n const vec4 C = vec4(0.211324865405187, // (3.0-sqrt(3.0))/6.0\n 0.366025403784439, // 0.5*(sqrt(3.0)-1.0)\n -0.577350269189626, // -1.0 + 2.0 * C.x\n 0.024390243902439); // 1.0 / 41.0\n // First corner\n vec2 i = floor(v + dot(v, C.yy) );\n vec2 x0 = v - i + dot(i, C.xx);\n\n // Other corners\n vec2 i1;\n i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n\n // Permutations\n i = mod289(i); // Avoid truncation effects in permutation\n vec3 p = permute( permute( i.y + vec3(0.0, i1.y, 1.0 ))\n + i.x + vec3(0.0, i1.x, 1.0 ));\n\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\n m = m*m ;\n m = m*m ;\n\n // Gradients: 41 points uniformly over a line, mapped onto a diamond.\n // The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)\n\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n\n // Normalise gradients implicitly by scaling m\n // Approximation of: m *= inversesqrt( a0*a0 + h*h );\n m *= 1.79284291400159 - 0.85373472095314 * ( a0*a0 + h*h );\n\n // Compute final noise value at P\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n`;\n","import { DoubleSide, MeshBasicMaterial, PlaneBufferGeometry } from 'three';\r\nimport { watch } from 'vue';\r\nimport Image from '../../meshes/Image.js';\r\nimport snoise2 from '../../glsl/snoise2.glsl.js';\r\n\r\nexport default {\r\n extends: Image,\r\n props: {\r\n widthSegments: { type: Number, default: 20 },\r\n heightSegments: { type: Number, default: 20 },\r\n timeCoef: { type: Number, default: 0.001 },\r\n noiseCoef: { type: Number, default: 1 },\r\n zCoef: { type: Number, default: 5 },\r\n dispCoef: { type: Number, default: 0.05 },\r\n },\r\n setup(props) {\r\n // uniforms\r\n const uTime = { value: 0 };\r\n const uNoiseCoef = { value: props.noiseCoef };\r\n watch(() => props.noiseCoef, (value) => { uNoiseCoef.value = value; });\r\n const uZCoef = { value: props.zCoef };\r\n watch(() => props.zCoef, (value) => { uZCoef.value = value; });\r\n const uDispCoef = { value: props.dispCoef };\r\n watch(() => props.dispCoef, (value) => { uDispCoef.value = value; });\r\n\r\n return {\r\n uTime, uNoiseCoef, uZCoef, uDispCoef,\r\n };\r\n },\r\n mounted() {\r\n this.startTime = Date.now();\r\n this.three.onBeforeRender(this.updateTime);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateTime);\r\n },\r\n methods: {\r\n createGeometry() {\r\n this.geometry = new PlaneBufferGeometry(1, 1, this.widthSegments, this.heightSegments);\r\n },\r\n createMaterial() {\r\n this.material = new MeshBasicMaterial({ side: DoubleSide, map: this.loadTexture() });\r\n this.material.onBeforeCompile = (shader) => {\r\n shader.uniforms.uTime = this.uTime;\r\n shader.uniforms.uNoiseCoef = this.uNoiseCoef;\r\n shader.uniforms.uZCoef = this.uZCoef;\r\n shader.uniforms.uDispCoef = this.uDispCoef;\r\n shader.vertexShader = `\r\n uniform float uTime;\r\n uniform float uNoiseCoef;\r\n uniform float uZCoef;\r\n varying float vNoise;\r\n ${snoise2}\r\n ` + shader.vertexShader;\r\n\r\n shader.vertexShader = shader.vertexShader.replace(\r\n '#include ',\r\n ` \r\n vec3 p = vec3(position * uNoiseCoef);\r\n p.x += uTime;\r\n vNoise = snoise(p.xy);\r\n vec3 transformed = vec3(position);\r\n transformed.z += vNoise * uZCoef;\r\n `\r\n );\r\n\r\n shader.fragmentShader = `\r\n uniform float uDispCoef;\r\n varying float vNoise;\r\n ` + shader.fragmentShader;\r\n\r\n shader.fragmentShader = shader.fragmentShader.replace(\r\n '#include ',\r\n `\r\n vec4 texelColor = texture2D(map, vUv);\r\n vec4 dispTexel = texture2D(map, vUv + vec2(vNoise * uDispCoef, 0));\r\n texelColor.r = dispTexel.r;\r\n diffuseColor = texelColor;\r\n `\r\n );\r\n this.materialShader = shader;\r\n };\r\n },\r\n updateTime() {\r\n this.uTime.value = (Date.now() - this.startTime) * this.timeCoef;\r\n },\r\n },\r\n __hmrId: 'NoisyImage',\r\n};\r\n","import { watch } from 'vue';\r\nimport Plane from '../../meshes/Plane.js';\r\nimport snoise3 from '../../glsl/snoise3.glsl.js';\r\n\r\nexport default {\r\n extends: Plane,\r\n props: {\r\n timeCoef: { type: Number, default: 0.001 },\r\n noiseCoef: { type: Number, default: 1 },\r\n zCoef: { type: Number, default: 5 },\r\n },\r\n setup(props) {\r\n // uniforms\r\n const uTime = { value: 0 };\r\n const uNoiseCoef = { value: props.noiseCoef };\r\n watch(() => props.noiseCoef, (value) => { uNoiseCoef.value = value; });\r\n const uZCoef = { value: props.zCoef };\r\n watch(() => props.zCoef, (value) => { uZCoef.value = value; });\r\n\r\n return {\r\n uTime, uNoiseCoef, uZCoef,\r\n };\r\n },\r\n mounted() {\r\n this.updateMaterial();\r\n this.startTime = Date.now();\r\n this.three.onBeforeRender(this.updateTime);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateTime);\r\n },\r\n methods: {\r\n updateMaterial() {\r\n this.material.onBeforeCompile = (shader) => {\r\n shader.uniforms.uTime = this.uTime;\r\n shader.uniforms.uNoiseCoef = this.uNoiseCoef;\r\n shader.uniforms.uZCoef = this.uZCoef;\r\n shader.vertexShader = `\r\n uniform float uTime;\r\n uniform float uNoiseCoef;\r\n uniform float uZCoef;\r\n varying float vNoise;\r\n ${snoise3}\r\n ` + shader.vertexShader;\r\n\r\n shader.vertexShader = shader.vertexShader.replace(\r\n '#include ',\r\n ` \r\n vec3 p = vec3(position * uNoiseCoef);\r\n vNoise = snoise(vec3(p.x, p.y, uTime));\r\n vec3 transformed = vec3(position);\r\n transformed.z += vNoise * uZCoef;\r\n `\r\n );\r\n this.materialShader = shader;\r\n };\r\n this.material.needsupdate = true;\r\n },\r\n updateTime() {\r\n this.uTime.value = (Date.now() - this.startTime) * this.timeCoef;\r\n },\r\n },\r\n __hmrId: 'NoisyPlane',\r\n};\r\n","import { watch } from 'vue';\r\nimport Sphere from '../../meshes/Sphere.js';\r\nimport snoise4 from '../../glsl/snoise4.glsl.js';\r\n\r\nexport default {\r\n extends: Sphere,\r\n props: {\r\n radius: { type: Number, default: 20 },\r\n widthSegments: { type: Number, default: 128 },\r\n heightSegments: { type: Number, default: 128 },\r\n timeCoef: { type: Number, default: 0.001 },\r\n noiseCoef: { type: Number, default: 0.05 },\r\n dispCoef: { type: Number, default: 5 },\r\n },\r\n setup(props) {\r\n // uniforms\r\n const uTime = { value: 0 };\r\n const uNoiseCoef = { value: props.noiseCoef };\r\n watch(() => props.noiseCoef, (value) => { uNoiseCoef.value = value; });\r\n const uDispCoef = { value: props.dispCoef };\r\n watch(() => props.dispCoef, (value) => { uDispCoef.value = value; });\r\n\r\n return {\r\n uTime, uNoiseCoef, uDispCoef,\r\n };\r\n },\r\n mounted() {\r\n this.updateMaterial();\r\n\r\n this.startTime = Date.now();\r\n this.three.onBeforeRender(this.updateTime);\r\n },\r\n unmounted() {\r\n this.three.offBeforeRender(this.updateTime);\r\n },\r\n methods: {\r\n updateMaterial() {\r\n this.material.onBeforeCompile = (shader) => {\r\n shader.uniforms.uTime = this.uTime;\r\n shader.uniforms.uNoiseCoef = this.uNoiseCoef;\r\n shader.uniforms.uDispCoef = this.uDispCoef;\r\n shader.vertexShader = `\r\n uniform float uTime;\r\n uniform float uNoiseCoef;\r\n uniform float uDispCoef;\r\n varying float vNoise;\r\n ${snoise4}\r\n ` + shader.vertexShader;\r\n\r\n shader.vertexShader = shader.vertexShader.replace(\r\n '#include ',\r\n `\r\n vec4 p = vec4(vec3(position * uNoiseCoef), uTime);\r\n vNoise = snoise(p);\r\n vec3 transformed = vec3(position);\r\n transformed += normalize(position) * vNoise * uDispCoef;\r\n `\r\n );\r\n this.materialShader = shader;\r\n };\r\n this.material.needsupdate = true;\r\n },\r\n updateTime() {\r\n this.uTime.value = (Date.now() - this.startTime) * this.timeCoef;\r\n },\r\n },\r\n __hmrId: 'NoisySphere',\r\n};\r\n","import { watch } from 'vue';\nimport Text from '../../meshes/Text.js';\nimport snoise2 from '../../glsl/snoise2.glsl.js';\n\nexport default {\n extends: Text,\n props: {\n timeCoef: { type: Number, default: 0.001 },\n noiseCoef: { type: Number, default: 0.015 },\n zCoef: { type: Number, default: 10 },\n },\n setup(props) {\n // uniforms\n const uTime = { value: 0 };\n const uNoiseCoef = { value: props.noiseCoef };\n watch(() => props.noiseCoef, (value) => { uNoiseCoef.value = value; });\n const uZCoef = { value: props.zCoef };\n watch(() => props.zCoef, (value) => { uZCoef.value = value; });\n\n return {\n uTime, uNoiseCoef, uZCoef,\n };\n },\n mounted() {\n this.updateMaterial();\n\n this.startTime = Date.now();\n this.three.onBeforeRender(this.updateTime);\n },\n unmounted() {\n this.three.offBeforeRender(this.updateTime);\n },\n methods: {\n updateMaterial() {\n this.material.onBeforeCompile = (shader) => {\n shader.uniforms.uTime = this.uTime;\n shader.uniforms.uNoiseCoef = this.uNoiseCoef;\n shader.uniforms.uZCoef = this.uZCoef;\n shader.vertexShader = `\n uniform float uTime;\n uniform float uNoiseCoef;\n uniform float uZCoef;\n ${snoise2}\n ` + shader.vertexShader;\n\n shader.vertexShader = shader.vertexShader.replace(\n '#include ',\n ` \n vec3 p = vec3(position * uNoiseCoef);\n p.x += uTime;\n float noise = snoise(p.xy);\n vec3 transformed = vec3(position);\n transformed.z += noise * uZCoef;\n `\n );\n this.materialShader = shader;\n };\n this.material.needsupdate = true;\n },\n updateTime() {\n this.uTime.value = (Date.now() - this.startTime) * this.timeCoef;\n },\n },\n __hmrId: 'NoisyText',\n};\n","\r\nimport {\r\n BufferGeometry,\r\n DoubleSide,\r\n Face3,\r\n Geometry,\r\n InstancedBufferAttribute,\r\n InstancedMesh,\r\n MathUtils,\r\n MeshBasicMaterial,\r\n Object3D,\r\n Vector2,\r\n Vector3,\r\n} from 'three';\r\n\r\nexport default class AnimatedPlane {\r\n constructor(params) {\r\n Object.entries(params).forEach(([key, value]) => {\r\n this[key] = value;\r\n });\r\n\r\n this.o3d = new Object3D();\r\n this.uProgress = { value: 0 };\r\n this.uvScale = new Vector2();\r\n\r\n this.initMaterial();\r\n this.initPlane();\r\n }\r\n\r\n initMaterial() {\r\n this.material = new MeshBasicMaterial({\r\n side: DoubleSide,\r\n transparent: true,\r\n map: this.texture,\r\n onBeforeCompile: shader => {\r\n shader.uniforms.progress = this.uProgress;\r\n shader.uniforms.uvScale = { value: this.uvScale };\r\n shader.vertexShader = `\r\n uniform float progress;\r\n uniform vec2 uvScale;\r\n\r\n attribute vec3 offset;\r\n attribute vec3 rotation;\r\n attribute vec2 uvOffset;\r\n\r\n mat3 rotationMatrixXYZ(vec3 r)\r\n {\r\n float cx = cos(r.x);\r\n float sx = sin(r.x);\r\n float cy = cos(r.y);\r\n float sy = sin(r.y);\r\n float cz = cos(r.z);\r\n float sz = sin(r.z);\r\n\r\n return mat3(\r\n cy * cz, cx * sz + sx * sy * cz, sx * sz - cx * sy * cz,\r\n -cy * sz, cx * cz - sx * sy * sz, sx * cz + cx * sy * sz,\r\n sy, -sx * cy, cx * cy\r\n );\r\n }\r\n ` + shader.vertexShader;\r\n\r\n shader.vertexShader = shader.vertexShader.replace('#include ', `\r\n #include \r\n vUv = vUv * uvScale + uvOffset;\r\n `);\r\n\r\n shader.vertexShader = shader.vertexShader.replace('#include ', `\r\n mat3 rotMat = rotationMatrixXYZ(progress * rotation);\r\n transformed = rotMat * transformed;\r\n\r\n vec4 mvPosition = vec4(transformed, 1.0);\r\n #ifdef USE_INSTANCING\r\n mvPosition = instanceMatrix * mvPosition;\r\n #endif\r\n\r\n mvPosition.xyz += progress * offset;\r\n\r\n mvPosition = modelViewMatrix * mvPosition;\r\n gl_Position = projectionMatrix * mvPosition;\r\n `);\r\n },\r\n });\r\n }\r\n\r\n initPlane() {\r\n const { width, wWidth, wHeight } = this.screen;\r\n this.wSize = this.size * wWidth / width;\r\n this.nx = Math.ceil(wWidth / this.wSize) + 1;\r\n this.ny = Math.ceil(wHeight / this.wSize) + 1;\r\n this.icount = this.nx * this.ny;\r\n\r\n this.initGeometry();\r\n this.initUV();\r\n this.initAnimAttributes();\r\n\r\n if (this.imesh) {\r\n this.o3d.remove(this.imesh);\r\n }\r\n this.imesh = new InstancedMesh(this.bGeometry, this.material, this.icount);\r\n this.o3d.add(this.imesh);\r\n\r\n const dummy = new Object3D();\r\n let index = 0;\r\n let x = -(wWidth - (wWidth - this.nx * this.wSize)) / 2 + this.dx;\r\n for (let i = 0; i < this.nx; i++) {\r\n let y = -(wHeight - (wHeight - this.ny * this.wSize)) / 2 + this.dy;\r\n for (let j = 0; j < this.ny; j++) {\r\n dummy.position.set(x, y, 0);\r\n dummy.updateMatrix();\r\n this.imesh.setMatrixAt(index++, dummy.matrix);\r\n y += this.wSize;\r\n }\r\n x += this.wSize;\r\n }\r\n }\r\n\r\n initGeometry() {\r\n // square\r\n const geometry = new Geometry();\r\n geometry.vertices.push(new Vector3(0, 0, 0));\r\n geometry.vertices.push(new Vector3(this.wSize, 0, 0));\r\n geometry.vertices.push(new Vector3(0, this.wSize, 0));\r\n geometry.vertices.push(new Vector3(this.wSize, this.wSize, 0));\r\n geometry.faces.push(new Face3(0, 2, 1));\r\n geometry.faces.push(new Face3(2, 3, 1));\r\n\r\n geometry.faceVertexUvs[0].push([\r\n new Vector2(0, 0),\r\n new Vector2(0, 1),\r\n new Vector2(1, 0),\r\n ]);\r\n geometry.faceVertexUvs[0].push([\r\n new Vector2(0, 1),\r\n new Vector2(1, 1),\r\n new Vector2(1, 0),\r\n ]);\r\n\r\n // geometry.computeFaceNormals();\r\n // geometry.computeVertexNormals();\r\n\r\n // center\r\n this.dx = this.wSize / 2;\r\n this.dy = this.wSize / 2;\r\n geometry.translate(-this.dx, -this.dy, 0);\r\n\r\n this.bGeometry = new BufferGeometry().fromGeometry(geometry);\r\n }\r\n\r\n initAnimAttributes() {\r\n const { randFloat: rnd, randFloatSpread: rndFS } = MathUtils;\r\n const v3 = new Vector3();\r\n\r\n const offsets = new Float32Array(this.icount * 3);\r\n for (let i = 0; i < offsets.length; i += 3) {\r\n if (this.anim === 1) v3.set(rndFS(10), rnd(50, 100), rnd(20, 50)).toArray(offsets, i);\r\n else v3.set(rndFS(20), rndFS(20), rnd(20, 200)).toArray(offsets, i);\r\n }\r\n this.bGeometry.setAttribute('offset', new InstancedBufferAttribute(offsets, 3));\r\n\r\n const rotations = new Float32Array(this.icount * 3);\r\n const angle = Math.PI * 4;\r\n for (let i = 0; i < rotations.length; i += 3) {\r\n rotations[i] = rndFS(angle);\r\n rotations[i + 1] = rndFS(angle);\r\n rotations[i + 2] = rndFS(angle);\r\n }\r\n this.bGeometry.setAttribute('rotation', new InstancedBufferAttribute(rotations, 3));\r\n }\r\n\r\n initUV() {\r\n const ratio = this.nx / this.ny;\r\n const tRatio = this.texture.image.width / this.texture.image.height;\r\n if (ratio > tRatio) this.uvScale.set(1 / this.nx, (tRatio / ratio) / this.ny);\r\n else this.uvScale.set((ratio / tRatio) / this.nx, 1 / this.ny);\r\n const nW = this.uvScale.x * this.nx;\r\n const nH = this.uvScale.y * this.ny;\r\n\r\n const v2 = new Vector2();\r\n const uvOffsets = new Float32Array(this.icount * 2);\r\n for (let i = 0; i < this.nx; i++) {\r\n for (let j = 0; j < this.ny; j++) {\r\n v2.set(\r\n this.uvScale.x * i + (1 - nW) / 2,\r\n this.uvScale.y * j + (1 - nH) / 2\r\n ).toArray(uvOffsets, (i * this.ny + j) * 2);\r\n }\r\n }\r\n this.bGeometry.setAttribute('uvOffset', new InstancedBufferAttribute(uvOffsets, 2));\r\n }\r\n\r\n setTexture(texture) {\r\n this.texture = texture;\r\n this.material.map = texture;\r\n this.initUV();\r\n }\r\n\r\n resize() {\r\n this.initPlane();\r\n }\r\n}\r\n","\r\n\r\n\r\n","import { TextureLoader } from 'three';\r\n\r\nexport default function useTextures() {\r\n const loader = new TextureLoader();\r\n const textures = [];\r\n\r\n const loadTexture = (img, index) => {\r\n return new Promise(resolve => {\r\n loader.load(\r\n img.src,\r\n texture => {\r\n textures[index] = texture;\r\n resolve(texture);\r\n }\r\n );\r\n });\r\n };\r\n\r\n const loadTextures = (images, cb) => {\r\n textures.splice(0);\r\n Promise.all(images.map(loadTexture)).then(cb);\r\n };\r\n\r\n return {\r\n textures,\r\n loadTextures,\r\n };\r\n};\r\n","\r\n\r\n\r\n","import * as TROIS from './index.js';\r\n\r\nexport const TroisJSVuePlugin = {\r\n install: (app) => {\r\n const comps = [\r\n 'Camera',\r\n 'PerspectiveCamera',\r\n 'Renderer',\r\n 'Scene',\r\n // 'Texture',\r\n // 'CubeTexture',\r\n\r\n 'BoxGeometry',\r\n 'CircleGeometry',\r\n 'ConeGeometry',\r\n 'CylinderGeometry',\r\n 'DodecahedronGeometry',\r\n 'IcosahedronGeometry',\r\n 'LatheGeometry',\r\n 'OctahedronGeometry',\r\n 'PolyhedronGeometry',\r\n 'RingGeometry',\r\n 'SphereGeometry',\r\n 'TetrahedronGeometry',\r\n 'TorusGeometry',\r\n 'TorusKnotGeometry',\r\n 'TubeGeometry',\r\n\r\n 'AmbientLight',\r\n 'DirectionalLight',\r\n 'PointLight',\r\n 'SpotLight',\r\n\r\n 'BasicMaterial',\r\n 'LambertMaterial',\r\n 'PhongMaterial',\r\n 'PhysicalMaterial',\r\n 'ShaderMaterial',\r\n 'StandardMaterial',\r\n 'SubSurfaceMaterial',\r\n 'ToonMaterial',\r\n\r\n 'Map',\r\n 'EnvMap',\r\n\r\n 'Box',\r\n 'Circle',\r\n 'Cone',\r\n 'Cylinder',\r\n 'Dodecahedron',\r\n 'Icosahedron',\r\n 'Mesh',\r\n 'Lathe',\r\n 'Octahedron',\r\n 'Plane',\r\n 'Polyhedron',\r\n 'Ring',\r\n 'Sphere',\r\n 'Tetrahedron',\r\n 'Text',\r\n 'Torus',\r\n 'TorusKnot',\r\n 'Tube',\r\n\r\n 'Gem',\r\n 'Image',\r\n 'InstancedMesh',\r\n 'MirrorMesh',\r\n 'RefractionMesh',\r\n 'Sprite',\r\n\r\n 'BokehPass',\r\n 'EffectComposer',\r\n 'FilmPass',\r\n 'HalftonePass',\r\n 'RenderPass',\r\n 'SAOPass',\r\n 'UnrealBloomPass',\r\n\r\n 'GLTFViewer',\r\n ];\r\n\r\n comps.forEach(comp => {\r\n app.component(comp, TROIS[comp]);\r\n });\r\n },\r\n};\r\n"],"names":["useThree","const","conf","canvas","antialias","alpha","autoClear","orbit_ctrl","mouse_move","mouse_raycast","resize","width","height","size","wWidth","wHeight","ratio","afterInitCallbacks","afterResizeCallbacks","beforeRenderCallbacks","mouse","Vector2","mouseV3","Vector3","mousePlane","Plane","raycaster","Raycaster","obj","renderer","camera","cameraCtrl","materials","scene","params","Object","entries","forEach","key","value","console","error","WebGLRenderer","orbitCtrl","OrbitControls","domElement","setSize","onResize","window","addEventListener","mouse_move_element","document","body","onMousemove","onMouseleave","c","removeEventListener","dispose","this","update","render","composer","callback","push","filter","e","x","clientX","y","clientY","updateMouseV3","getWorldDirection","normal","normalize","setFromCamera","ray","intersectPlane","innerWidth","innerHeight","clientWidth","clientHeight","aspect","updateProjectionMatrix","wsize","vFOV","fov","Math","PI","h","tan","abs","position","z","getCameraSize","props","type","Boolean","default","shadow","mouseMove","String","mouseRaycast","Element","setup","three","raf","onMountedCallbacks","provide","rendererComponent","mounted","$refs","init","shadowMap","enabled","animateC","animate","beforeUnmount","methods","onMounted","onBeforeRender","onAfterResize","requestAnimationFrame","renderC","ref","$slots","setFromProp","o","prop","propsValues","exclude","values","includes","lerp","value1","value2","amount","lerpv3","v1","v2","limit","val","min","max","useBindProp","comp","object","toRef","watch","deep","inject","Number","far","near","created","PerspectiveCamera","p","__hmrId","id","background","Scene","Color","emits","src","onLoad","Function","onProgress","onError","createTexture","refreshTexture","unmounted","texture","TextureLoader","load","onLoaded","$emit","path","urls","Array","CubeTextureLoader","setPath","rotateX","rotateY","rotateZ","mesh","watchProps","$props","beforeMount","createGeometry","rotateGeometry","setGeometry","geometry","addWatchers","refreshGeometry","oldGeo","extends","Geometry","depth","widthSegments","heightSegments","depthSegments","let","w","d","BoxBufferGeometry","radius","segments","thetaStart","thetaLength","CircleBufferGeometry","radialSegments","openEnded","ConeBufferGeometry","radiusTop","radiusBottom","CylinderBufferGeometry","detail","DodecahedronBufferGeometry","IcosahedronBufferGeometry","points","phiStart","phiLength","LatheBufferGeometry","OctahedronBufferGeometry","vertices","indices","PolyhedronBufferGeometry","innerRadius","outerRadius","thetaSegments","phiSegments","RingBufferGeometry","SphereBufferGeometry","TetrahedronBufferGeometry","tube","tubularSegments","arc","TorusBufferGeometry","q","TorusKnotBufferGeometry","Curve","radiusSegments","closed","TubeBufferGeometry","color","intensity","castShadow","shadowMapSize","light","target","mapSize","add","remove","Light","AmbientLight","DirectionalLight","distance","decay","PointLight","angle","penumbra","SpotLight","depthTest","depthWrite","flatShading","fog","opacity","side","FrontSide","transparent","vertexColors","material","createMaterial","setMaterial","_addWatchers","setMap","map","needsUpdate","setEnvMap","envMap","set","Material","MeshBasicMaterial","MeshLambertMaterial","MeshPhongMaterial","emissive","emissiveIntensity","metalness","roughness","MeshStandardMaterial","StandardMaterial","MeshPhysicalMaterial","string","find","replace","meshphongFragHead","ShaderChunk","meshphong_frag","slice","indexOf","meshphongFragBody","SubsurfaceScatteringShader","uniforms","UniformsUtils","merge","ShaderLib","phong","thicknessColor","thicknessDistortion","thicknessAmbient","thicknessAttenuation","thicknessPower","thicknessScale","vertexShader","fragmentShader","lights_fragment_begin","split","join","diffuse","clone","TShaderMaterial","lights","MeshToonMaterial","Texture","CubeTexture","materialId","rotation","scale","receiveShadow","initMesh","Mesh","bindProps","PlaneBufferGeometry","text","fontSrc","curveSegments","bevelEnabled","bevelThickness","bevelSize","bevelOffset","bevelSegments","align","TextProps","font","FontLoader","TextBufferGeometry","center","cubeRTSize","cubeCameraNear","cubeCameraFar","autoUpdate","initGem","updateCubeRT","offBeforeRender","meshBack","materialBack","cubeRT","WebGLCubeRenderTarget","format","RGBFormat","generateMipmaps","minFilter","LinearMipmapLinearFilter","cubeCamera","CubeCamera","envMapIntensity","premultipliedAlpha","BackSide","TMesh","visible","keepSize","DoubleSide","loadTexture","screen","iRatio","image","count","InstancedMesh","initMirrorMesh","mapping","CubeRefractionMapping","refractionRatio","SpriteMaterial","sprite","Sprite","updateUV","iWidth","iHeight","positions","attributes","array","passes","onAfterInit","EffectComposer","pass","addPass","EffectPass","RenderPass","focus","aperture","maxblur","BokehPass","noiseIntensity","scanlinesIntensity","scanlinesCount","grayscale","nIntensity","sIntensity","sCount","FilmPass","shape","rotateR","rotateG","rotateB","scatter","HalftonePass","depthTexture","useNormals","resolution","SAOPass","strength","threshold","UnrealBloomPass","Image","timeCoef","noiseCoef","zCoef","dispCoef","uNoiseCoef","uZCoef","uDispCoef","startTime","Date","now","updateTime","onBeforeCompile","shader","uTime","snoise2","materialShader","updateMaterial","needsupdate","Sphere","Text","AnimatedPlane","o3d","Object3D","uProgress","uvScale","initMaterial","initPlane","progress","wSize","nx","ceil","ny","icount","initGeometry","initUV","initAnimAttributes","imesh","bGeometry","dummy","index","dx","i","dy","j","updateMatrix","setMatrixAt","matrix","faces","Face3","faceVertexUvs","translate","BufferGeometry","fromGeometry","v3","offsets","Float32Array","length","anim","rndFS","rnd","toArray","setAttribute","InstancedBufferAttribute","rotations","tRatio","nW","nH","uvOffsets","setTexture","images","events","wheel","click","keyup","loader","textures","img","Promise","resolve","cb","splice","all","then","useTextures","targetProgress","loadTextures","onClick","onKeyup","onWheel","initScene","gsap","fromTo","plane1","duration","ease","Power4","easeOut","updateProgress","plane2","setPlanesProgress","planes","deltaY","navPrevious","navNext","keyCode","isInteger","floor","progress1","pdiff","p0","p1","_createBlock","_createVNode","cameraPosition","GLTFLoader","gltf","orbit-ctrl","_renderSlot","TroisJSVuePlugin","install","app","component","TROIS"],"mappings":"soEAae,SAASA,KAEtBC,IAAMC,EAAO,CACXC,OAAQ,KACRC,WAAW,EACXC,OAAO,EACPC,WAAW,EACXC,YAAY,EACZC,YAAY,EACZC,eAAe,EACfC,OAAQ,SACRC,MAAO,EACPC,OAAQ,GAIJC,EAA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