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