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