[{"data":1,"prerenderedAt":993},["ShallowReactive",2],{"navigation":3,"/api/materials/custom-shader-material":478,"/api/materials/custom-shader-material-surround":988},[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":163,"body":480,"description":982,"extension":983,"links":984,"meta":985,"navigation":637,"path":164,"seo":986,"stem":165,"__hash__":987},"docs/2.api/4.materials/custom-shader-material.md",{"type":481,"value":482,"toc":978},"minimark",[483,489,517,521,956,960,974],[484,485,486],"scene-wrapper",{},[487,488],"materials-custom-shader-material",{},[490,491,492,493,497,498,501,502,511,512,516],"p",{},"The ",[494,495,496],"code",{},"cientos"," package provides ",[494,499,500],{},"\u003CTresCustomShaderMaterial />"," component which is a wrapper around the ",[503,504,508],"a",{"href":505,"rel":506},"https://github.com/FarazzShaikh/THREE-CustomShaderMaterial",[507],"nofollow",[494,509,510],{},"three-custom-shader-material"," class. As states in the repo, it ",[513,514,515],"em",{},"\"lets you extend Three.js' material library with your own Vertex and Fragment shaders\"",".",[518,519,15],"h2",{"id":520},"usage",[522,523,545],"pre",{"className":524,"code":525,"highlights":526,"language":543,"meta":544,"style":544},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCustomShaderMaterial } from '@tresjs/cientos'\nimport { shallowRef } from 'vue'\n\nconst customShaderMaterialRef = shallowRef()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas>\n    \u003CTresPerspectiveCamera :position=\"[3, 3, 3]\" />\n    \u003CTresMesh>\n      \u003CTresBoxGeometry />\n      \u003CTresCustomShaderMaterial\n        ref=\"customShaderMaterialRef\"\n        :vertex-shader=\"vertexShader\"\n        :fragment-shader=\"fragmentShader\"\n        :uniforms=\"{\n          u_time: { value: 0 },\n          u_color: { value: new THREE.Color(0.2, 0.0, 0.1) },\n          u_resolution: { value: new THREE.Vector2() }\n        }\"\n        :transparent=\"true\"\n        :side=\"THREE.DoubleSide\"\n        base-material=\"MeshLambertMaterial\"\n        silent\n        :map=\"texture\"\n        :color=\"0xff0000\"\n      />\n    \u003C/TresMesh>\n    \u003CTresAmbientLight />\n  \u003C/TresCanvas>\n\u003C/template>\n",[527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542],2,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,"vue","",[494,546,547,582,612,632,639,656,666,671,681,692,716,726,737,745,761,776,791,804,810,816,822,830,845,860,875,881,896,911,917,927,937,947],{"__ignoreMap":544},[548,549,552,556,560,564,567,570,573,577,579],"span",{"class":550,"line":551},"line",1,[548,553,555],{"class":554},"sMK4o","\u003C",[548,557,559],{"class":558},"swJcz","script",[548,561,563],{"class":562},"spNyl"," setup",[548,565,566],{"class":562}," lang",[548,568,569],{"class":554},"=",[548,571,572],{"class":554},"\"",[548,574,576],{"class":575},"sfazB","ts",[548,578,572],{"class":554},[548,580,581],{"class":554},">\n",[548,583,586,590,593,597,600,603,606,609],{"class":584,"line":527},[550,585],"highlight",[548,587,589],{"class":588},"s7zQu","import",[548,591,592],{"class":554}," {",[548,594,596],{"class":595},"sTEyZ"," TresCustomShaderMaterial",[548,598,599],{"class":554}," }",[548,601,602],{"class":588}," from",[548,604,605],{"class":554}," '",[548,607,608],{"class":575},"@tresjs/cientos",[548,610,611],{"class":554},"'\n",[548,613,615,617,619,622,624,626,628,630],{"class":550,"line":614},3,[548,616,589],{"class":588},[548,618,592],{"class":554},[548,620,621],{"class":595}," shallowRef",[548,623,599],{"class":554},[548,625,602],{"class":588},[548,627,605],{"class":554},[548,629,543],{"class":575},[548,631,611],{"class":554},[548,633,635],{"class":550,"line":634},4,[548,636,638],{"emptyLinePlaceholder":637},true,"\n",[548,640,642,645,648,650,653],{"class":550,"line":641},5,[548,643,644],{"class":562},"const",[548,646,647],{"class":595}," customShaderMaterialRef ",[548,649,569],{"class":554},[548,651,621],{"class":652},"s2Zo4",[548,654,655],{"class":595},"()\n",[548,657,659,662,664],{"class":550,"line":658},6,[548,660,661],{"class":554},"\u003C/",[548,663,559],{"class":558},[548,665,581],{"class":554},[548,667,669],{"class":550,"line":668},7,[548,670,638],{"emptyLinePlaceholder":637},[548,672,674,676,679],{"class":550,"line":673},8,[548,675,555],{"class":554},[548,677,678],{"class":558},"template",[548,680,581],{"class":554},[548,682,684,687,690],{"class":550,"line":683},9,[548,685,686],{"class":554},"  \u003C",[548,688,689],{"class":558},"TresCanvas",[548,691,581],{"class":554},[548,693,695,698,701,704,706,708,711,713],{"class":550,"line":694},10,[548,696,697],{"class":554},"    \u003C",[548,699,700],{"class":558},"TresPerspectiveCamera",[548,702,703],{"class":562}," :position",[548,705,569],{"class":554},[548,707,572],{"class":554},[548,709,710],{"class":575},"[3, 3, 3]",[548,712,572],{"class":554},[548,714,715],{"class":554}," />\n",[548,717,719,721,724],{"class":550,"line":718},11,[548,720,697],{"class":554},[548,722,723],{"class":558},"TresMesh",[548,725,581],{"class":554},[548,727,729,732,735],{"class":550,"line":728},12,[548,730,731],{"class":554},"      \u003C",[548,733,734],{"class":558},"TresBoxGeometry",[548,736,715],{"class":554},[548,738,740,742],{"class":739,"line":528},[550,585],[548,741,731],{"class":554},[548,743,744],{"class":558},"TresCustomShaderMaterial\n",[548,746,748,751,753,755,758],{"class":747,"line":529},[550,585],[548,749,750],{"class":562},"        ref",[548,752,569],{"class":554},[548,754,572],{"class":554},[548,756,757],{"class":575},"customShaderMaterialRef",[548,759,760],{"class":554},"\"\n",[548,762,764,767,769,771,774],{"class":763,"line":530},[550,585],[548,765,766],{"class":562},"        :vertex-shader",[548,768,569],{"class":554},[548,770,572],{"class":554},[548,772,773],{"class":575},"vertexShader",[548,775,760],{"class":554},[548,777,779,782,784,786,789],{"class":778,"line":531},[550,585],[548,780,781],{"class":562},"        :fragment-shader",[548,783,569],{"class":554},[548,785,572],{"class":554},[548,787,788],{"class":575},"fragmentShader",[548,790,760],{"class":554},[548,792,794,797,799,801],{"class":793,"line":532},[550,585],[548,795,796],{"class":562},"        :uniforms",[548,798,569],{"class":554},[548,800,572],{"class":554},[548,802,803],{"class":575},"{\n",[548,805,807],{"class":806,"line":533},[550,585],[548,808,809],{"class":575},"          u_time: { value: 0 },\n",[548,811,813],{"class":812,"line":534},[550,585],[548,814,815],{"class":575},"          u_color: { value: new THREE.Color(0.2, 0.0, 0.1) },\n",[548,817,819],{"class":818,"line":535},[550,585],[548,820,821],{"class":575},"          u_resolution: { value: new THREE.Vector2() }\n",[548,823,825,828],{"class":824,"line":536},[550,585],[548,826,827],{"class":575},"        }",[548,829,760],{"class":554},[548,831,833,836,838,840,843],{"class":832,"line":537},[550,585],[548,834,835],{"class":562},"        :transparent",[548,837,569],{"class":554},[548,839,572],{"class":554},[548,841,842],{"class":575},"true",[548,844,760],{"class":554},[548,846,848,851,853,855,858],{"class":847,"line":538},[550,585],[548,849,850],{"class":562},"        :side",[548,852,569],{"class":554},[548,854,572],{"class":554},[548,856,857],{"class":575},"THREE.DoubleSide",[548,859,760],{"class":554},[548,861,863,866,868,870,873],{"class":862,"line":539},[550,585],[548,864,865],{"class":562},"        base-material",[548,867,569],{"class":554},[548,869,572],{"class":554},[548,871,872],{"class":575},"MeshLambertMaterial",[548,874,760],{"class":554},[548,876,878],{"class":877,"line":540},[550,585],[548,879,880],{"class":562},"        silent\n",[548,882,884,887,889,891,894],{"class":883,"line":541},[550,585],[548,885,886],{"class":562},"        :map",[548,888,569],{"class":554},[548,890,572],{"class":554},[548,892,893],{"class":575},"texture",[548,895,760],{"class":554},[548,897,899,902,904,906,909],{"class":898,"line":542},[550,585],[548,900,901],{"class":562},"        :color",[548,903,569],{"class":554},[548,905,572],{"class":554},[548,907,908],{"class":575},"0xff0000",[548,910,760],{"class":554},[548,912,914],{"class":550,"line":913},28,[548,915,916],{"class":554},"      />\n",[548,918,920,923,925],{"class":550,"line":919},29,[548,921,922],{"class":554},"    \u003C/",[548,924,723],{"class":558},[548,926,581],{"class":554},[548,928,930,932,935],{"class":550,"line":929},30,[548,931,697],{"class":554},[548,933,934],{"class":558},"TresAmbientLight",[548,936,715],{"class":554},[548,938,940,943,945],{"class":550,"line":939},31,[548,941,942],{"class":554},"  \u003C/",[548,944,689],{"class":558},[548,946,581],{"class":554},[548,948,950,952,954],{"class":550,"line":949},32,[548,951,661],{"class":554},[548,953,678],{"class":558},[548,955,581],{"class":554},[518,957,959],{"id":958},"props","Props",[490,961,962,963,966,967,969,970,516],{},"Being a wrapper around the ",[494,964,965],{},"CustomShaderMaterial"," class, the ",[494,968,500],{}," component accepts all the props that the class does. You can find the full list of props in the ",[503,971,973],{"href":505,"rel":972},[507],"official repo",[975,976,977],"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);}",{"title":544,"searchDepth":551,"depth":527,"links":979},[980,981],{"id":520,"depth":527,"text":15},{"id":958,"depth":527,"text":959},"Extends Three.js' material library with your own Vertex and Fragment shaders.","md",null,{},{"title":163,"description":982},"_HOuAJQ5DQ9SpzOn3sJ32tgM-mbRXc16CsR6Pu3n5Bg",[989,991],{"title":157,"path":158,"stem":159,"description":990,"children":-1},"All materials",{"title":167,"path":168,"stem":169,"description":992,"children":-1},"Makes a geometry look like glass by re-defining the MeshPhysicalMaterial.",1782052431408]