threers 0.0.7

Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
Documentation
1
{"directional":{"light":[1,0,0,0,0,1,0,0,0,0,1,0,3,4,2,1],"target":[-1,0.5,1],"size":1.5,"lines":[2.42206153,5.14354375,0.309350772,1.69445465,5.14354375,3.21977827,1.69445465,5.14354375,3.21977827,3.57793847,2.85645625,3.69064923,3.57793847,2.85645625,3.69064923,4.30554535,2.85645625,0.780221728,4.30554535,2.85645625,0.780221728,2.42206153,5.14354375,0.309350772,3,4,2,-1,0.5,1],"colors":[],"mesh":[]},"hemisphere":{"light":[1,0,0,0,0,1,0,0,0,0,1,0,1,5,-2,1],"size":2,"sky":[0.24228112245478564,0.6172065624120635,0.8307698767709715],"ground":[0.21586050010324417,0.11697066774917994,0.05126945836711539],"lines":[0.183503419,5.81649658,-0.367006838,2.78885438,5,-1.10557281,2.78885438,5,-1.10557281,1.36514837,6.82574186,-2.73029674,1.36514837,6.82574186,-2.73029674,0.183503419,5.81649658,-0.367006838,2.78885438,5,-1.10557281,1.81649658,4.18350342,-3.63299316,1.81649658,4.18350342,-3.63299316,1.36514837,6.82574186,-2.73029674,1.36514837,6.82574186,-2.73029674,2.78885438,5,-1.10557281,1.81649658,4.18350342,-3.63299316,-0.788854382,5,-2.89442719,-0.788854382,5,-2.89442719,1.36514837,6.82574186,-2.73029674,1.36514837,6.82574186,-2.73029674,1.81649658,4.18350342,-3.63299316,-0.788854382,5,-2.89442719,0.183503419,5.81649658,-0.367006838,0.183503419,5.81649658,-0.367006838,1.36514837,6.82574186,-2.73029674,1.36514837,6.82574186,-2.73029674,-0.788854382,5,-2.89442719,0.183503419,5.81649658,-0.367006838,-0.788854382,5,-2.89442719,-0.788854382,5,-2.89442719,0.634851628,3.17425814,-1.26970326,0.634851628,3.17425814,-1.26970326,0.183503419,5.81649658,-0.367006838,-0.788854382,5,-2.89442719,1.81649658,4.18350342,-3.63299316,1.81649658,4.18350342,-3.63299316,0.634851628,3.17425814,-1.26970326,0.634851628,3.17425814,-1.26970326,-0.788854382,5,-2.89442719,1.81649658,4.18350342,-3.63299316,2.78885438,5,-1.10557281,2.78885438,5,-1.10557281,0.634851628,3.17425814,-1.26970326,0.634851628,3.17425814,-1.26970326,1.81649658,4.18350342,-3.63299316,2.78885438,5,-1.10557281,0.183503419,5.81649658,-0.367006838,0.183503419,5.81649658,-0.367006838,0.634851628,3.17425814,-1.26970326,0.634851628,3.17425814,-1.26970326,2.78885438,5,-1.10557281],"colors":[0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.242281124,0.617206573,0.830769897,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567,0.215860501,0.116970666,0.0512694567],"mesh":[]},"point":{"light":[1,0,0,0,0,1,0,0,0,0,1,0,-2,3,1,1],"size":0.75,"lines":[-2,3.75,1,-2.75,3,1,-2.75,3,1,-2,3,1.75,-2,3,1.75,-2,3.75,1,-2,3.75,1,-2,3,1.75,-2,3,1.75,-1.25,3,1,-1.25,3,1,-2,3.75,1,-2,3.75,1,-1.25,3,1,-1.25,3,1,-2,3,0.25,-2,3,0.25,-2,3.75,1,-2,3.75,1,-2,3,0.25,-2,3,0.25,-2.75,3,1,-2.75,3,1,-2,3.75,1,-2,3,1.75,-2.75,3,1,-2.75,3,1,-2,2.25,1,-2,2.25,1,-2,3,1.75,-1.25,3,1,-2,3,1.75,-2,3,1.75,-2,2.25,1,-2,2.25,1,-1.25,3,1,-2,3,0.25,-1.25,3,1,-1.25,3,1,-2,2.25,1,-2,2.25,1,-2,3,0.25,-2.75,3,1,-2,3,0.25,-2,3,0.25,-2,2.25,1,-2,2.25,1,-2.75,3,1],"colors":[],"mesh":[]},"spot":{"light":[1,0,0,0,0,1,0,0,0,0,1,0,2,5,3,1],"target":[0,0,-1],"distance":8,"angle":0.5235987755982988,"lines":[2,5,3,-0.385139176,-0.96284794,-1.77027835,2,5,3,-4.51632141,-0.96284794,0.295312766,2,5,3,3.74604306,-0.96284794,-3.83586947,2,5,3,-1.92473989,2.1163535,-4.84947979,2,5,3,1.15446154,-4.04204938,1.30892308,-4.51632141,-0.96284794,0.295312766,-4.73730298,-0.362125535,-0.345099454,-4.73730298,-0.362125535,-0.345099454,-4.79103345,0.215511415,-1.04028041,-4.79103345,0.215511415,-1.04028041,-4.67544795,0.747864755,-1.76351484,-4.67544795,0.747864755,-1.76351484,-4.39498819,1.21447624,-2.48700907,-4.39498819,1.21447624,-2.48700907,-3.96043229,1.59741443,-3.18295976,-3.96043229,1.59741443,-3.18295976,-3.3884797,1.88196316,-3.82462196,-3.3884797,1.88196316,-3.82462196,-2.70111053,2.05718741,-4.38733686,-2.70111053,2.05718741,-4.38733686,-1.92473989,2.1163535,-4.84947979,-1.92473989,2.1163535,-4.84947979,-1.08920317,2.05718741,-5.19329054,-1.08920317,2.05718741,-5.19329054,-0.226609752,1.88196316,-5.40555693,-0.226609752,1.88196316,-5.40555693,0.629891564,1.59741443,-5.47812169,0.629891564,1.59741443,-5.47812169,1.44738566,1.21447624,-5.40819599,1.44738566,1.21447624,-5.40819599,2.1944569,0.747864755,-5.19846726,2.1944569,0.747864755,-5.19846726,2.84239574,0.215511415,-4.85699501,2.84239574,0.215511415,-4.85699501,3.36630223,-0.362125535,-4.39690206,3.36630223,-0.362125535,-4.39690206,3.74604306,-0.96284794,-3.83586947,3.74604306,-0.96284794,-3.83586947,3.96702463,-1.56357034,-3.19545725,3.96702463,-1.56357034,-3.19545725,4.0207551,-2.1412073,-2.50027629,4.0207551,-2.1412073,-2.50027629,3.90516959,-2.67356064,-1.77704187,3.90516959,-2.67356064,-1.77704187,3.62470984,-3.14017212,-1.05354764,3.62470984,-3.14017212,-1.05354764,3.19015394,-3.52311031,-0.357596943,3.19015394,-3.52311031,-0.357596943,2.61820134,-3.80765904,0.284065258,2.61820134,-3.80765904,0.284065258,1.93083218,-3.98288329,0.84678016,1.93083218,-3.98288329,0.84678016,1.15446154,-4.04204938,1.30892308,1.15446154,-4.04204938,1.30892308,0.31892482,-3.98288329,1.65273384,0.31892482,-3.98288329,1.65273384,-0.5436686,-3.80765904,1.86500023,-0.5436686,-3.80765904,1.86500023,-1.40016992,-3.52311031,1.93756498,-1.40016992,-3.52311031,1.93756498,-2.21766401,-3.14017212,1.86763929,-2.21766401,-3.14017212,1.86763929,-2.96473525,-2.67356064,1.65791055,-2.96473525,-2.67356064,1.65791055,-3.61267409,-2.1412073,1.3164383,-3.61267409,-2.1412073,1.3164383,-4.13658058,-1.56357034,0.856345355,-4.13658058,-1.56357034,0.856345355,-4.51632141,-0.96284794,0.295312766],"colors":[],"mesh":[]},"camera":{"projInv":[0.699461487,0,0,0,0,0.466307658,0,0,0,0,0,-0.45,0,0,-1,0.55],"world":[0.986393924,-3.46944695e-18,-0.164398987,0,-0.0393614027,0.970914599,-0.236168416,0,0.159617377,0.239426065,0.957704261,0,1,2,6,1],"fov":50,"aspect":1.5,"near":1,"far":10,"lines":[0.168792613,1.30782901,5.26741364,1.54868168,1.30782901,5.03743213,1.54868168,1.30782901,5.03743213,1.51197263,2.21331886,4.81717784,1.51197263,2.21331886,4.81717784,0.132083565,2.21331886,5.04715935,0.132083565,2.21331886,5.04715935,0.168792613,1.30782901,5.26741364,-7.31207435,-4.92170961,-1.32586361,6.48681727,-4.92170961,-3.62567888,6.48681727,-4.92170961,-3.62567888,6.11972682,4.1331883,-5.82822162,6.11972682,4.1331883,-5.82822162,-7.67916481,4.1331883,-3.52840635,-7.67916481,4.1331883,-3.52840635,-7.31207435,-4.92170961,-1.32586361,0.168792613,1.30782901,5.26741364,-7.31207435,-4.92170961,-1.32586361,1.54868168,1.30782901,5.03743213,6.48681727,-4.92170961,-3.62567888,0.132083565,2.21331886,5.04715935,-7.67916481,4.1331883,-3.52840635,1.51197263,2.21331886,4.81717784,6.11972682,4.1331883,-5.82822162,1,2,6,0.168792613,1.30782901,5.26741364,1,2,6,1.54868168,1.30782901,5.03743213,1,2,6,0.132083565,2.21331886,5.04715935,1,2,6,1.51197263,2.21331886,4.81717784,1.30315384,2.25859335,4.84066235,0.337231455,2.25859335,5.00164941,0.337231455,2.25859335,5.00164941,0.803673575,2.66606378,4.82204145,0.803673575,2.66606378,4.82204145,1.30315384,2.25859335,4.84066235,0.840382623,1.76057393,5.04229574,-0.596173769,-0.394260653,-3.57704261,1,2,6,0.840382623,1.76057393,5.04229574,0.150438089,1.76057393,5.15728649,1.53032716,1.76057393,4.92730498,0.858737147,1.30782901,5.15242288,0.822028099,2.21331886,4.93216859,-7.49561958,-0.394260653,-2.42713498,6.30327204,-0.394260653,-4.72695025,-0.412628541,-4.92170961,-2.47577125,-0.779718997,4.1331883,-4.67831398],"colors":[1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0.401977777,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0.401977777,1,0,0.401977777,1,0,0.401977777,1,0,0.401977777,1,0,0.401977777,1,0,0.401977777,1,1,1,1,1,1,1,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662,0.0331047662],"mesh":[]},"ortho":{"proj":[0.5,0,0,0,0,0.666666667,0,0,0,0,-0.102564103,0,0,0,-1.05128205,1]},"arrow":{"dir":[0.4364357804719848,0.8728715609439696,-0.2182178902359924],"origin":[0.5,-1,2],"length":3,"headLength":0.8,"headWidth":0.4,"lines":[0.5,-1,2,1.46015872,0.920317434,1.51992064],"colors":[],"mesh":[1.80930734,1.61861468,1.34534633,1.47032899,0.963961012,1.7148355,1.80930734,1.61861468,1.34534633,1.47032899,0.963961012,1.7148355,1.6341678,0.850789021,1.58982515,1.80930734,1.61861468,1.34534633,1.80930734,1.61861468,1.34534633,1.6341678,0.850789021,1.58982515,1.80930734,1.61861468,1.34534633,1.6341678,0.850789021,1.58982515,1.55753197,0.833702935,1.36820914,1.80930734,1.61861468,1.34534633,1.80930734,1.61861468,1.34534633,1.55753197,0.833702935,1.36820914,1.80930734,1.61861468,1.34534633,1.55753197,0.833702935,1.36820914,1.34632962,0.93631514,1.35625327,1.80930734,1.61861468,1.34534633,1.80930734,1.61861468,1.34534633,1.34632962,0.93631514,1.35625327,1.80930734,1.61861468,1.34534633,1.34632962,0.93631514,1.35625327,1.29243521,1.01681906,1.57048014,1.80930734,1.61861468,1.34534633,1.80930734,1.61861468,1.34534633,1.29243521,1.01681906,1.57048014,1.80930734,1.61861468,1.34534633,1.29243521,1.01681906,1.57048014,1.47032899,0.963961012,1.7148355,1.80930734,1.61861468,1.34534633,1.6341678,0.850789021,1.58982515,1.47032899,0.963961012,1.7148355,1.46015872,0.920317434,1.51992064,1.55753197,0.833702935,1.36820914,1.6341678,0.850789021,1.58982515,1.46015872,0.920317434,1.51992064,1.34632962,0.93631514,1.35625327,1.55753197,0.833702935,1.36820914,1.46015872,0.920317434,1.51992064,1.29243521,1.01681906,1.57048014,1.34632962,0.93631514,1.35625327,1.46015872,0.920317434,1.51992064,1.47032899,0.963961012,1.7148355,1.29243521,1.01681906,1.57048014,1.46015872,0.920317434,1.51992064]},"plane":{"normal":[0.28221626051507914,0.9407208683835973,0.18814417367671946],"constant":-1.25,"size":4,"lines":[3.02762487,0.49753762,-0.385284271,-2.32208422,1.85426455,0.855644705,-2.32208422,1.85426455,0.855644705,0.808824084,0.49753762,2.94291691,0.808824084,0.49753762,2.94291691,-0.103283433,1.85426455,-2.47255647,-0.103283433,1.85426455,-2.47255647,-2.32208422,1.85426455,0.855644705,-2.32208422,1.85426455,0.855644705,0.808824084,0.49753762,2.94291691,0.808824084,0.49753762,2.94291691,3.02762487,0.49753762,-0.385284271,3.02762487,0.49753762,-0.385284271,-0.103283433,1.85426455,-2.47255647],"colors":[],"mesh":[-0.103283433,1.85426455,-2.47255647,-2.32208422,1.85426455,0.855644705,0.808824084,0.49753762,2.94291691,-0.103283433,1.85426455,-2.47255647,0.808824084,0.49753762,2.94291691,3.02762487,0.49753762,-0.385284271]},"skeleton":{"root":[0.921060994,0,-0.389418342,0,0,1,0,0,0.389418342,0,0.921060994,0,1,0,-1,1],"bones":[[0.921060994,0,-0.389418342,0,0,1,0,0,0.389418342,0,0.921060994,0,1,1,-1,1],[0.921060994,0,-0.389418342,0,0.115080989,0.955336489,0.272192135,0,0.372025552,-0.295520207,0.879923176,0,1.07788367,2,-0.815787801,1],[0.921060994,0,-0.389418342,0,0.115080989,0.955336489,0.272192135,0,0.372025552,-0.295520207,0.879923176,0,1.63047896,2.76426919,-0.792743264,1]],"parents":[-1,0,1],"lines":[1.07788367,2,-0.815787798,1,1,-1,1.63047896,2.76426911,-0.792743252,1.07788367,2,-0.815787798],"colors":[0,0,1,0,1,0,0,0,1,0,1,0],"mesh":[]},"box":{"min":[0.08178318045061062,-0.11729533119247426,-0.5],"max":[1.9182168195493894,2.1172953311924743,2.5],"lines":[1.91821682,2.11729527,2.5,0.0817831829,2.11729527,2.5,0.0817831829,2.11729527,2.5,0.0817831829,-0.117295332,2.5,0.0817831829,-0.117295332,2.5,1.91821682,-0.117295332,2.5,1.91821682,-0.117295332,2.5,1.91821682,2.11729527,2.5,1.91821682,2.11729527,-0.5,0.0817831829,2.11729527,-0.5,0.0817831829,2.11729527,-0.5,0.0817831829,-0.117295332,-0.5,0.0817831829,-0.117295332,-0.5,1.91821682,-0.117295332,-0.5,1.91821682,-0.117295332,-0.5,1.91821682,2.11729527,-0.5,1.91821682,2.11729527,2.5,1.91821682,2.11729527,-0.5,0.0817831829,2.11729527,2.5,0.0817831829,2.11729527,-0.5,0.0817831829,-0.117295332,2.5,0.0817831829,-0.117295332,-0.5,1.91821682,-0.117295332,2.5,1.91821682,-0.117295332,-0.5],"colors":[],"mesh":[]},"box3":{"min":[-1,0,2],"max":[3,0.5,4],"lines":[3,0.5,4,-1,0.5,4,-1,0.5,4,-1,0,4,-1,0,4,3,0,4,3,0,4,3,0.5,4,3,0.5,2,-1,0.5,2,-1,0.5,2,-1,0,2,-1,0,2,3,0,2,3,0,2,3,0.5,2,3,0.5,4,3,0.5,2,-1,0.5,4,-1,0.5,2,-1,0,4,-1,0,2,3,0,4,3,0,2],"colors":[],"mesh":[]},"normals":{"world":[0.764842187,0,-0.644217687,0,0,2,0,0,0.322108844,0,0.382421094,0,0,1,0,1],"positions":[0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-0.866025388,0.5,0,-5.30287624e-17,0.5,0.866025388,0.866025388,0.5,1.06057525e-16,1.59086287e-16,0.5,-0.866025388,-0.866025388,0.5,-2.12115049e-16,-0.866025388,-0.5,0,-5.30287624e-17,-0.5,0.866025388,0.866025388,-0.5,1.06057525e-16,1.59086287e-16,-0.5,-0.866025388,-0.866025388,-0.5,-2.12115049e-16,-1.22464685e-16,-1,0,-7.49879879e-33,-1,1.22464685e-16,1.22464685e-16,-1,1.49975976e-32,2.24963964e-32,-1,-1.22464685e-16,-1.22464685e-16,-1,-2.99951951e-32],"normals":[0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-0.866025388,0.5,0,-5.30287624e-17,0.5,0.866025388,0.866025388,0.5,1.06057525e-16,1.59086287e-16,0.5,-0.866025388,-0.866025388,0.5,-2.12115049e-16,-0.866025388,-0.5,0,-5.30287624e-17,-0.5,0.866025388,0.866025388,-0.5,1.06057525e-16,1.59086287e-16,-0.5,-0.866025388,-0.866025388,-0.5,-2.12115049e-16,-1.22464685e-16,-1,0,-7.49879879e-33,-1,1.22464685e-16,1.22464685e-16,-1,1.49975976e-32,2.24963964e-32,-1,-1.22464685e-16,-1.22464685e-16,-1,-2.99951951e-32],"size":0.3,"lines":[0,3,0,0,3.29999995,0,0,3,0,0,3.29999995,0,0,3,0,0,3.29999995,0,0,3,0,0,3.29999995,0,0,3,0,0,3.29999995,0,-0.662372768,2,0.557908893,-0.882823706,2.08320498,0.743592143,0.278954446,2,0.331186384,0.470237494,2.04285717,0.558285594,0.662372768,2,-0.557908893,0.882823706,2.08320498,-0.743592143,-0.278954446,2,-0.331186384,-0.470237494,2.04285717,-0.558285594,-0.662372768,2,0.557908893,-0.882823706,2.08320498,0.743592143,-0.662372768,0,0.557908893,-0.882823706,-0.0832050294,0.743592143,0.278954446,0,0.331186384,0.470237494,-0.042857144,0.558285594,0.662372768,0,-0.557908893,0.882823706,-0.0832050294,-0.743592143,-0.278954446,0,-0.331186384,-0.470237494,-0.042857144,-0.558285594,-0.662372768,0,0.557908893,-0.882823706,-0.0832050294,0.743592143,-9.36661606e-17,-1,7.88939193e-17,-1.49865857e-16,-1.29999995,1.26230263e-16,3.94469596e-17,-1,4.68330803e-17,1.3411966e-16,-1.29999995,1.59232466e-16,9.36661606e-17,-1,-7.88939193e-17,1.49865857e-16,-1.29999995,-1.26230263e-16,-3.94469596e-17,-1,-4.68330803e-17,-1.3411966e-16,-1.29999995,-1.59232466e-16,-9.36661606e-17,-1,7.88939193e-17,-1.49865857e-16,-1.29999995,1.26230263e-16],"colors":[],"mesh":[]},"rect":{"light":[1,0,0,0,0,0.447213595,-0.894427191,0,0,0.894427191,0.447213595,0,0,2,1,1],"width":4,"height":2,"color":[1,0.21586050010324415,0.05126945836711539],"lightColor":[1,0.21586050010324417,0.05126945836711539],"intensity":3,"lines":[2,2.4472136,0.105572809,-2,2.4472136,0.105572809,-2,2.4472136,0.105572809,-2,1.5527864,1.89442719,-2,1.5527864,1.89442719,2,1.5527864,1.89442719,2,1.5527864,1.89442719,2,2.4472136,0.105572809],"colors":[],"mesh":[2,2.4472136,0.105572809,-2,2.4472136,0.105572809,-2,1.5527864,1.89442719,2,2.4472136,0.105572809,-2,1.5527864,1.89442719,2,1.5527864,1.89442719]}}