import{u as o,c as s,e as t}from"./index.fbca08c6.js";import{_ as e}from"./OrbitControlsWrapper.8e39b8e4.js";import{d as n,x as r,r as a,o as i,c as l,w as p,a as m,O as c,W as u}from"./vendor.6afcf1a6.js";const f=o();var d=n({components:{OrbitControlsWrapper:e},mounted(){const o=f.camera.value,s=this.$refs.cameraTarget.instance,t=this.$refs.sphere.instance;o&&s&&t&&(o.lookAt(t.position.clone().add(t.up.clone().multiplyScalar(2.5))),setTimeout((()=>{r({from:[o.position.x,o.position.y,o.position.z],to:[s.position.x,s.position.y,s.position.z],duration:4e3}).start((s=>{o.position.set(...s),o.lookAt(t.position.clone().add(t.up.clone().multiplyScalar(2.5)))}))}),2e3))}});const h={ref:"torus"},y={ref:"torusWireframe"},g={visible:!1,ref:"cameraTarget",position:[-10,4,0]};d.render=function(o,s,t,e,n,r){const c=a("ambientLight"),u=a("pointLight"),f=a("torusKnotGeometry"),d=a("meshToonMaterial"),b=a("icosahedronGeometry"),v=a("meshStandardMaterial"),T=a("TroisCanvas");return i(),l(T,{background:"#fbdf74",cameraPosition:[0,0,50]},{default:p((()=>[m(c,{intensity:.2},null,8,["intensity"]),m(u,{intensity:.75,position:[-15,40,50]},null,8,["intensity"]),m(u,{intensity:.05,position:[-15,40,-50]},null,8,["intensity"]),m("mesh",h,[m(f,{args:[10,1.6,400,20,4,1]},null,8,["args"]),m(d,{color:"#fbdf74"})],512),m("mesh",y,[m(f,{args:[10,1.61,400,20,4,1]},null,8,["args"]),m(d,{wireframe:!0,color:"#d9bd52"})],512),m("mesh",{ref:"sphere","rotation-y":.5*Math.PI},[m(b,{args:[.7,5]},null,8,["args"]),m(v,{metalness:.7,roughness:.5},null,8,["metalness","roughness"]),m("mesh",g,null,512)],8,["rotation-y"])])),_:1})};const b=s(d);t({app:b,OrbitControls:c,WebGLRenderer:u}),b.mount("#app");
