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