[{"data":1,"prerenderedAt":1217},["ShallowReactive",2],{"navigation":3,"/api/objects/image":490,"/api/objects/image-surround":1212},[4,26],{"title":5,"path":6,"stem":7,"children":8},"Getting Started","/getting-started","1.getting-started/1.index",[9,10,14,18,22],{"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},"Loading Models","/getting-started/loading-models","1.getting-started/4.loading-models",{"title":23,"path":24,"stem":25},"Upgrade Guide","/getting-started/upgrade-guide","1.getting-started/5.upgrade-guide",{"title":27,"path":28,"stem":29,"children":30},"Api","/api","2.api",[31,34,88,118,160,202,300,326,360,410,456],{"title":32,"path":28,"stem":33},"All","2.api/index",{"title":35,"path":36,"stem":37,"children":38},"Abstractions","/api/abstractions","2.api/1.abstractions/index",[39,40,44,48,52,56,60,64,68,72,76,80,84],{"title":35,"path":36,"stem":37},{"title":41,"path":42,"stem":43},"Align","/api/abstractions/align","2.api/1.abstractions/align",{"title":45,"path":46,"stem":47},"Billboard","/api/abstractions/billboard","2.api/1.abstractions/billboard",{"title":49,"path":50,"stem":51},"Camera Shake","/api/abstractions/camera-shake","2.api/1.abstractions/camera-shake",{"title":53,"path":54,"stem":55},"Decal","/api/abstractions/decal","2.api/1.abstractions/decal",{"title":57,"path":58,"stem":59},"Edges","/api/abstractions/edges","2.api/1.abstractions/edges",{"title":61,"path":62,"stem":63},"Fit","/api/abstractions/fit","2.api/1.abstractions/fit",{"title":65,"path":66,"stem":67},"Levioso (Float)","/api/abstractions/levioso","2.api/1.abstractions/levioso",{"title":69,"path":70,"stem":71},"Mask","/api/abstractions/mask","2.api/1.abstractions/mask",{"title":73,"path":74,"stem":75},"Outline","/api/abstractions/outline","2.api/1.abstractions/outline",{"title":77,"path":78,"stem":79},"Sampler","/api/abstractions/sampler","2.api/1.abstractions/sampler",{"title":81,"path":82,"stem":83},"ScreenSizer","/api/abstractions/screen-sizer","2.api/1.abstractions/screen-sizer",{"title":85,"path":86,"stem":87},"ScreenSpace","/api/abstractions/screen-space","2.api/1.abstractions/screen-space",{"title":89,"path":90,"stem":91,"children":92},"Controls","/api/controls","2.api/2.controls/index",[93,94,98,102,106,110,114],{"title":89,"path":90,"stem":91},{"title":95,"path":96,"stem":97},"Camera Controls","/api/controls/camera-controls","2.api/2.controls/camera-controls",{"title":99,"path":100,"stem":101},"Keyboard Controls","/api/controls/keyboard-controls","2.api/2.controls/keyboard-controls",{"title":103,"path":104,"stem":105},"Map Controls","/api/controls/map-controls","2.api/2.controls/map-controls",{"title":107,"path":108,"stem":109},"Orbit Controls","/api/controls/orbit-controls","2.api/2.controls/orbit-controls",{"title":111,"path":112,"stem":113},"PointerLock Controls","/api/controls/pointer-lock-controls","2.api/2.controls/pointer-lock-controls",{"title":115,"path":116,"stem":117},"Transform Controls","/api/controls/transform-controls","2.api/2.controls/transform-controls",{"title":119,"path":120,"stem":121,"children":122},"Loaders","/api/loaders","2.api/3.loaders/index",[123,124,128,132,136,140,144,148,152,156],{"title":119,"path":120,"stem":121},{"title":125,"path":126,"stem":127},"useGLTF","/api/loaders/use-gltf","2.api/3.loaders/1.use-gltf",{"title":129,"path":130,"stem":131},"GLTFModel","/api/loaders/gltf-model","2.api/3.loaders/2.gltf-model",{"title":133,"path":134,"stem":135},"useFBX","/api/loaders/use-fbx","2.api/3.loaders/3.use-fbx",{"title":137,"path":138,"stem":139},"FBXModel","/api/loaders/fbx-model","2.api/3.loaders/4.fbx-model",{"title":141,"path":142,"stem":143},"useTexture","/api/loaders/use-texture","2.api/3.loaders/5.use-texture",{"title":145,"path":146,"stem":147},"useTextures","/api/loaders/use-textures","2.api/3.loaders/6.use-textures",{"title":149,"path":150,"stem":151},"useSVG","/api/loaders/use-svg","2.api/3.loaders/7.use-svg",{"title":153,"path":154,"stem":155},"useProgress","/api/loaders/use-progress","2.api/3.loaders/use-progress",{"title":157,"path":158,"stem":159},"useVideoTexture","/api/loaders/use-video-texture","2.api/3.loaders/use-video-texture",{"title":161,"path":162,"stem":163,"children":164},"Materials","/api/materials","2.api/4.materials/index",[165,166,170,174,178,182,186,190,194,198],{"title":161,"path":162,"stem":163},{"title":167,"path":168,"stem":169},"Custom Shader Material","/api/materials/custom-shader-material","2.api/4.materials/custom-shader-material",{"title":171,"path":172,"stem":173},"Mesh Glass Material","/api/materials/glass-material","2.api/4.materials/glass-material",{"title":175,"path":176,"stem":177},"Holographic Material","/api/materials/holographic-material","2.api/4.materials/holographic-material",{"title":179,"path":180,"stem":181},"Mesh Discard Material","/api/materials/mesh-discard-material","2.api/4.materials/mesh-discard-material",{"title":183,"path":184,"stem":185},"Mesh Portal Material","/api/materials/mesh-portal-material","2.api/4.materials/mesh-portal-material",{"title":187,"path":188,"stem":189},"Mesh Reflection Material","/api/materials/mesh-reflection-material","2.api/4.materials/mesh-reflection-material",{"title":191,"path":192,"stem":193},"Mesh Transmission Material","/api/materials/mesh-transmission-material","2.api/4.materials/mesh-transmission-material",{"title":195,"path":196,"stem":197},"Point Material","/api/materials/point-material","2.api/4.materials/point-material",{"title":199,"path":200,"stem":201},"Wobble Material","/api/materials/wobble-material","2.api/4.materials/wobble-material",{"title":203,"path":204,"stem":205,"children":206},"Shapes","/api/shapes","2.api/5.shapes/index",[207,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296],{"title":203,"path":204,"stem":205},{"title":209,"path":210,"stem":211},"Box","/api/shapes/box","2.api/5.shapes/box",{"title":213,"path":214,"stem":215},"CatmullRomCurve3","/api/shapes/catmullromcurve3","2.api/5.shapes/catmullromcurve3",{"title":217,"path":218,"stem":219},"Circle","/api/shapes/circle","2.api/5.shapes/circle",{"title":221,"path":222,"stem":223},"Cone","/api/shapes/cone","2.api/5.shapes/cone",{"title":225,"path":226,"stem":227},"Cubic Bezier Line","/api/shapes/cubic-bezier-line","2.api/5.shapes/cubic-bezier-line",{"title":229,"path":230,"stem":231},"Cylinder","/api/shapes/cylinder","2.api/5.shapes/cylinder",{"title":233,"path":234,"stem":235},"Dodecahedron","/api/shapes/dodecahedron","2.api/5.shapes/dodecahedron",{"title":237,"path":238,"stem":239},"Grid","/api/shapes/grid","2.api/5.shapes/grid",{"title":241,"path":242,"stem":243},"Icosahedron","/api/shapes/icosahedron","2.api/5.shapes/icosahedron",{"title":245,"path":246,"stem":247},"Line2","/api/shapes/line2","2.api/5.shapes/line2",{"title":249,"path":250,"stem":251},"Octahedron","/api/shapes/octahedron","2.api/5.shapes/octahedron",{"title":253,"path":254,"stem":255},"Plane","/api/shapes/plane","2.api/5.shapes/plane",{"title":257,"path":258,"stem":259},"Quadratic Bezier Line","/api/shapes/quadratic-bezier-line","2.api/5.shapes/quadratic-bezier-line",{"title":261,"path":262,"stem":263},"Ring","/api/shapes/ring","2.api/5.shapes/ring",{"title":265,"path":266,"stem":267},"Rounded Box","/api/shapes/rounded-box","2.api/5.shapes/rounded-box",{"title":269,"path":270,"stem":271},"Rounded Plane","/api/shapes/rounded-plane","2.api/5.shapes/rounded-plane",{"title":273,"path":274,"stem":275},"Screen Quad","/api/shapes/screen-quad","2.api/5.shapes/screen-quad",{"title":277,"path":278,"stem":279},"Sphere","/api/shapes/sphere","2.api/5.shapes/sphere",{"title":281,"path":282,"stem":283},"Superformula","/api/shapes/superformula","2.api/5.shapes/superformula",{"title":285,"path":286,"stem":287},"Tetrahedron","/api/shapes/tetrahedron","2.api/5.shapes/tetrahedron",{"title":289,"path":290,"stem":291},"Torus","/api/shapes/torus","2.api/5.shapes/torus",{"title":293,"path":294,"stem":295},"Torus Knot","/api/shapes/torus-knot","2.api/5.shapes/torus-knot",{"title":297,"path":298,"stem":299},"Tube","/api/shapes/tube","2.api/5.shapes/tube",{"title":301,"path":302,"stem":303,"children":304},"Debug/Performance","/api/debug-performance","2.api/6.debug-performance/index",[305,306,310,314,318,322],{"title":301,"path":302,"stem":303},{"title":307,"path":308,"stem":309},"Helper","/api/debug-performance/helper","2.api/6.debug-performance/helper",{"title":311,"path":312,"stem":313},"LOD","/api/debug-performance/lod","2.api/6.debug-performance/lod",{"title":315,"path":316,"stem":317},"Stats","/api/debug-performance/stats","2.api/6.debug-performance/stats",{"title":319,"path":320,"stem":321},"StatsGl","/api/debug-performance/stats-gl","2.api/6.debug-performance/stats-gl",{"title":323,"path":324,"stem":325},"useBVH","/api/debug-performance/use-bvh","2.api/6.debug-performance/use-bvh",{"title":327,"path":328,"stem":329,"children":330},"Light/Shadow","/api/light-shadow","2.api/7.light-shadow/index",[331,332,336,340,344,348,352,356],{"title":327,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Accumulative Shadows","/api/light-shadow/accumulative-shadows","2.api/7.light-shadow/accumulative-shadows",{"title":337,"path":338,"stem":339},"Bake Shadows","/api/light-shadow/bake-shadows","2.api/7.light-shadow/bake-shadows",{"title":341,"path":342,"stem":343},"Circle Shadow","/api/light-shadow/circle-shadow","2.api/7.light-shadow/circle-shadow",{"title":345,"path":346,"stem":347},"Contact Shadows","/api/light-shadow/contact-shadows","2.api/7.light-shadow/contact-shadows",{"title":349,"path":350,"stem":351},"Lensflare","/api/light-shadow/lensflare","2.api/7.light-shadow/lensflare",{"title":353,"path":354,"stem":355},"Randomized Lights","/api/light-shadow/randomized-lights","2.api/7.light-shadow/randomized-lights",{"title":357,"path":358,"stem":359},"Soft Shadows","/api/light-shadow/soft-shadows","2.api/7.light-shadow/soft-shadows",{"title":361,"path":362,"stem":363,"children":364},"Staging","/api/staging","2.api/8.staging/index",[365,366,370,374,378,382,386,390,394,398,402,406],{"title":361,"path":362,"stem":363},{"title":367,"path":368,"stem":369},"Environment","/api/staging/environment","2.api/8.staging/1.environment",{"title":371,"path":372,"stem":373},"useEnvironment","/api/staging/use-environment","2.api/8.staging/2.use-environment",{"title":375,"path":376,"stem":377},"Lightformer","/api/staging/lightformer","2.api/8.staging/3.lightformer",{"title":379,"path":380,"stem":381},"Backdrop","/api/staging/backdrop","2.api/8.staging/backdrop",{"title":383,"path":384,"stem":385},"Ocean","/api/staging/ocean","2.api/8.staging/ocean",{"title":387,"path":388,"stem":389},"Precipitation","/api/staging/precipitation","2.api/8.staging/precipitation",{"title":391,"path":392,"stem":393},"Sky","/api/staging/sky","2.api/8.staging/sky",{"title":395,"path":396,"stem":397},"Smoke","/api/staging/smoke","2.api/8.staging/smoke",{"title":399,"path":400,"stem":401},"Sparkles","/api/staging/sparkles","2.api/8.staging/sparkles",{"title":403,"path":404,"stem":405},"Stage","/api/staging/stage","2.api/8.staging/stage",{"title":407,"path":408,"stem":409},"Stars","/api/staging/stars","2.api/8.staging/stars",{"title":411,"path":412,"stem":413,"children":414},"Objects","/api/objects","2.api/9.objects/index",[415,416,420,424,428,432,436,440,444,448,452],{"title":411,"path":412,"stem":413},{"title":417,"path":418,"stem":419},"AnimatedSprite","/api/objects/animated-sprite","2.api/9.objects/animated-sprite",{"title":421,"path":422,"stem":423},"CubeCamera","/api/objects/cube-camera","2.api/9.objects/cube-camera",{"title":425,"path":426,"stem":427},"Fbo","/api/objects/fbo","2.api/9.objects/fbo",{"title":429,"path":430,"stem":431},"GradientTexture","/api/objects/gradient-texture","2.api/9.objects/gradient-texture",{"title":433,"path":434,"stem":435},"HTML","/api/objects/html","2.api/9.objects/html",{"title":437,"path":438,"stem":439},"Image","/api/objects/image","2.api/9.objects/image",{"title":441,"path":442,"stem":443},"MarchingCubes","/api/objects/marching-cubes","2.api/9.objects/marching-cubes",{"title":445,"path":446,"stem":447},"Reflector","/api/objects/reflector","2.api/9.objects/reflector",{"title":449,"path":450,"stem":451},"Refractor","/api/objects/refractor","2.api/9.objects/refractor",{"title":453,"path":454,"stem":455},"Text3D","/api/objects/text-3d","2.api/9.objects/text-3d",{"title":457,"path":458,"stem":459,"children":460},"Miscellaneous","/api/miscellaneous","2.api/miscellaneous/index",[461,462,466,470,474,478,482,486],{"title":457,"path":458,"stem":459},{"title":463,"path":464,"stem":465},"Bounds","/api/miscellaneous/bounds","2.api/miscellaneous/bounds",{"title":467,"path":468,"stem":469},"GlobalAudio","/api/miscellaneous/global-audio","2.api/miscellaneous/global-audio",{"title":471,"path":472,"stem":473},"MouseParallax","/api/miscellaneous/mouse-parallax","2.api/miscellaneous/mouse-parallax",{"title":475,"path":476,"stem":477},"PositionalAudio","/api/miscellaneous/positional-audio","2.api/miscellaneous/positional-audio",{"title":479,"path":480,"stem":481},"useAnimations","/api/miscellaneous/use-animations","2.api/miscellaneous/use-animations",{"title":483,"path":484,"stem":485},"useGLTFExporter","/api/miscellaneous/use-gltf-exporter","2.api/miscellaneous/use-gltf-exporter",{"title":487,"path":488,"stem":489},"useIntersect","/api/miscellaneous/use-intersect","2.api/miscellaneous/use-intersect",{"id":491,"title":437,"body":492,"description":1206,"extension":1207,"links":1208,"meta":1209,"navigation":628,"path":438,"seo":1210,"stem":439,"__hash__":1211},"docs/2.api/9.objects/image.md",{"type":493,"value":494,"toc":1201},"minimark",[495,501,509,513,744,748,756,990,994,1019,1197],[496,497,498],"scene-controls-wrapper",{},[499,500],"objects-image",{},[502,503,504,508],"p",{},[505,506,507],"code",{},"\u003CImage />"," is a shader-based component that optionally loads then displays an image texture on a default plane or on your custom geometry.",[510,511,15],"h2",{"id":512},"usage",[514,515,525],"pre",{"className":516,"code":517,"highlights":518,"language":523,"meta":524,"style":524},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCanvas } from '@tresjs/core'\nimport { Image } from '@tresjs/cientos'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas>\n    \u003CTresPerspectiveCamera :position=\"[0, 0, 5]\" />\n\n    \u003CImage\n      url=\"https://upload.wikimedia.org/wikipedia/commons/f/f0/Cyanistes_caeruleus_Oulu_20150516.JPG\"\n      :scale=\"[2, 2]\"\n    />\n  \u003C/TresCanvas>\n\u003C/template>\n",[519,520,521,522],3,10,11,12,"vue","",[505,526,527,562,591,613,623,630,640,651,675,680,688,704,719,725,735],{"__ignoreMap":524},[528,529,532,536,540,544,547,550,553,557,559],"span",{"class":530,"line":531},"line",1,[528,533,535],{"class":534},"sMK4o","\u003C",[528,537,539],{"class":538},"swJcz","script",[528,541,543],{"class":542},"spNyl"," setup",[528,545,546],{"class":542}," lang",[528,548,549],{"class":534},"=",[528,551,552],{"class":534},"\"",[528,554,556],{"class":555},"sfazB","ts",[528,558,552],{"class":534},[528,560,561],{"class":534},">\n",[528,563,565,569,572,576,579,582,585,588],{"class":530,"line":564},2,[528,566,568],{"class":567},"s7zQu","import",[528,570,571],{"class":534}," {",[528,573,575],{"class":574},"sTEyZ"," TresCanvas",[528,577,578],{"class":534}," }",[528,580,581],{"class":567}," from",[528,583,584],{"class":534}," '",[528,586,587],{"class":555},"@tresjs/core",[528,589,590],{"class":534},"'\n",[528,592,595,597,599,602,604,606,608,611],{"class":593,"line":519},[530,594],"highlight",[528,596,568],{"class":567},[528,598,571],{"class":534},[528,600,601],{"class":574}," Image",[528,603,578],{"class":534},[528,605,581],{"class":567},[528,607,584],{"class":534},[528,609,610],{"class":555},"@tresjs/cientos",[528,612,590],{"class":534},[528,614,616,619,621],{"class":530,"line":615},4,[528,617,618],{"class":534},"\u003C/",[528,620,539],{"class":538},[528,622,561],{"class":534},[528,624,626],{"class":530,"line":625},5,[528,627,629],{"emptyLinePlaceholder":628},true,"\n",[528,631,633,635,638],{"class":530,"line":632},6,[528,634,535],{"class":534},[528,636,637],{"class":538},"template",[528,639,561],{"class":534},[528,641,643,646,649],{"class":530,"line":642},7,[528,644,645],{"class":534},"  \u003C",[528,647,648],{"class":538},"TresCanvas",[528,650,561],{"class":534},[528,652,654,657,660,663,665,667,670,672],{"class":530,"line":653},8,[528,655,656],{"class":534},"    \u003C",[528,658,659],{"class":538},"TresPerspectiveCamera",[528,661,662],{"class":542}," :position",[528,664,549],{"class":534},[528,666,552],{"class":534},[528,668,669],{"class":555},"[0, 0, 5]",[528,671,552],{"class":534},[528,673,674],{"class":534}," />\n",[528,676,678],{"class":530,"line":677},9,[528,679,629],{"emptyLinePlaceholder":628},[528,681,683,685],{"class":682,"line":520},[530,594],[528,684,656],{"class":534},[528,686,687],{"class":538},"Image\n",[528,689,691,694,696,698,701],{"class":690,"line":521},[530,594],[528,692,693],{"class":542},"      url",[528,695,549],{"class":534},[528,697,552],{"class":534},[528,699,700],{"class":555},"https://upload.wikimedia.org/wikipedia/commons/f/f0/Cyanistes_caeruleus_Oulu_20150516.JPG",[528,702,703],{"class":534},"\"\n",[528,705,707,710,712,714,717],{"class":706,"line":522},[530,594],[528,708,709],{"class":542},"      :scale",[528,711,549],{"class":534},[528,713,552],{"class":534},[528,715,716],{"class":555},"[2, 2]",[528,718,703],{"class":534},[528,720,722],{"class":530,"line":721},13,[528,723,724],{"class":534},"    />\n",[528,726,728,731,733],{"class":530,"line":727},14,[528,729,730],{"class":534},"  \u003C/",[528,732,648],{"class":538},[528,734,561],{"class":534},[528,736,738,740,742],{"class":530,"line":737},15,[528,739,618],{"class":534},[528,741,637],{"class":538},[528,743,561],{"class":534},[510,745,747],{"id":746},"props","Props",[749,750,751],"prose-warning",{},[502,752,753,755],{},[505,754,507],{}," is a THREE.Mesh and most Mesh attributes can be used as props on the component.",[757,758,759,776],"table",{},[760,761,762],"thead",{},[763,764,765,770,773],"tr",{},[766,767,769],"th",{"align":768},"left","Prop",[766,771,772],{"align":768},"Description",[766,774,775],{},"Default",[777,778,779,795,812,827,841,860,874,895,914,929,946,966,978],"tbody",{},[763,780,781,787,790],{},[782,783,784],"td",{"align":768},[505,785,786],{},"segments",[782,788,789],{"align":768},"Number of divisions in the default geometry.",[782,791,792],{},[505,793,794],{},"1",[763,796,797,802,808],{},[782,798,799],{"align":768},[505,800,801],{},"scale",[782,803,804,805],{"align":768},"Scale of the geometry. ",[505,806,807],{},"number | [number, number]",[782,809,810],{},[505,811,794],{},[763,813,814,819,822],{},[782,815,816],{"align":768},[505,817,818],{},"color",[782,820,821],{"align":768},"Color multiplied into the image texture.",[782,823,824],{},[505,825,826],{},"'white'",[763,828,829,834,837],{},[782,830,831],{"align":768},[505,832,833],{},"zoom",[782,835,836],{"align":768},"Shrinks or enlarges the image texture.",[782,838,839],{},[505,840,794],{},[763,842,843,848,855],{},[782,844,845],{"align":768},[505,846,847],{},"radius",[782,849,850,851,854],{"align":768},"Border radius applied to the image texture. (Intended for rectangular geometries. Use with ",[505,852,853],{},"transparent",".)",[782,856,857],{},[505,858,859],{},"0",[763,861,862,867,870],{},[782,863,864],{"align":768},[505,865,866],{},"grayscale",[782,868,869],{"align":768},"Power of grayscale effect. 0 is off. 1 is full grayscale.",[782,871,872],{},[505,873,859],{},[763,875,876,881,891],{},[782,877,878],{"align":768},[505,879,880],{},"toneMapped",[782,882,883,884],{"align":768},"Whether this material is tone mapped according to the renderers toneMapping settings. ",[885,886,890],"a",{"href":887,"rel":888},"https://threejs.org/docs/?q=material#api/en/materials/Material.toneMapped",[889],"nofollow","See THREE.material.tonemapped",[782,892,893],{},[505,894,859],{},[763,896,897,901,909],{},[782,898,899],{"align":768},[505,900,853],{},[782,902,903,904],{"align":768},"Whether the image material should be transparent. ",[885,905,908],{"href":906,"rel":907},"https://threejs.org/docs/?q=material#api/en/materials/Material.transparent",[889],"See THREE.material.transparent",[782,910,911],{},[505,912,913],{},"false",[763,915,916,920,925],{},[782,917,918],{"align":768},[505,919,853],{},[782,921,903,922],{"align":768},[885,923,908],{"href":906,"rel":924},[889],[782,926,927],{},[505,928,913],{},[763,930,931,936,942],{},[782,932,933],{"align":768},[505,934,935],{},"opacity",[782,937,938,939],{"align":768},"Opacity of the image material. ",[885,940,908],{"href":906,"rel":941},[889],[782,943,944],{},[505,945,794],{},[763,947,948,953,961],{},[782,949,950],{"align":768},[505,951,952],{},"side",[782,954,955,956],{"align":768},"THREE.Side of the image material. ",[885,957,960],{"href":958,"rel":959},"https://threejs.org/docs/?q=material#api/en/materials/Material.side",[889],"See THREE.material.side",[782,962,963],{},[505,964,965],{},"FrontSide",[763,967,968,973,976],{},[782,969,970],{"align":768},[505,971,972],{},"texture",[782,974,975],{"align":768},"Image texture to display on the geometry.",[782,977],{},[763,979,980,985,988],{},[782,981,982],{"align":768},[505,983,984],{},"url",[782,986,987],{"align":768},"Image URL to load and display on the geometry.",[782,989],{},[510,991,993],{"id":992},"caveats","Caveats",[502,995,996,997,999,1000,1003,1004,1006,1007,1010,1011,1014,1015,1018],{},"By default, images loaded via the ",[505,998,984],{}," prop use the renderer’s output color space. For advanced control, pass a ",[505,1001,1002],{},"THREE.Texture"," via the ",[505,1005,972],{}," prop and set its ",[505,1008,1009],{},"colorSpace"," (e.g., ",[505,1012,1013],{},"THREE.SRGBColorSpace"," or ",[505,1016,1017],{},"THREE.LinearSRGBColorSpace",").",[514,1020,1022],{"className":516,"code":1021,"language":523,"meta":524,"style":524},"\u003Cscript setup>\nimport { useTexture } from '@tresjs/cientos'\nimport { SRGBColorSpace } from 'three'\n\nconst { state } = useTexture(URL)\nwatch(state, (texture) => {\n  texture.colorSpace = SRGBColorSpace // assign a custom color space\n})\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CImage :texture=\"texture\" />\n\u003C/template>\n",[505,1023,1024,1034,1053,1073,1077,1099,1125,1143,1150,1158,1162,1170,1189],{"__ignoreMap":524},[528,1025,1026,1028,1030,1032],{"class":530,"line":531},[528,1027,535],{"class":534},[528,1029,539],{"class":538},[528,1031,543],{"class":542},[528,1033,561],{"class":534},[528,1035,1036,1038,1040,1043,1045,1047,1049,1051],{"class":530,"line":564},[528,1037,568],{"class":567},[528,1039,571],{"class":534},[528,1041,1042],{"class":574}," useTexture",[528,1044,578],{"class":534},[528,1046,581],{"class":567},[528,1048,584],{"class":534},[528,1050,610],{"class":555},[528,1052,590],{"class":534},[528,1054,1055,1057,1059,1062,1064,1066,1068,1071],{"class":530,"line":519},[528,1056,568],{"class":567},[528,1058,571],{"class":534},[528,1060,1061],{"class":574}," SRGBColorSpace",[528,1063,578],{"class":534},[528,1065,581],{"class":567},[528,1067,584],{"class":534},[528,1069,1070],{"class":555},"three",[528,1072,590],{"class":534},[528,1074,1075],{"class":530,"line":615},[528,1076,629],{"emptyLinePlaceholder":628},[528,1078,1079,1082,1084,1087,1090,1093,1096],{"class":530,"line":625},[528,1080,1081],{"class":542},"const",[528,1083,571],{"class":534},[528,1085,1086],{"class":574}," state ",[528,1088,1089],{"class":534},"}",[528,1091,1092],{"class":534}," =",[528,1094,1042],{"class":1095},"s2Zo4",[528,1097,1098],{"class":574},"(URL)\n",[528,1100,1101,1104,1107,1110,1113,1116,1119,1122],{"class":530,"line":632},[528,1102,1103],{"class":1095},"watch",[528,1105,1106],{"class":574},"(state",[528,1108,1109],{"class":534},",",[528,1111,1112],{"class":534}," (",[528,1114,972],{"class":1115},"sHdIc",[528,1117,1118],{"class":534},")",[528,1120,1121],{"class":542}," =>",[528,1123,1124],{"class":534}," {\n",[528,1126,1127,1130,1133,1135,1137,1139],{"class":530,"line":642},[528,1128,1129],{"class":574},"  texture",[528,1131,1132],{"class":534},".",[528,1134,1009],{"class":574},[528,1136,1092],{"class":534},[528,1138,1061],{"class":574},[528,1140,1142],{"class":1141},"sHwdD"," // assign a custom color space\n",[528,1144,1145,1147],{"class":530,"line":653},[528,1146,1089],{"class":534},[528,1148,1149],{"class":574},")\n",[528,1151,1152,1154,1156],{"class":530,"line":677},[528,1153,618],{"class":534},[528,1155,539],{"class":538},[528,1157,561],{"class":534},[528,1159,1160],{"class":530,"line":520},[528,1161,629],{"emptyLinePlaceholder":628},[528,1163,1164,1166,1168],{"class":530,"line":521},[528,1165,535],{"class":534},[528,1167,637],{"class":538},[528,1169,561],{"class":534},[528,1171,1172,1174,1176,1179,1181,1183,1185,1187],{"class":530,"line":522},[528,1173,645],{"class":534},[528,1175,437],{"class":538},[528,1177,1178],{"class":542}," :texture",[528,1180,549],{"class":534},[528,1182,552],{"class":534},[528,1184,972],{"class":555},[528,1186,552],{"class":534},[528,1188,674],{"class":534},[528,1190,1191,1193,1195],{"class":530,"line":721},[528,1192,618],{"class":534},[528,1194,637],{"class":538},[528,1196,561],{"class":534},[1198,1199,1200],"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 .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}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":524,"searchDepth":531,"depth":564,"links":1202},[1203,1204,1205],{"id":512,"depth":564,"text":15},{"id":746,"depth":564,"text":747},{"id":992,"depth":564,"text":993},"Display image textures with shader-based effects.","md",null,{},{"title":437,"description":1206},"X-ToNyUMXQZlkTHUsm9OM76zK6fPjZKmSgrWtCQht4g",[1213,1215],{"title":433,"path":434,"stem":435,"description":1214,"children":-1},"Allows you put DOM elements in your Tres.js scene.",{"title":441,"path":442,"stem":443,"description":1216,"children":-1},"Create organic blob-like shapes using metaballs.",1785417273895]