[{"data":1,"prerenderedAt":1227},["ShallowReactive",2],{"navigation":3,"/api/objects/image":474,"/api/objects/image-surround":1222},[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":421,"body":476,"description":1216,"extension":1217,"links":1218,"meta":1219,"navigation":612,"path":422,"seo":1220,"stem":423,"__hash__":1221},"docs/2.api/9.objects/image.md",{"type":477,"value":478,"toc":1211},"minimark",[479,485,493,497,759,763,771,1003,1007,1032,1207],[480,481,482],"scene-controls-wrapper",{},[483,484],"objects-image",{},[486,487,488,492],"p",{},[489,490,491],"code",{},"\u003CImage />"," is a shader-based component that optionally loads then displays an image texture on a default plane or on your custom geometry.",[494,495,15],"h2",{"id":496},"usage",[498,499,509],"pre",{"className":500,"code":501,"highlights":502,"language":507,"meta":508,"style":508},"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",[503,504,505,506],3,10,11,12,"vue","",[489,510,511,546,575,597,607,614,624,635,679,684,692,708,734,740,750],{"__ignoreMap":508},[512,513,516,520,524,528,531,534,537,541,543],"span",{"class":514,"line":515},"line",1,[512,517,519],{"class":518},"sMK4o","\u003C",[512,521,523],{"class":522},"swJcz","script",[512,525,527],{"class":526},"spNyl"," setup",[512,529,530],{"class":526}," lang",[512,532,533],{"class":518},"=",[512,535,536],{"class":518},"\"",[512,538,540],{"class":539},"sfazB","ts",[512,542,536],{"class":518},[512,544,545],{"class":518},">\n",[512,547,549,553,556,560,563,566,569,572],{"class":514,"line":548},2,[512,550,552],{"class":551},"s7zQu","import",[512,554,555],{"class":518}," {",[512,557,559],{"class":558},"sTEyZ"," TresCanvas",[512,561,562],{"class":518}," }",[512,564,565],{"class":551}," from",[512,567,568],{"class":518}," '",[512,570,571],{"class":539},"@tresjs/core",[512,573,574],{"class":518},"'\n",[512,576,579,581,583,586,588,590,592,595],{"class":577,"line":503},[514,578],"highlight",[512,580,552],{"class":551},[512,582,555],{"class":518},[512,584,585],{"class":558}," Image",[512,587,562],{"class":518},[512,589,565],{"class":551},[512,591,568],{"class":518},[512,593,594],{"class":539},"@tresjs/cientos",[512,596,574],{"class":518},[512,598,600,603,605],{"class":514,"line":599},4,[512,601,602],{"class":518},"\u003C/",[512,604,523],{"class":522},[512,606,545],{"class":518},[512,608,610],{"class":514,"line":609},5,[512,611,613],{"emptyLinePlaceholder":612},true,"\n",[512,615,617,619,622],{"class":514,"line":616},6,[512,618,519],{"class":518},[512,620,621],{"class":522},"template",[512,623,545],{"class":518},[512,625,627,630,633],{"class":514,"line":626},7,[512,628,629],{"class":518},"  \u003C",[512,631,632],{"class":522},"TresCanvas",[512,634,545],{"class":518},[512,636,638,641,644,647,650,652,654,657,661,664,666,668,671,674,676],{"class":514,"line":637},8,[512,639,640],{"class":518},"    \u003C",[512,642,643],{"class":522},"TresPerspectiveCamera",[512,645,646],{"class":518}," :",[512,648,649],{"class":526},"position",[512,651,533],{"class":518},[512,653,536],{"class":518},[512,655,656],{"class":518},"[",[512,658,660],{"class":659},"sbssI","0",[512,662,663],{"class":518},", ",[512,665,660],{"class":659},[512,667,663],{"class":518},[512,669,670],{"class":659},"5",[512,672,673],{"class":518},"]",[512,675,536],{"class":518},[512,677,678],{"class":518}," />\n",[512,680,682],{"class":514,"line":681},9,[512,683,613],{"emptyLinePlaceholder":612},[512,685,687,689],{"class":686,"line":504},[514,578],[512,688,640],{"class":518},[512,690,691],{"class":522},"Image\n",[512,693,695,698,700,702,705],{"class":694,"line":505},[514,578],[512,696,697],{"class":526},"      url",[512,699,533],{"class":518},[512,701,536],{"class":518},[512,703,704],{"class":539},"https://upload.wikimedia.org/wikipedia/commons/f/f0/Cyanistes_caeruleus_Oulu_20150516.JPG",[512,706,707],{"class":518},"\"\n",[512,709,711,714,717,719,721,723,726,728,730,732],{"class":710,"line":506},[514,578],[512,712,713],{"class":518},"      :",[512,715,716],{"class":526},"scale",[512,718,533],{"class":518},[512,720,536],{"class":518},[512,722,656],{"class":518},[512,724,725],{"class":659},"2",[512,727,663],{"class":518},[512,729,725],{"class":659},[512,731,673],{"class":518},[512,733,707],{"class":518},[512,735,737],{"class":514,"line":736},13,[512,738,739],{"class":518},"    />\n",[512,741,743,746,748],{"class":514,"line":742},14,[512,744,745],{"class":518},"  \u003C/",[512,747,632],{"class":522},[512,749,545],{"class":518},[512,751,753,755,757],{"class":514,"line":752},15,[512,754,602],{"class":518},[512,756,621],{"class":522},[512,758,545],{"class":518},[494,760,762],{"id":761},"props","Props",[764,765,766],"prose-warning",{},[486,767,768,770],{},[489,769,491],{}," is a THREE.Mesh and most Mesh attributes can be used as props on the component.",[772,773,774,791],"table",{},[775,776,777],"thead",{},[778,779,780,785,788],"tr",{},[781,782,784],"th",{"align":783},"left","Prop",[781,786,787],{"align":783},"Description",[781,789,790],{},"Default",[792,793,794,810,826,841,855,873,887,908,927,942,959,979,991],"tbody",{},[778,795,796,802,805],{},[797,798,799],"td",{"align":783},[489,800,801],{},"segments",[797,803,804],{"align":783},"Number of divisions in the default geometry.",[797,806,807],{},[489,808,809],{},"1",[778,811,812,816,822],{},[797,813,814],{"align":783},[489,815,716],{},[797,817,818,819],{"align":783},"Scale of the geometry. ",[489,820,821],{},"number | [number, number]",[797,823,824],{},[489,825,809],{},[778,827,828,833,836],{},[797,829,830],{"align":783},[489,831,832],{},"color",[797,834,835],{"align":783},"Color multiplied into the image texture.",[797,837,838],{},[489,839,840],{},"'white'",[778,842,843,848,851],{},[797,844,845],{"align":783},[489,846,847],{},"zoom",[797,849,850],{"align":783},"Shrinks or enlarges the image texture.",[797,852,853],{},[489,854,809],{},[778,856,857,862,869],{},[797,858,859],{"align":783},[489,860,861],{},"radius",[797,863,864,865,868],{"align":783},"Border radius applied to the image texture. (Intended for rectangular geometries. Use with ",[489,866,867],{},"transparent",".)",[797,870,871],{},[489,872,660],{},[778,874,875,880,883],{},[797,876,877],{"align":783},[489,878,879],{},"grayscale",[797,881,882],{"align":783},"Power of grayscale effect. 0 is off. 1 is full grayscale.",[797,884,885],{},[489,886,660],{},[778,888,889,894,904],{},[797,890,891],{"align":783},[489,892,893],{},"toneMapped",[797,895,896,897],{"align":783},"Whether this material is tone mapped according to the renderers toneMapping settings. ",[898,899,903],"a",{"href":900,"rel":901},"https://threejs.org/docs/?q=material#api/en/materials/Material.toneMapped",[902],"nofollow","See THREE.material.tonemapped",[797,905,906],{},[489,907,660],{},[778,909,910,914,922],{},[797,911,912],{"align":783},[489,913,867],{},[797,915,916,917],{"align":783},"Whether the image material should be transparent. ",[898,918,921],{"href":919,"rel":920},"https://threejs.org/docs/?q=material#api/en/materials/Material.transparent",[902],"See THREE.material.transparent",[797,923,924],{},[489,925,926],{},"false",[778,928,929,933,938],{},[797,930,931],{"align":783},[489,932,867],{},[797,934,916,935],{"align":783},[898,936,921],{"href":919,"rel":937},[902],[797,939,940],{},[489,941,926],{},[778,943,944,949,955],{},[797,945,946],{"align":783},[489,947,948],{},"opacity",[797,950,951,952],{"align":783},"Opacity of the image material. ",[898,953,921],{"href":919,"rel":954},[902],[797,956,957],{},[489,958,809],{},[778,960,961,966,974],{},[797,962,963],{"align":783},[489,964,965],{},"side",[797,967,968,969],{"align":783},"THREE.Side of the image material. ",[898,970,973],{"href":971,"rel":972},"https://threejs.org/docs/?q=material#api/en/materials/Material.side",[902],"See THREE.material.side",[797,975,976],{},[489,977,978],{},"FrontSide",[778,980,981,986,989],{},[797,982,983],{"align":783},[489,984,985],{},"texture",[797,987,988],{"align":783},"Image texture to display on the geometry.",[797,990],{},[778,992,993,998,1001],{},[797,994,995],{"align":783},[489,996,997],{},"url",[797,999,1000],{"align":783},"Image URL to load and display on the geometry.",[797,1002],{},[494,1004,1006],{"id":1005},"caveats","Caveats",[486,1008,1009,1010,1012,1013,1016,1017,1019,1020,1023,1024,1027,1028,1031],{},"By default, images loaded via the ",[489,1011,997],{}," prop use the renderer’s output color space. For advanced control, pass a ",[489,1014,1015],{},"THREE.Texture"," via the ",[489,1018,985],{}," prop and set its ",[489,1021,1022],{},"colorSpace"," (e.g., ",[489,1025,1026],{},"THREE.SRGBColorSpace"," or ",[489,1029,1030],{},"THREE.LinearSRGBColorSpace",").",[498,1033,1035],{"className":500,"code":1034,"language":507,"meta":508,"style":508},"\u003Cscript setup>\nimport { useTexture } from '@tresjs/cientos'\nimport { SRGBColorSpace } from 'three'\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",[489,1036,1037,1047,1066,1086,1108,1134,1152,1159,1167,1171,1179,1199],{"__ignoreMap":508},[512,1038,1039,1041,1043,1045],{"class":514,"line":515},[512,1040,519],{"class":518},[512,1042,523],{"class":522},[512,1044,527],{"class":526},[512,1046,545],{"class":518},[512,1048,1049,1051,1053,1056,1058,1060,1062,1064],{"class":514,"line":548},[512,1050,552],{"class":551},[512,1052,555],{"class":518},[512,1054,1055],{"class":558}," useTexture",[512,1057,562],{"class":518},[512,1059,565],{"class":551},[512,1061,568],{"class":518},[512,1063,594],{"class":539},[512,1065,574],{"class":518},[512,1067,1068,1070,1072,1075,1077,1079,1081,1084],{"class":514,"line":503},[512,1069,552],{"class":551},[512,1071,555],{"class":518},[512,1073,1074],{"class":558}," SRGBColorSpace",[512,1076,562],{"class":518},[512,1078,565],{"class":551},[512,1080,568],{"class":518},[512,1082,1083],{"class":539},"three",[512,1085,574],{"class":518},[512,1087,1088,1091,1093,1096,1099,1102,1105],{"class":514,"line":599},[512,1089,1090],{"class":526},"const",[512,1092,555],{"class":518},[512,1094,1095],{"class":558}," state ",[512,1097,1098],{"class":518},"}",[512,1100,1101],{"class":518}," =",[512,1103,1055],{"class":1104},"s2Zo4",[512,1106,1107],{"class":558},"(URL)\n",[512,1109,1110,1113,1116,1119,1122,1125,1128,1131],{"class":514,"line":609},[512,1111,1112],{"class":1104},"watch",[512,1114,1115],{"class":558},"(state",[512,1117,1118],{"class":518},",",[512,1120,1121],{"class":518}," (",[512,1123,985],{"class":1124},"sHdIc",[512,1126,1127],{"class":518},")",[512,1129,1130],{"class":526}," =>",[512,1132,1133],{"class":518}," {\n",[512,1135,1136,1139,1142,1144,1146,1148],{"class":514,"line":616},[512,1137,1138],{"class":558},"  texture",[512,1140,1141],{"class":518},".",[512,1143,1022],{"class":558},[512,1145,1101],{"class":518},[512,1147,1074],{"class":558},[512,1149,1151],{"class":1150},"sHwdD"," // assign a custom color space\n",[512,1153,1154,1156],{"class":514,"line":626},[512,1155,1098],{"class":518},[512,1157,1158],{"class":558},")\n",[512,1160,1161,1163,1165],{"class":514,"line":637},[512,1162,602],{"class":518},[512,1164,523],{"class":522},[512,1166,545],{"class":518},[512,1168,1169],{"class":514,"line":681},[512,1170,613],{"emptyLinePlaceholder":612},[512,1172,1173,1175,1177],{"class":514,"line":504},[512,1174,519],{"class":518},[512,1176,621],{"class":522},[512,1178,545],{"class":518},[512,1180,1181,1183,1185,1187,1189,1191,1193,1195,1197],{"class":514,"line":505},[512,1182,629],{"class":518},[512,1184,421],{"class":522},[512,1186,646],{"class":518},[512,1188,985],{"class":526},[512,1190,533],{"class":518},[512,1192,536],{"class":518},[512,1194,985],{"class":558},[512,1196,536],{"class":518},[512,1198,678],{"class":518},[512,1200,1201,1203,1205],{"class":514,"line":506},[512,1202,602],{"class":518},[512,1204,621],{"class":522},[512,1206,545],{"class":518},[1208,1209,1210],"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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":508,"searchDepth":515,"depth":548,"links":1212},[1213,1214,1215],{"id":496,"depth":548,"text":15},{"id":761,"depth":548,"text":762},{"id":1005,"depth":548,"text":1006},"Display image textures with shader-based effects.","md",null,{},{"title":421,"description":1216},"jEAPHxilh9_Gg2oZg9-kp8JsJ1tSjkYRBYlGbuY9YbM",[1223,1225],{"title":417,"path":418,"stem":419,"description":1224,"children":-1},"Allows you put DOM elements in your Tres.js scene.",{"title":425,"path":426,"stem":427,"description":1226,"children":-1},"Create organic blob-like shapes using metaballs.",1781273440698]