[{"data":1,"prerenderedAt":1417},["ShallowReactive",2],{"navigation":3,"/api/loaders/use-gltf":474,"/api/loaders/use-gltf-surround":1412},[4,22],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation Guide","/getting-started/installation","1.getting-started/2.installation",{"title":15,"path":16,"stem":17},"Usage","/getting-started/usage","1.getting-started/3.usage",{"title":19,"path":20,"stem":21},"Upgrade Guide","/getting-started/upgrade-guide","1.getting-started/4.upgrade-guide",{"title":23,"path":24,"stem":25,"children":26},"Api","/api","2.api",[27,30,84,114,156,190,284,310,344,394,440],{"title":28,"path":24,"stem":29},"All","2.api/index",{"title":31,"path":32,"stem":33,"children":34},"Abstractions","/api/abstractions","2.api/1.abstractions/index",[35,36,40,44,48,52,56,60,64,68,72,76,80],{"title":31,"path":32,"stem":33},{"title":37,"path":38,"stem":39},"Align","/api/abstractions/align","2.api/1.abstractions/align",{"title":41,"path":42,"stem":43},"Billboard","/api/abstractions/billboard","2.api/1.abstractions/billboard",{"title":45,"path":46,"stem":47},"Camera Shake","/api/abstractions/camera-shake","2.api/1.abstractions/camera-shake",{"title":49,"path":50,"stem":51},"Decal","/api/abstractions/decal","2.api/1.abstractions/decal",{"title":53,"path":54,"stem":55},"Edges","/api/abstractions/edges","2.api/1.abstractions/edges",{"title":57,"path":58,"stem":59},"Fit","/api/abstractions/fit","2.api/1.abstractions/fit",{"title":61,"path":62,"stem":63},"Levioso (Float)","/api/abstractions/levioso","2.api/1.abstractions/levioso",{"title":65,"path":66,"stem":67},"Mask","/api/abstractions/mask","2.api/1.abstractions/mask",{"title":69,"path":70,"stem":71},"Outline","/api/abstractions/outline","2.api/1.abstractions/outline",{"title":73,"path":74,"stem":75},"Sampler","/api/abstractions/sampler","2.api/1.abstractions/sampler",{"title":77,"path":78,"stem":79},"ScreenSizer","/api/abstractions/screen-sizer","2.api/1.abstractions/screen-sizer",{"title":81,"path":82,"stem":83},"ScreenSpace","/api/abstractions/screen-space","2.api/1.abstractions/screen-space",{"title":85,"path":86,"stem":87,"children":88},"Controls","/api/controls","2.api/2.controls/index",[89,90,94,98,102,106,110],{"title":85,"path":86,"stem":87},{"title":91,"path":92,"stem":93},"Camera Controls","/api/controls/camera-controls","2.api/2.controls/camera-controls",{"title":95,"path":96,"stem":97},"Keyboard Controls","/api/controls/keyboard-controls","2.api/2.controls/keyboard-controls",{"title":99,"path":100,"stem":101},"Map Controls","/api/controls/map-controls","2.api/2.controls/map-controls",{"title":103,"path":104,"stem":105},"Orbit Controls","/api/controls/orbit-controls","2.api/2.controls/orbit-controls",{"title":107,"path":108,"stem":109},"PointerLock Controls","/api/controls/pointer-lock-controls","2.api/2.controls/pointer-lock-controls",{"title":111,"path":112,"stem":113},"Transform Controls","/api/controls/transform-controls","2.api/2.controls/transform-controls",{"title":115,"path":116,"stem":117,"children":118},"Loaders","/api/loaders","2.api/3.loaders/index",[119,120,124,128,132,136,140,144,148,152],{"title":115,"path":116,"stem":117},{"title":121,"path":122,"stem":123},"useGLTF","/api/loaders/use-gltf","2.api/3.loaders/1.use-gltf",{"title":125,"path":126,"stem":127},"GLTFModel","/api/loaders/gltf-model","2.api/3.loaders/2.gltf-model",{"title":129,"path":130,"stem":131},"useFBX","/api/loaders/use-fbx","2.api/3.loaders/3.use-fbx",{"title":133,"path":134,"stem":135},"FBXModel","/api/loaders/fbx-model","2.api/3.loaders/4.fbx-model",{"title":137,"path":138,"stem":139},"useTexture","/api/loaders/use-texture","2.api/3.loaders/5.use-texture",{"title":141,"path":142,"stem":143},"useTextures","/api/loaders/use-textures","2.api/3.loaders/6.use-textures",{"title":145,"path":146,"stem":147},"useSVG","/api/loaders/use-svg","2.api/3.loaders/7.use-svg",{"title":149,"path":150,"stem":151},"useProgress","/api/loaders/use-progress","2.api/3.loaders/use-progress",{"title":153,"path":154,"stem":155},"useVideoTexture","/api/loaders/use-video-texture","2.api/3.loaders/use-video-texture",{"title":157,"path":158,"stem":159,"children":160},"Materials","/api/materials","2.api/4.materials/index",[161,162,166,170,174,178,182,186],{"title":157,"path":158,"stem":159},{"title":163,"path":164,"stem":165},"Custom Shader Material","/api/materials/custom-shader-material","2.api/4.materials/custom-shader-material",{"title":167,"path":168,"stem":169},"Mesh Glass Material","/api/materials/glass-material","2.api/4.materials/glass-material",{"title":171,"path":172,"stem":173},"Holographic Material","/api/materials/holographic-material","2.api/4.materials/holographic-material",{"title":175,"path":176,"stem":177},"Mesh Discard Material","/api/materials/mesh-discard-material","2.api/4.materials/mesh-discard-material",{"title":179,"path":180,"stem":181},"Mesh Reflection Material","/api/materials/mesh-reflection-material","2.api/4.materials/mesh-reflection-material",{"title":183,"path":184,"stem":185},"Point Material","/api/materials/point-material","2.api/4.materials/point-material",{"title":187,"path":188,"stem":189},"Wobble Material","/api/materials/wobble-material","2.api/4.materials/wobble-material",{"title":191,"path":192,"stem":193,"children":194},"Shapes","/api/shapes","2.api/5.shapes/index",[195,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280],{"title":191,"path":192,"stem":193},{"title":197,"path":198,"stem":199},"Box","/api/shapes/box","2.api/5.shapes/box",{"title":201,"path":202,"stem":203},"CatmullRomCurve3","/api/shapes/catmullromcurve3","2.api/5.shapes/catmullromcurve3",{"title":205,"path":206,"stem":207},"Circle","/api/shapes/circle","2.api/5.shapes/circle",{"title":209,"path":210,"stem":211},"Cone","/api/shapes/cone","2.api/5.shapes/cone",{"title":213,"path":214,"stem":215},"Cubic Bezier Line","/api/shapes/cubic-bezier-line","2.api/5.shapes/cubic-bezier-line",{"title":217,"path":218,"stem":219},"Cylinder","/api/shapes/cylinder","2.api/5.shapes/cylinder",{"title":221,"path":222,"stem":223},"Dodecahedron","/api/shapes/dodecahedron","2.api/5.shapes/dodecahedron",{"title":225,"path":226,"stem":227},"Grid","/api/shapes/grid","2.api/5.shapes/grid",{"title":229,"path":230,"stem":231},"Icosahedron","/api/shapes/icosahedron","2.api/5.shapes/icosahedron",{"title":233,"path":234,"stem":235},"Line2","/api/shapes/line2","2.api/5.shapes/line2",{"title":237,"path":238,"stem":239},"Octahedron","/api/shapes/octahedron","2.api/5.shapes/octahedron",{"title":241,"path":242,"stem":243},"Plane","/api/shapes/plane","2.api/5.shapes/plane",{"title":245,"path":246,"stem":247},"Quadratic Bezier Line","/api/shapes/quadratic-bezier-line","2.api/5.shapes/quadratic-bezier-line",{"title":249,"path":250,"stem":251},"Ring","/api/shapes/ring","2.api/5.shapes/ring",{"title":253,"path":254,"stem":255},"Rounded Box","/api/shapes/rounded-box","2.api/5.shapes/rounded-box",{"title":257,"path":258,"stem":259},"Screen Quad","/api/shapes/screen-quad","2.api/5.shapes/screen-quad",{"title":261,"path":262,"stem":263},"Sphere","/api/shapes/sphere","2.api/5.shapes/sphere",{"title":265,"path":266,"stem":267},"Superformula","/api/shapes/superformula","2.api/5.shapes/superformula",{"title":269,"path":270,"stem":271},"Tetrahedron","/api/shapes/tetrahedron","2.api/5.shapes/tetrahedron",{"title":273,"path":274,"stem":275},"Torus","/api/shapes/torus","2.api/5.shapes/torus",{"title":277,"path":278,"stem":279},"Torus Knot","/api/shapes/torus-knot","2.api/5.shapes/torus-knot",{"title":281,"path":282,"stem":283},"Tube","/api/shapes/tube","2.api/5.shapes/tube",{"title":285,"path":286,"stem":287,"children":288},"Debug/Performance","/api/debug-performance","2.api/6.debug-performance/index",[289,290,294,298,302,306],{"title":285,"path":286,"stem":287},{"title":291,"path":292,"stem":293},"Helper","/api/debug-performance/helper","2.api/6.debug-performance/helper",{"title":295,"path":296,"stem":297},"LOD","/api/debug-performance/lod","2.api/6.debug-performance/lod",{"title":299,"path":300,"stem":301},"Stats","/api/debug-performance/stats","2.api/6.debug-performance/stats",{"title":303,"path":304,"stem":305},"StatsGl","/api/debug-performance/stats-gl","2.api/6.debug-performance/stats-gl",{"title":307,"path":308,"stem":309},"useBVH","/api/debug-performance/use-bvh","2.api/6.debug-performance/use-bvh",{"title":311,"path":312,"stem":313,"children":314},"Light/Shadow","/api/light-shadow","2.api/7.light-shadow/index",[315,316,320,324,328,332,336,340],{"title":311,"path":312,"stem":313},{"title":317,"path":318,"stem":319},"Accumulative Shadows","/api/light-shadow/accumulative-shadows","2.api/7.light-shadow/accumulative-shadows",{"title":321,"path":322,"stem":323},"Bake Shadows","/api/light-shadow/bake-shadows","2.api/7.light-shadow/bake-shadows",{"title":325,"path":326,"stem":327},"Circle Shadow","/api/light-shadow/circle-shadow","2.api/7.light-shadow/circle-shadow",{"title":329,"path":330,"stem":331},"Contact Shadows","/api/light-shadow/contact-shadows","2.api/7.light-shadow/contact-shadows",{"title":333,"path":334,"stem":335},"Lensflare","/api/light-shadow/lensflare","2.api/7.light-shadow/lensflare",{"title":337,"path":338,"stem":339},"Randomized Lights","/api/light-shadow/randomized-lights","2.api/7.light-shadow/randomized-lights",{"title":341,"path":342,"stem":343},"Soft Shadows","/api/light-shadow/soft-shadows","2.api/7.light-shadow/soft-shadows",{"title":345,"path":346,"stem":347,"children":348},"Staging","/api/staging","2.api/8.staging/index",[349,350,354,358,362,366,370,374,378,382,386,390],{"title":345,"path":346,"stem":347},{"title":351,"path":352,"stem":353},"Environment","/api/staging/environment","2.api/8.staging/1.environment",{"title":355,"path":356,"stem":357},"useEnvironment","/api/staging/use-environment","2.api/8.staging/2.use-environment",{"title":359,"path":360,"stem":361},"Lightformer","/api/staging/lightformer","2.api/8.staging/3.lightformer",{"title":363,"path":364,"stem":365},"Backdrop","/api/staging/backdrop","2.api/8.staging/backdrop",{"title":367,"path":368,"stem":369},"Ocean","/api/staging/ocean","2.api/8.staging/ocean",{"title":371,"path":372,"stem":373},"Precipitation","/api/staging/precipitation","2.api/8.staging/precipitation",{"title":375,"path":376,"stem":377},"Sky","/api/staging/sky","2.api/8.staging/sky",{"title":379,"path":380,"stem":381},"Smoke","/api/staging/smoke","2.api/8.staging/smoke",{"title":383,"path":384,"stem":385},"Sparkles","/api/staging/sparkles","2.api/8.staging/sparkles",{"title":387,"path":388,"stem":389},"Stage","/api/staging/stage","2.api/8.staging/stage",{"title":391,"path":392,"stem":393},"Stars","/api/staging/stars","2.api/8.staging/stars",{"title":395,"path":396,"stem":397,"children":398},"Objects","/api/objects","2.api/9.objects/index",[399,400,404,408,412,416,420,424,428,432,436],{"title":395,"path":396,"stem":397},{"title":401,"path":402,"stem":403},"AnimatedSprite","/api/objects/animated-sprite","2.api/9.objects/animated-sprite",{"title":405,"path":406,"stem":407},"CubeCamera","/api/objects/cube-camera","2.api/9.objects/cube-camera",{"title":409,"path":410,"stem":411},"Fbo","/api/objects/fbo","2.api/9.objects/fbo",{"title":413,"path":414,"stem":415},"GradientTexture","/api/objects/gradient-texture","2.api/9.objects/gradient-texture",{"title":417,"path":418,"stem":419},"HTML","/api/objects/html","2.api/9.objects/html",{"title":421,"path":422,"stem":423},"Image","/api/objects/image","2.api/9.objects/image",{"title":425,"path":426,"stem":427},"MarchingCubes","/api/objects/marching-cubes","2.api/9.objects/marching-cubes",{"title":429,"path":430,"stem":431},"Reflector","/api/objects/reflector","2.api/9.objects/reflector",{"title":433,"path":434,"stem":435},"Refractor","/api/objects/refractor","2.api/9.objects/refractor",{"title":437,"path":438,"stem":439},"Text3D","/api/objects/text-3d","2.api/9.objects/text-3d",{"title":441,"path":442,"stem":443,"children":444},"Miscellaneous","/api/miscellaneous","2.api/miscellaneous/index",[445,446,450,454,458,462,466,470],{"title":441,"path":442,"stem":443},{"title":447,"path":448,"stem":449},"Bounds","/api/miscellaneous/bounds","2.api/miscellaneous/bounds",{"title":451,"path":452,"stem":453},"GlobalAudio","/api/miscellaneous/global-audio","2.api/miscellaneous/global-audio",{"title":455,"path":456,"stem":457},"MouseParallax","/api/miscellaneous/mouse-parallax","2.api/miscellaneous/mouse-parallax",{"title":459,"path":460,"stem":461},"PositionalAudio","/api/miscellaneous/positional-audio","2.api/miscellaneous/positional-audio",{"title":463,"path":464,"stem":465},"useAnimations","/api/miscellaneous/use-animations","2.api/miscellaneous/use-animations",{"title":467,"path":468,"stem":469},"useGLTFExporter","/api/miscellaneous/use-gltf-exporter","2.api/miscellaneous/use-gltf-exporter",{"title":471,"path":472,"stem":473},"useIntersect","/api/miscellaneous/use-intersect","2.api/miscellaneous/use-intersect",{"id":475,"title":121,"body":476,"description":1406,"extension":1407,"links":1408,"meta":1409,"navigation":585,"path":122,"seo":1410,"stem":123,"__hash__":1411},"docs/2.api/3.loaders/1.use-gltf.md",{"type":477,"value":478,"toc":1400},"minimark",[479,485,494,498,1001,1019,1099,1103,1214,1218,1290,1294,1297,1393,1396],[480,481,482],"scene-wrapper",{},[483,484],"loaders-gltf",{},[486,487,488,489,493],"p",{},"A composable that allows you to easily load glb/glTF models into your ",[490,491,492],"strong",{},"TresJS"," scene.",[495,496,15],"h2",{"id":497},"usage",[499,500,501,716],"code-group",{},[502,503,512],"pre",{"className":504,"code":505,"filename":506,"highlights":507,"language":510,"meta":511,"style":511},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { useGLTF } from '@tresjs/cientos'\n\nconst path = './blender-cube.glb'\nconst { state, nodes, materials } = useGLTF(path)\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cprimitive v-if=\"state\" :object=\"state?.scene\" />\n\u003C/template>\n","TheModel.vue",[508,509],2,5,"vue","",[513,514,515,550,580,587,605,638,648,653,663,707],"code",{"__ignoreMap":511},[516,517,520,524,528,532,535,538,541,545,547],"span",{"class":518,"line":519},"line",1,[516,521,523],{"class":522},"sMK4o","\u003C",[516,525,527],{"class":526},"swJcz","script",[516,529,531],{"class":530},"spNyl"," setup",[516,533,534],{"class":530}," lang",[516,536,537],{"class":522},"=",[516,539,540],{"class":522},"\"",[516,542,544],{"class":543},"sfazB","ts",[516,546,540],{"class":522},[516,548,549],{"class":522},">\n",[516,551,554,558,561,565,568,571,574,577],{"class":552,"line":508},[518,553],"highlight",[516,555,557],{"class":556},"s7zQu","import",[516,559,560],{"class":522}," {",[516,562,564],{"class":563},"sTEyZ"," useGLTF",[516,566,567],{"class":522}," }",[516,569,570],{"class":556}," from",[516,572,573],{"class":522}," '",[516,575,576],{"class":543},"@tresjs/cientos",[516,578,579],{"class":522},"'\n",[516,581,583],{"class":518,"line":582},3,[516,584,586],{"emptyLinePlaceholder":585},true,"\n",[516,588,590,593,596,598,600,603],{"class":518,"line":589},4,[516,591,592],{"class":530},"const",[516,594,595],{"class":563}," path ",[516,597,537],{"class":522},[516,599,573],{"class":522},[516,601,602],{"class":543},"./blender-cube.glb",[516,604,579],{"class":522},[516,606,608,610,612,615,618,621,623,626,629,632,635],{"class":607,"line":509},[518,553],[516,609,592],{"class":530},[516,611,560],{"class":522},[516,613,614],{"class":563}," state",[516,616,617],{"class":522},",",[516,619,620],{"class":563}," nodes",[516,622,617],{"class":522},[516,624,625],{"class":563}," materials ",[516,627,628],{"class":522},"}",[516,630,631],{"class":522}," =",[516,633,564],{"class":634},"s2Zo4",[516,636,637],{"class":563},"(path)\n",[516,639,641,644,646],{"class":518,"line":640},6,[516,642,643],{"class":522},"\u003C/",[516,645,527],{"class":526},[516,647,549],{"class":522},[516,649,651],{"class":518,"line":650},7,[516,652,586],{"emptyLinePlaceholder":585},[516,654,656,658,661],{"class":518,"line":655},8,[516,657,523],{"class":522},[516,659,660],{"class":526},"template",[516,662,549],{"class":522},[516,664,666,669,672,675,677,679,682,684,687,690,692,694,696,699,702,704],{"class":518,"line":665},9,[516,667,668],{"class":522},"  \u003C",[516,670,671],{"class":526},"primitive",[516,673,674],{"class":556}," v-if",[516,676,537],{"class":522},[516,678,540],{"class":522},[516,680,681],{"class":563},"state",[516,683,540],{"class":522},[516,685,686],{"class":522}," :",[516,688,689],{"class":530},"object",[516,691,537],{"class":522},[516,693,540],{"class":522},[516,695,681],{"class":563},[516,697,698],{"class":522},"?.",[516,700,701],{"class":563},"scene",[516,703,540],{"class":522},[516,705,706],{"class":522}," />\n",[516,708,710,712,714],{"class":518,"line":709},10,[516,711,643],{"class":522},[516,713,660],{"class":526},[516,715,549],{"class":522},[502,717,720],{"className":504,"code":718,"filename":719,"language":510,"meta":511,"style":511},"\u003Cscript setup lang=\"ts\">\nimport { OrbitControls } from '@tresjs/cientos'\nimport { TresCanvas } from '@tresjs/core'\nimport TheModel from './TheModel.vue'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas clear-color=\"#F78B3D\">\n    \u003CTresPerspectiveCamera :position=\"[3, 2, 5]\" />\n    \u003COrbitControls />\n    \u003CTheModel />\n    \u003CTresDirectionalLight\n      :intensity=\"2\"\n      :position=\"[3, 3, 3]\"\n    />\n    \u003CTresAmbientLight :intensity=\"1\" />\n  \u003C/TresCanvas>\n\u003C/template>\n","app.vue",[513,721,722,742,761,781,798,806,810,818,839,881,890,900,908,926,953,959,982,992],{"__ignoreMap":511},[516,723,724,726,728,730,732,734,736,738,740],{"class":518,"line":519},[516,725,523],{"class":522},[516,727,527],{"class":526},[516,729,531],{"class":530},[516,731,534],{"class":530},[516,733,537],{"class":522},[516,735,540],{"class":522},[516,737,544],{"class":543},[516,739,540],{"class":522},[516,741,549],{"class":522},[516,743,744,746,748,751,753,755,757,759],{"class":518,"line":508},[516,745,557],{"class":556},[516,747,560],{"class":522},[516,749,750],{"class":563}," OrbitControls",[516,752,567],{"class":522},[516,754,570],{"class":556},[516,756,573],{"class":522},[516,758,576],{"class":543},[516,760,579],{"class":522},[516,762,763,765,767,770,772,774,776,779],{"class":518,"line":582},[516,764,557],{"class":556},[516,766,560],{"class":522},[516,768,769],{"class":563}," TresCanvas",[516,771,567],{"class":522},[516,773,570],{"class":556},[516,775,573],{"class":522},[516,777,778],{"class":543},"@tresjs/core",[516,780,579],{"class":522},[516,782,783,785,788,791,793,796],{"class":518,"line":589},[516,784,557],{"class":556},[516,786,787],{"class":563}," TheModel ",[516,789,790],{"class":556},"from",[516,792,573],{"class":522},[516,794,795],{"class":543},"./TheModel.vue",[516,797,579],{"class":522},[516,799,800,802,804],{"class":518,"line":509},[516,801,643],{"class":522},[516,803,527],{"class":526},[516,805,549],{"class":522},[516,807,808],{"class":518,"line":640},[516,809,586],{"emptyLinePlaceholder":585},[516,811,812,814,816],{"class":518,"line":650},[516,813,523],{"class":522},[516,815,660],{"class":526},[516,817,549],{"class":522},[516,819,820,822,825,828,830,832,835,837],{"class":518,"line":655},[516,821,668],{"class":522},[516,823,824],{"class":526},"TresCanvas",[516,826,827],{"class":530}," clear-color",[516,829,537],{"class":522},[516,831,540],{"class":522},[516,833,834],{"class":543},"#F78B3D",[516,836,540],{"class":522},[516,838,549],{"class":522},[516,840,841,844,847,849,852,854,856,859,863,866,869,871,874,877,879],{"class":518,"line":665},[516,842,843],{"class":522},"    \u003C",[516,845,846],{"class":526},"TresPerspectiveCamera",[516,848,686],{"class":522},[516,850,851],{"class":530},"position",[516,853,537],{"class":522},[516,855,540],{"class":522},[516,857,858],{"class":522},"[",[516,860,862],{"class":861},"sbssI","3",[516,864,865],{"class":522},", ",[516,867,868],{"class":861},"2",[516,870,865],{"class":522},[516,872,873],{"class":861},"5",[516,875,876],{"class":522},"]",[516,878,540],{"class":522},[516,880,706],{"class":522},[516,882,883,885,888],{"class":518,"line":709},[516,884,843],{"class":522},[516,886,887],{"class":526},"OrbitControls",[516,889,706],{"class":522},[516,891,893,895,898],{"class":518,"line":892},11,[516,894,843],{"class":522},[516,896,897],{"class":526},"TheModel",[516,899,706],{"class":522},[516,901,903,905],{"class":518,"line":902},12,[516,904,843],{"class":522},[516,906,907],{"class":526},"TresDirectionalLight\n",[516,909,911,914,917,919,921,923],{"class":518,"line":910},13,[516,912,913],{"class":522},"      :",[516,915,916],{"class":530},"intensity",[516,918,537],{"class":522},[516,920,540],{"class":522},[516,922,868],{"class":861},[516,924,925],{"class":522},"\"\n",[516,927,929,931,933,935,937,939,941,943,945,947,949,951],{"class":518,"line":928},14,[516,930,913],{"class":522},[516,932,851],{"class":530},[516,934,537],{"class":522},[516,936,540],{"class":522},[516,938,858],{"class":522},[516,940,862],{"class":861},[516,942,865],{"class":522},[516,944,862],{"class":861},[516,946,865],{"class":522},[516,948,862],{"class":861},[516,950,876],{"class":522},[516,952,925],{"class":522},[516,954,956],{"class":518,"line":955},15,[516,957,958],{"class":522},"    />\n",[516,960,962,964,967,969,971,973,975,978,980],{"class":518,"line":961},16,[516,963,843],{"class":522},[516,965,966],{"class":526},"TresAmbientLight",[516,968,686],{"class":522},[516,970,916],{"class":530},[516,972,537],{"class":522},[516,974,540],{"class":522},[516,976,977],{"class":861},"1",[516,979,540],{"class":522},[516,981,706],{"class":522},[516,983,985,988,990],{"class":518,"line":984},17,[516,986,987],{"class":522},"  \u003C/",[516,989,824],{"class":526},[516,991,549],{"class":522},[516,993,995,997,999],{"class":518,"line":994},18,[516,996,643],{"class":522},[516,998,660],{"class":526},[516,1000,549],{"class":522},[486,1002,1003,1004,1006,1007,1010,1011,1018],{},"An advantage of using ",[513,1005,121],{}," is that you can pass a ",[513,1008,1009],{},"draco"," prop to enable ",[1012,1013,1017],"a",{"href":1014,"rel":1015},"https://threejs.org/docs/index.html?q=drac#examples/en/loaders/DRACOLoader",[1016],"nofollow","Draco compression"," for the model. This will reduce the size of the model and improve performance.",[502,1020,1023],{"className":1021,"code":1022,"language":544,"meta":511,"style":511},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { useGLTF } from '@tresjs/cientos'\n\nconst { state, nodes, materials } = useGLTF('/models/AkuAku.gltf', { draco: true })\n",[513,1024,1025,1043,1047],{"__ignoreMap":511},[516,1026,1027,1029,1031,1033,1035,1037,1039,1041],{"class":518,"line":519},[516,1028,557],{"class":556},[516,1030,560],{"class":522},[516,1032,564],{"class":563},[516,1034,567],{"class":522},[516,1036,570],{"class":556},[516,1038,573],{"class":522},[516,1040,576],{"class":543},[516,1042,579],{"class":522},[516,1044,1045],{"class":518,"line":508},[516,1046,586],{"emptyLinePlaceholder":585},[516,1048,1049,1051,1053,1055,1057,1059,1061,1063,1065,1067,1069,1072,1075,1078,1080,1082,1084,1087,1090,1094,1096],{"class":518,"line":582},[516,1050,592],{"class":530},[516,1052,560],{"class":522},[516,1054,614],{"class":563},[516,1056,617],{"class":522},[516,1058,620],{"class":563},[516,1060,617],{"class":522},[516,1062,625],{"class":563},[516,1064,628],{"class":522},[516,1066,631],{"class":522},[516,1068,564],{"class":634},[516,1070,1071],{"class":563},"(",[516,1073,1074],{"class":522},"'",[516,1076,1077],{"class":543},"/models/AkuAku.gltf",[516,1079,1074],{"class":522},[516,1081,617],{"class":522},[516,1083,560],{"class":522},[516,1085,1086],{"class":526}," draco",[516,1088,1089],{"class":522},":",[516,1091,1093],{"class":1092},"sfNiH"," true",[516,1095,567],{"class":522},[516,1097,1098],{"class":563},")\n",[495,1100,1102],{"id":1101},"return-values","Return Values",[1104,1105,1106,1123],"table",{},[1107,1108,1109],"thead",{},[1110,1111,1112,1117,1120],"tr",{},[1113,1114,1116],"th",{"align":1115},"left","Name",[1113,1118,1119],{},"Type",[1113,1121,1122],{},"Description",[1124,1125,1126,1141,1155,1169,1184,1199],"tbody",{},[1110,1127,1128,1133,1138],{},[1129,1130,1131],"td",{"align":1115},[490,1132,681],{},[1129,1134,1135],{},[513,1136,1137],{},"GLTF",[1129,1139,1140],{},"The loaded GLTF model state",[1110,1142,1143,1148,1152],{},[1129,1144,1145],{"align":1115},[490,1146,1147],{},"nodes",[1129,1149,1150],{},[513,1151,689],{},[1129,1153,1154],{},"Computed object containing all nodes in the scene",[1110,1156,1157,1162,1166],{},[1129,1158,1159],{"align":1115},[490,1160,1161],{},"materials",[1129,1163,1164],{},[513,1165,689],{},[1129,1167,1168],{},"Computed object containing all materials in the scene",[1110,1170,1171,1176,1181],{},[1129,1172,1173],{"align":1115},[490,1174,1175],{},"isLoading",[1129,1177,1178],{},[513,1179,1180],{},"boolean",[1129,1182,1183],{},"Whether the model is currently loading",[1110,1185,1186,1191,1196],{},[1129,1187,1188],{"align":1115},[490,1189,1190],{},"progress",[1129,1192,1193],{},[513,1194,1195],{},"number",[1129,1197,1198],{},"The progress of the model loading",[1110,1200,1201,1206,1211],{},[1129,1202,1203],{"align":1115},[490,1204,1205],{},"load",[1129,1207,1208],{},[513,1209,1210],{},"() => Promise\u003Cvoid>",[1129,1212,1213],{},"Function to reload the model",[495,1215,1217],{"id":1216},"options","Options",[1104,1219,1220,1233],{},[1107,1221,1222],{},[1110,1223,1224,1226,1228,1231],{},[1113,1225,1116],{"align":1115},[1113,1227,1119],{},[1113,1229,1230],{},"Default",[1113,1232,1122],{},[1124,1234,1235,1253,1273],{},[1110,1236,1237,1241,1245,1250],{},[1129,1238,1239],{"align":1115},[490,1240,1009],{},[1129,1242,1243],{},[513,1244,1180],{},[1129,1246,1247],{},[513,1248,1249],{},"false",[1129,1251,1252],{},"Whether to enable Draco compression.",[1110,1254,1255,1260,1265,1270],{},[1129,1256,1257],{"align":1115},[490,1258,1259],{},"decoderPath",[1129,1261,1262],{},[513,1263,1264],{},"string",[1129,1266,1267],{},[513,1268,1269],{},"'https://www.gstatic.com/draco/versioned/decoders/1.5.6/'",[1129,1271,1272],{},"Path to the Draco decoder.",[1110,1274,1275,1280,1285,1287],{},[1129,1276,1277],{"align":1115},[490,1278,1279],{},"traverse",[1129,1281,1282],{},[513,1283,1284],{},"Function",[1129,1286],{},[1129,1288,1289],{},"A traverse function applied to the scene upon loading the model.",[495,1291,1293],{"id":1292},"accessing-nodes-and-materials","Accessing Nodes and Materials",[486,1295,1296],{},"The composable provides computed properties to easily access nodes and materials in your scene:",[502,1298,1300],{"className":1021,"code":1299,"language":544,"meta":511,"style":511},"const { nodes, materials } = useGLTF('/model.glb')\n\n// Access a specific node\nconst mesh = nodes.value.MeshName\n\n// Access a specific material\nconst material = materials.value.MaterialName\n",[513,1301,1302,1331,1335,1341,1363,1367,1372],{"__ignoreMap":511},[516,1303,1304,1306,1308,1310,1312,1314,1316,1318,1320,1322,1324,1327,1329],{"class":518,"line":519},[516,1305,592],{"class":530},[516,1307,560],{"class":522},[516,1309,620],{"class":563},[516,1311,617],{"class":522},[516,1313,625],{"class":563},[516,1315,628],{"class":522},[516,1317,631],{"class":522},[516,1319,564],{"class":634},[516,1321,1071],{"class":563},[516,1323,1074],{"class":522},[516,1325,1326],{"class":543},"/model.glb",[516,1328,1074],{"class":522},[516,1330,1098],{"class":563},[516,1332,1333],{"class":518,"line":508},[516,1334,586],{"emptyLinePlaceholder":585},[516,1336,1337],{"class":518,"line":582},[516,1338,1340],{"class":1339},"sHwdD","// Access a specific node\n",[516,1342,1343,1345,1348,1350,1352,1355,1358,1360],{"class":518,"line":589},[516,1344,592],{"class":530},[516,1346,1347],{"class":563}," mesh ",[516,1349,537],{"class":522},[516,1351,620],{"class":563},[516,1353,1354],{"class":522},".",[516,1356,1357],{"class":563},"value",[516,1359,1354],{"class":522},[516,1361,1362],{"class":563},"MeshName\n",[516,1364,1365],{"class":518,"line":509},[516,1366,586],{"emptyLinePlaceholder":585},[516,1368,1369],{"class":518,"line":640},[516,1370,1371],{"class":1339},"// Access a specific material\n",[516,1373,1374,1376,1379,1381,1384,1386,1388,1390],{"class":518,"line":650},[516,1375,592],{"class":530},[516,1377,1378],{"class":563}," material ",[516,1380,537],{"class":522},[516,1382,1383],{"class":563}," materials",[516,1385,1354],{"class":522},[516,1387,1357],{"class":563},[516,1389,1354],{"class":522},[516,1391,1392],{"class":563},"MaterialName\n",[486,1394,1395],{},"This makes it easier to manipulate specific parts of your model or apply materials programmatically.",[1397,1398,1399],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":511,"searchDepth":519,"depth":508,"links":1401},[1402,1403,1404,1405],{"id":497,"depth":508,"text":15},{"id":1101,"depth":508,"text":1102},{"id":1216,"depth":508,"text":1217},{"id":1292,"depth":508,"text":1293},"A composable to load GLTF models in TresJS scenes.","md",null,{},{"title":121,"description":1406},"a8ph-37nMzF-TmW17rRFWQHDIwN83OfaztvKYiWzP30",[1413,1415],{"title":115,"path":116,"stem":117,"description":1414,"children":-1},"Asset loading composables for TresJS scenes.",{"title":125,"path":126,"stem":127,"description":1416,"children":-1},"A component based on useGLTF to load models in TresJS scenes.",1781273436214]