global.html 229 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Global - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">Global</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <div class="container-overview">
  18. </div>
  19. <h2 class="subsection-title">Properties</h2>
  20. <div class="member">
  21. <h3 class="name" id="ACESFilmicToneMapping" translate="no">.<a href="#ACESFilmicToneMapping">ACESFilmicToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  22. <div class="description">
  23. <p>ACES Filmic tone mapping.</p>
  24. </div>
  25. </div>
  26. <div class="member">
  27. <h3 class="name" id="AddEquation" translate="no">.<a href="#AddEquation">AddEquation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  28. <div class="description">
  29. <p>A <code>source + destination</code> blending equation.</p>
  30. </div>
  31. </div>
  32. <div class="member">
  33. <h3 class="name" id="AddOperation" translate="no">.<a href="#AddOperation">AddOperation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  34. <div class="description">
  35. <p>Adds the two colors.</p>
  36. </div>
  37. </div>
  38. <div class="member">
  39. <h3 class="name" id="AdditiveAnimationBlendMode" translate="no">.<a href="#AdditiveAnimationBlendMode">AdditiveAnimationBlendMode</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  40. <div class="description">
  41. <p>Additive animation blend mode. Can be used to layer motions on top of
  42. each other to build complex performances from smaller re-usable assets.</p>
  43. </div>
  44. </div>
  45. <div class="member">
  46. <h3 class="name" id="AdditiveBlending" translate="no">.<a href="#AdditiveBlending">AdditiveBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  47. <div class="description">
  48. <p>Represents additive blending.</p>
  49. </div>
  50. </div>
  51. <div class="member">
  52. <h3 class="name" id="AgXToneMapping" translate="no">.<a href="#AgXToneMapping">AgXToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  53. <div class="description">
  54. <p>AgX tone mapping.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <h3 class="name" id="AlphaFormat" translate="no">.<a href="#AlphaFormat">AlphaFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  59. <div class="description">
  60. <p>Discards the red, green and blue components and reads just the alpha component.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="AlwaysCompare" translate="no">.<a href="#AlwaysCompare">AlwaysCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  65. <div class="description">
  66. <p>Always pass.</p>
  67. </div>
  68. </div>
  69. <div class="member">
  70. <h3 class="name" id="AlwaysDepth" translate="no">.<a href="#AlwaysDepth">AlwaysDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  71. <div class="description">
  72. <p>Always pass.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="AlwaysStencilFunc" translate="no">.<a href="#AlwaysStencilFunc">AlwaysStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  77. <div class="description">
  78. <p>Will always return true.</p>
  79. </div>
  80. </div>
  81. <div class="member">
  82. <h3 class="name" id="AnaglyphAlgorithm" translate="no">.<a href="#AnaglyphAlgorithm">AnaglyphAlgorithm</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  83. <div class="description">
  84. <p>Anaglyph algorithm types.</p>
  85. </div>
  86. <table class="props">
  87. <tbody>
  88. <tr>
  89. <td class="name">
  90. <strong>TRUE</strong>
  91. <br>
  92. <span class="param-type">string</span>
  93. </td>
  94. <td class="description last">
  95. </td>
  96. </tr>
  97. <tr>
  98. <td class="name">
  99. <strong>GREY</strong>
  100. <br>
  101. <span class="param-type">string</span>
  102. </td>
  103. <td class="description last">
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="name">
  108. <strong>COLOUR</strong>
  109. <br>
  110. <span class="param-type">string</span>
  111. </td>
  112. <td class="description last">
  113. </td>
  114. </tr>
  115. <tr>
  116. <td class="name">
  117. <strong>HALF_COLOUR</strong>
  118. <br>
  119. <span class="param-type">string</span>
  120. </td>
  121. <td class="description last">
  122. </td>
  123. </tr>
  124. <tr>
  125. <td class="name">
  126. <strong>DUBOIS</strong>
  127. <br>
  128. <span class="param-type">string</span>
  129. </td>
  130. <td class="description last">
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="name">
  135. <strong>OPTIMISED</strong>
  136. <br>
  137. <span class="param-type">string</span>
  138. </td>
  139. <td class="description last">
  140. </td>
  141. </tr>
  142. <tr>
  143. <td class="name">
  144. <strong>COMPROMISE</strong>
  145. <br>
  146. <span class="param-type">string</span>
  147. </td>
  148. <td class="description last">
  149. </td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. </div>
  154. <div class="member">
  155. <h3 class="name" id="AnaglyphColorMode" translate="no">.<a href="#AnaglyphColorMode">AnaglyphColorMode</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  156. <div class="description">
  157. <p>Anaglyph color modes.</p>
  158. </div>
  159. <table class="props">
  160. <tbody>
  161. <tr>
  162. <td class="name">
  163. <strong>RED_CYAN</strong>
  164. <br>
  165. <span class="param-type">string</span>
  166. </td>
  167. <td class="description last">
  168. </td>
  169. </tr>
  170. <tr>
  171. <td class="name">
  172. <strong>MAGENTA_CYAN</strong>
  173. <br>
  174. <span class="param-type">string</span>
  175. </td>
  176. <td class="description last">
  177. </td>
  178. </tr>
  179. <tr>
  180. <td class="name">
  181. <strong>MAGENTA_GREEN</strong>
  182. <br>
  183. <span class="param-type">string</span>
  184. </td>
  185. <td class="description last">
  186. </td>
  187. </tr>
  188. </tbody>
  189. </table>
  190. </div>
  191. <div class="member">
  192. <h3 class="name" id="AttachedBindMode" translate="no">.<a href="#AttachedBindMode">AttachedBindMode</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  193. <div class="description">
  194. <p>The skinned mesh shares the same world space as the skeleton.</p>
  195. </div>
  196. </div>
  197. <div class="member">
  198. <h3 class="name" id="BackSide" translate="no">.<a href="#BackSide">BackSide</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  199. <div class="description">
  200. <p>Only back faces are rendered.</p>
  201. </div>
  202. </div>
  203. <div class="member">
  204. <h3 class="name" id="BasicDepthPacking" translate="no">.<a href="#BasicDepthPacking">BasicDepthPacking</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  205. <div class="description">
  206. <p>The depth value is inverted (1.0 - z) for visualization purposes.</p>
  207. </div>
  208. </div>
  209. <div class="member">
  210. <h3 class="name" id="BasicShadowMap" translate="no">.<a href="#BasicShadowMap">BasicShadowMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  211. <div class="description">
  212. <p>Gives unfiltered shadow maps - fastest, but lowest quality.</p>
  213. </div>
  214. </div>
  215. <div class="member">
  216. <h3 class="name" id="ByteType" translate="no">.<a href="#ByteType">ByteType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  217. <div class="description">
  218. <p>A byte data type for textures.</p>
  219. </div>
  220. </div>
  221. <div class="member">
  222. <h3 class="name" id="CineonToneMapping" translate="no">.<a href="#CineonToneMapping">CineonToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  223. <div class="description">
  224. <p>Cineon tone mapping.</p>
  225. </div>
  226. </div>
  227. <div class="member">
  228. <h3 class="name" id="ClampToEdgeWrapping" translate="no">.<a href="#ClampToEdgeWrapping">ClampToEdgeWrapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  229. <div class="description">
  230. <p>The last pixel of the texture stretches to the edge of the mesh.</p>
  231. </div>
  232. </div>
  233. <div class="member">
  234. <h3 class="name" id="Compatibility" translate="no">.<a href="#Compatibility">Compatibility</a><span class="type-signature"> : Object</span> <span class="type-signature">(constant) </span></h3>
  235. <div class="description">
  236. <p>Compatibility flags for features that may not be supported across all platforms.</p>
  237. </div>
  238. </div>
  239. <div class="member">
  240. <h3 class="name" id="ConstantAlphaFactor" translate="no">.<a href="#ConstantAlphaFactor">ConstantAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  241. <div class="description">
  242. <p>Multiplies all colors by a constant alpha value.</p>
  243. </div>
  244. </div>
  245. <div class="member">
  246. <h3 class="name" id="ConstantColorFactor" translate="no">.<a href="#ConstantColorFactor">ConstantColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  247. <div class="description">
  248. <p>Multiplies all colors by a constant color.</p>
  249. </div>
  250. </div>
  251. <div class="member">
  252. <h3 class="name" id="CubeReflectionMapping" translate="no">.<a href="#CubeReflectionMapping">CubeReflectionMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  253. <div class="description">
  254. <p>Reflection mapping for cube textures.</p>
  255. </div>
  256. </div>
  257. <div class="member">
  258. <h3 class="name" id="CubeRefractionMapping" translate="no">.<a href="#CubeRefractionMapping">CubeRefractionMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  259. <div class="description">
  260. <p>Refraction mapping for cube textures.</p>
  261. </div>
  262. </div>
  263. <div class="member">
  264. <h3 class="name" id="CubeUVReflectionMapping" translate="no">.<a href="#CubeUVReflectionMapping">CubeUVReflectionMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  265. <div class="description">
  266. <p>Reflection mapping for PMREM textures.</p>
  267. </div>
  268. </div>
  269. <div class="member">
  270. <h3 class="name" id="CullFaceBack" translate="no">.<a href="#CullFaceBack">CullFaceBack</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  271. <div class="description">
  272. <p>Culls back faces.</p>
  273. </div>
  274. </div>
  275. <div class="member">
  276. <h3 class="name" id="CullFaceFront" translate="no">.<a href="#CullFaceFront">CullFaceFront</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  277. <div class="description">
  278. <p>Culls front faces.</p>
  279. </div>
  280. </div>
  281. <div class="member">
  282. <h3 class="name" id="CullFaceFrontBack" translate="no">.<a href="#CullFaceFrontBack">CullFaceFrontBack</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  283. <div class="description">
  284. <p>Culls both front and back faces.</p>
  285. </div>
  286. </div>
  287. <div class="member">
  288. <h3 class="name" id="CullFaceNone" translate="no">.<a href="#CullFaceNone">CullFaceNone</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  289. <div class="description">
  290. <p>Disables face culling.</p>
  291. </div>
  292. </div>
  293. <div class="member">
  294. <h3 class="name" id="CustomBlending" translate="no">.<a href="#CustomBlending">CustomBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  295. <div class="description">
  296. <p>Represents custom blending.</p>
  297. </div>
  298. </div>
  299. <div class="member">
  300. <h3 class="name" id="CustomToneMapping" translate="no">.<a href="#CustomToneMapping">CustomToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  301. <div class="description">
  302. <p>Custom tone mapping.</p>
  303. <p>Expects a custom implementation by modifying shader code of the material's fragment shader.</p>
  304. </div>
  305. </div>
  306. <div class="member">
  307. <h3 class="name" id="DATA" translate="no">.<a href="#DATA">DATA</a> <span class="type-signature">(constant) </span></h3>
  308. <div class="description">
  309. <p>Precomputed DFG LUT for Image-Based Lighting
  310. Resolution: 16x16
  311. Samples: 4096 per texel
  312. Format: RG16F (2 half floats per texel: scale, bias)</p>
  313. </div>
  314. </div>
  315. <div class="member">
  316. <h3 class="name" id="DecrementStencilOp" translate="no">.<a href="#DecrementStencilOp">DecrementStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  317. <div class="description">
  318. <p>Decrements the current stencil buffer value. Clamps to <code>0</code>.</p>
  319. </div>
  320. </div>
  321. <div class="member">
  322. <h3 class="name" id="DecrementWrapStencilOp" translate="no">.<a href="#DecrementWrapStencilOp">DecrementWrapStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  323. <div class="description">
  324. <p>Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable
  325. unsigned value when decrementing a stencil buffer value of <code>0</code>.</p>
  326. </div>
  327. </div>
  328. <div class="member">
  329. <h3 class="name" id="DefaultLoadingManager" translate="no">.<a href="#DefaultLoadingManager">DefaultLoadingManager</a><span class="type-signature"> : <a href="LoadingManager.html">LoadingManager</a></span> <span class="type-signature">(constant) </span></h3>
  330. <div class="description">
  331. <p>The global default loading manager.</p>
  332. </div>
  333. </div>
  334. <div class="member">
  335. <h3 class="name" id="DepthFormat" translate="no">.<a href="#DepthFormat">DepthFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  336. <div class="description">
  337. <p>Reads each element as a single depth value, converts it to floating point, and clamps to the range <code>[0,1]</code>.</p>
  338. </div>
  339. </div>
  340. <div class="member">
  341. <h3 class="name" id="DepthStencilFormat" translate="no">.<a href="#DepthStencilFormat">DepthStencilFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  342. <div class="description">
  343. <p>Reads each element is a pair of depth and stencil values. The depth component of the pair is interpreted as
  344. in <code>DepthFormat</code>. The stencil component is interpreted based on the depth + stencil internal format.</p>
  345. </div>
  346. </div>
  347. <div class="member">
  348. <h3 class="name" id="DetachedBindMode" translate="no">.<a href="#DetachedBindMode">DetachedBindMode</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  349. <div class="description">
  350. <p>The skinned mesh does not share the same world space as the skeleton.
  351. This is useful when a skeleton is shared across multiple skinned meshes.</p>
  352. </div>
  353. </div>
  354. <div class="member">
  355. <h3 class="name" id="DoubleSide" translate="no">.<a href="#DoubleSide">DoubleSide</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  356. <div class="description">
  357. <p>Both front and back faces are rendered.</p>
  358. </div>
  359. </div>
  360. <div class="member">
  361. <h3 class="name" id="DstAlphaFactor" translate="no">.<a href="#DstAlphaFactor">DstAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  362. <div class="description">
  363. <p>Multiplies all colors by the destination alpha value.</p>
  364. </div>
  365. </div>
  366. <div class="member">
  367. <h3 class="name" id="DstColorFactor" translate="no">.<a href="#DstColorFactor">DstColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  368. <div class="description">
  369. <p>Multiplies all colors by the destination color.</p>
  370. </div>
  371. </div>
  372. <div class="member">
  373. <h3 class="name" id="DynamicCopyUsage" translate="no">.<a href="#DynamicCopyUsage">DynamicCopyUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  374. <div class="description">
  375. <p>The contents are intended to be respecified repeatedly by reading data from the 3D API, and used many times
  376. as the source for WebGL drawing and image specification commands.</p>
  377. </div>
  378. </div>
  379. <div class="member">
  380. <h3 class="name" id="DynamicDrawUsage" translate="no">.<a href="#DynamicDrawUsage">DynamicDrawUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  381. <div class="description">
  382. <p>The contents are intended to be respecified repeatedly by the application, and
  383. used many times as the source for drawing and image specification commands.</p>
  384. </div>
  385. </div>
  386. <div class="member">
  387. <h3 class="name" id="DynamicReadUsage" translate="no">.<a href="#DynamicReadUsage">DynamicReadUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  388. <div class="description">
  389. <p>The contents are intended to be respecified repeatedly by reading data from the 3D API, and queried
  390. many times by the application.</p>
  391. </div>
  392. </div>
  393. <div class="member">
  394. <h3 class="name" id="ENV_RAY_LENGTH" translate="no">.<a href="#ENV_RAY_LENGTH">ENV_RAY_LENGTH</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  395. <div class="description">
  396. <p>Sentinel ray length the SSR pass writes for environment misses (no screen-space hit), set far above
  397. any real hit distance so a single magnitude test separates misses from hits and survives <code>.max( 0 )</code>.</p>
  398. </div>
  399. </div>
  400. <div class="member">
  401. <h3 class="name" id="ENV_RAY_LENGTH_THRESHOLD" translate="no">.<a href="#ENV_RAY_LENGTH_THRESHOLD">ENV_RAY_LENGTH_THRESHOLD</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  402. <div class="description">
  403. <p>Classification threshold for <a href="global.html#ENV_RAY_LENGTH">ENV_RAY_LENGTH</a>: above this is an env miss, below a real hit.
  404. An order of magnitude under the sentinel, robust to fp16 storage and bilinear blending at borders.</p>
  405. </div>
  406. </div>
  407. <div class="member">
  408. <h3 class="name" id="EqualCompare" translate="no">.<a href="#EqualCompare">EqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  409. <div class="description">
  410. <p>Pass if the incoming value equals the texture value.</p>
  411. </div>
  412. </div>
  413. <div class="member">
  414. <h3 class="name" id="EqualDepth" translate="no">.<a href="#EqualDepth">EqualDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  415. <div class="description">
  416. <p>Pass if the incoming value equals the depth buffer value.</p>
  417. </div>
  418. </div>
  419. <div class="member">
  420. <h3 class="name" id="EqualStencilFunc" translate="no">.<a href="#EqualStencilFunc">EqualStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  421. <div class="description">
  422. <p>Will return true if the stencil reference value is equal to the current stencil value.</p>
  423. </div>
  424. </div>
  425. <div class="member">
  426. <h3 class="name" id="EquirectangularReflectionMapping" translate="no">.<a href="#EquirectangularReflectionMapping">EquirectangularReflectionMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  427. <div class="description">
  428. <p>Reflection mapping for equirectangular textures.</p>
  429. </div>
  430. </div>
  431. <div class="member">
  432. <h3 class="name" id="EquirectangularRefractionMapping" translate="no">.<a href="#EquirectangularRefractionMapping">EquirectangularRefractionMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  433. <div class="description">
  434. <p>Refraction mapping for equirectangular textures.</p>
  435. </div>
  436. </div>
  437. <div class="member">
  438. <h3 class="name" id="F_Schlick" translate="no">.<a href="#F_Schlick">F_Schlick</a> <span class="type-signature">(constant) </span></h3>
  439. <div class="description">
  440. <p>Fresnel reflectance for the Schlick approximation.</p>
  441. </div>
  442. </div>
  443. <div class="member">
  444. <h3 class="name" id="FloatType" translate="no">.<a href="#FloatType">FloatType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  445. <div class="description">
  446. <p>A float data type for textures.</p>
  447. </div>
  448. </div>
  449. <div class="member">
  450. <h3 class="name" id="FrontSide" translate="no">.<a href="#FrontSide">FrontSide</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  451. <div class="description">
  452. <p>Only front faces are rendered.</p>
  453. </div>
  454. </div>
  455. <div class="member">
  456. <h3 class="name" id="GLSL1" translate="no">.<a href="#GLSL1">GLSL1</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  457. <div class="description">
  458. <p>GLSL 1 shader code.</p>
  459. </div>
  460. </div>
  461. <div class="member">
  462. <h3 class="name" id="GLSL3" translate="no">.<a href="#GLSL3">GLSL3</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  463. <div class="description">
  464. <p>GLSL 3 shader code.</p>
  465. </div>
  466. </div>
  467. <div class="member">
  468. <h3 class="name" id="GreaterCompare" translate="no">.<a href="#GreaterCompare">GreaterCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  469. <div class="description">
  470. <p>Pass if the incoming value is greater than the texture value.</p>
  471. </div>
  472. </div>
  473. <div class="member">
  474. <h3 class="name" id="GreaterDepth" translate="no">.<a href="#GreaterDepth">GreaterDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  475. <div class="description">
  476. <p>Pass if the incoming value is greater than the depth buffer value.</p>
  477. </div>
  478. </div>
  479. <div class="member">
  480. <h3 class="name" id="GreaterEqualCompare" translate="no">.<a href="#GreaterEqualCompare">GreaterEqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  481. <div class="description">
  482. <p>Pass if the incoming value is greater than or equal to the texture value.</p>
  483. </div>
  484. </div>
  485. <div class="member">
  486. <h3 class="name" id="GreaterEqualDepth" translate="no">.<a href="#GreaterEqualDepth">GreaterEqualDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  487. <div class="description">
  488. <p>Pass if the incoming value is greater than or equal to the depth buffer value.</p>
  489. </div>
  490. </div>
  491. <div class="member">
  492. <h3 class="name" id="GreaterEqualStencilFunc" translate="no">.<a href="#GreaterEqualStencilFunc">GreaterEqualStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  493. <div class="description">
  494. <p>Will return true if the stencil reference value is greater than or equal to the current stencil value.</p>
  495. </div>
  496. </div>
  497. <div class="member">
  498. <h3 class="name" id="GreaterStencilFunc" translate="no">.<a href="#GreaterStencilFunc">GreaterStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  499. <div class="description">
  500. <p>Will return true if the stencil reference value is greater than the current stencil value.</p>
  501. </div>
  502. </div>
  503. <div class="member">
  504. <h3 class="name" id="HalfFloatType" translate="no">.<a href="#HalfFloatType">HalfFloatType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  505. <div class="description">
  506. <p>A half float data type for textures.</p>
  507. </div>
  508. </div>
  509. <div class="member">
  510. <h3 class="name" id="IncrementStencilOp" translate="no">.<a href="#IncrementStencilOp">IncrementStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  511. <div class="description">
  512. <p>Increments the current stencil buffer value. Clamps to the maximum representable unsigned value.</p>
  513. </div>
  514. </div>
  515. <div class="member">
  516. <h3 class="name" id="IncrementWrapStencilOp" translate="no">.<a href="#IncrementWrapStencilOp">IncrementWrapStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  517. <div class="description">
  518. <p>Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing
  519. the maximum representable unsigned value.</p>
  520. </div>
  521. </div>
  522. <div class="member">
  523. <h3 class="name" id="IntType" translate="no">.<a href="#IntType">IntType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  524. <div class="description">
  525. <p>An int data type for textures.</p>
  526. </div>
  527. </div>
  528. <div class="member">
  529. <h3 class="name" id="InterpolateBezier" translate="no">.<a href="#InterpolateBezier">InterpolateBezier</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  530. <div class="description">
  531. <p>Bezier interpolation mode for keyframe tracks.</p>
  532. <p>Uses cubic Bezier curves with explicit 2D control points.
  533. Requires tangent data to be set on the track.</p>
  534. </div>
  535. </div>
  536. <div class="member">
  537. <h3 class="name" id="InterpolateDiscrete" translate="no">.<a href="#InterpolateDiscrete">InterpolateDiscrete</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  538. <div class="description">
  539. <p>Discrete interpolation mode for keyframe tracks.</p>
  540. </div>
  541. </div>
  542. <div class="member">
  543. <h3 class="name" id="InterpolateLinear" translate="no">.<a href="#InterpolateLinear">InterpolateLinear</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  544. <div class="description">
  545. <p>Linear interpolation mode for keyframe tracks.</p>
  546. </div>
  547. </div>
  548. <div class="member">
  549. <h3 class="name" id="InterpolateSmooth" translate="no">.<a href="#InterpolateSmooth">InterpolateSmooth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  550. <div class="description">
  551. <p>Smooth interpolation mode for keyframe tracks.</p>
  552. </div>
  553. </div>
  554. <div class="member">
  555. <h3 class="name" id="InterpolationSamplingMode" translate="no">.<a href="#InterpolationSamplingMode">InterpolationSamplingMode</a><span class="type-signature"> : <a href="global.html#ConstantsInterpolationSamplingMode">ConstantsInterpolationSamplingMode</a></span> <span class="type-signature">(constant) </span></h3>
  556. <div class="description">
  557. <p>Represents the different interpolation sampling modes.</p>
  558. </div>
  559. </div>
  560. <div class="member">
  561. <h3 class="name" id="InterpolationSamplingType" translate="no">.<a href="#InterpolationSamplingType">InterpolationSamplingType</a><span class="type-signature"> : <a href="global.html#ConstantsInterpolationSamplingType">ConstantsInterpolationSamplingType</a></span> <span class="type-signature">(constant) </span></h3>
  562. <div class="description">
  563. <p>Represents mouse buttons and interaction types in context of controls.</p>
  564. </div>
  565. </div>
  566. <div class="member">
  567. <h3 class="name" id="InvertStencilOp" translate="no">.<a href="#InvertStencilOp">InvertStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  568. <div class="description">
  569. <p>Inverts the current stencil buffer value bitwise.</p>
  570. </div>
  571. </div>
  572. <div class="member">
  573. <h3 class="name" id="KHR_mesh_quantization_ExtraAttrTypes" translate="no">.<a href="#KHR_mesh_quantization_ExtraAttrTypes">KHR_mesh_quantization_ExtraAttrTypes</a> <span class="type-signature">(constant) </span></h3>
  574. <div class="description">
  575. <p>The KHR_mesh_quantization extension allows these extra attribute component types</p>
  576. </div>
  577. <dl class="details">
  578. <dt class="tag-see">See:</dt>
  579. <dd class="tag-see">
  580. <ul>
  581. <li><a href="https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_mesh_quantization/README.md#extending-mesh-attributes" target="_blank" rel="noopener">https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_mesh_quantization/README.md#extending-mesh-attributes</a></li>
  582. </ul>
  583. </dd>
  584. </dl>
  585. </div>
  586. <div class="member">
  587. <h3 class="name" id="KeepStencilOp" translate="no">.<a href="#KeepStencilOp">KeepStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  588. <div class="description">
  589. <p>Keeps the current value.</p>
  590. </div>
  591. </div>
  592. <div class="member">
  593. <h3 class="name" id="LessCompare" translate="no">.<a href="#LessCompare">LessCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  594. <div class="description">
  595. <p>Pass if the incoming value is less than the texture value.</p>
  596. </div>
  597. </div>
  598. <div class="member">
  599. <h3 class="name" id="LessDepth" translate="no">.<a href="#LessDepth">LessDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  600. <div class="description">
  601. <p>Pass if the incoming value is less than the depth buffer value.</p>
  602. </div>
  603. </div>
  604. <div class="member">
  605. <h3 class="name" id="LessEqualCompare" translate="no">.<a href="#LessEqualCompare">LessEqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  606. <div class="description">
  607. <p>Pass if the incoming value is less than or equal to the texture value.</p>
  608. </div>
  609. </div>
  610. <div class="member">
  611. <h3 class="name" id="LessEqualDepth" translate="no">.<a href="#LessEqualDepth">LessEqualDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  612. <div class="description">
  613. <p>Pass if the incoming value is less than or equal to the depth buffer value.</p>
  614. </div>
  615. </div>
  616. <div class="member">
  617. <h3 class="name" id="LessEqualStencilFunc" translate="no">.<a href="#LessEqualStencilFunc">LessEqualStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  618. <div class="description">
  619. <p>Will return true if the stencil reference value is less than or equal to the current stencil value.</p>
  620. </div>
  621. </div>
  622. <div class="member">
  623. <h3 class="name" id="LessStencilFunc" translate="no">.<a href="#LessStencilFunc">LessStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  624. <div class="description">
  625. <p>Will return true if the stencil reference value is less than the current stencil value.</p>
  626. </div>
  627. </div>
  628. <div class="member">
  629. <h3 class="name" id="LinearFilter" translate="no">.<a href="#LinearFilter">LinearFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  630. <div class="description">
  631. <p>Returns the weighted average of the four texture elements that are closest to the specified
  632. texture coordinates, and can include items wrapped or repeated from other parts of a texture,
  633. depending on the values of <code>wrapS</code> and <code>wrapT</code>, and on the exact mapping.</p>
  634. </div>
  635. </div>
  636. <div class="member">
  637. <h3 class="name" id="LinearMipmapLinearFilter" translate="no">.<a href="#LinearMipmapLinearFilter">LinearMipmapLinearFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  638. <div class="description">
  639. <p>Chooses the two mipmaps that most closely match the size of the pixel being textured and uses
  640. the <code>LinearFilter</code> criterion to produce a texture value from each mipmap. The final texture value
  641. is a weighted average of those two values.</p>
  642. </div>
  643. </div>
  644. <div class="member">
  645. <h3 class="name" id="LinearMipmapNearestFilter" translate="no">.<a href="#LinearMipmapNearestFilter">LinearMipmapNearestFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  646. <div class="description">
  647. <p>Chooses the mipmap that most closely matches the size of the pixel being textured and uses
  648. the <code>LinearFilter</code> criterion (a weighted average of the four texels that are closest to the
  649. center of the pixel) to produce a texture value.</p>
  650. </div>
  651. </div>
  652. <div class="member">
  653. <h3 class="name" id="LinearSRGBColorSpace" translate="no">.<a href="#LinearSRGBColorSpace">LinearSRGBColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  654. <div class="description">
  655. <p>sRGB-linear color space.</p>
  656. </div>
  657. </div>
  658. <div class="member">
  659. <h3 class="name" id="LinearToneMapping" translate="no">.<a href="#LinearToneMapping">LinearToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  660. <div class="description">
  661. <p>Linear tone mapping.</p>
  662. </div>
  663. </div>
  664. <div class="member">
  665. <h3 class="name" id="LinearTransfer" translate="no">.<a href="#LinearTransfer">LinearTransfer</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  666. <div class="description">
  667. <p>Linear transfer function.</p>
  668. </div>
  669. </div>
  670. <div class="member">
  671. <h3 class="name" id="LoopOnce" translate="no">.<a href="#LoopOnce">LoopOnce</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  672. <div class="description">
  673. <p>Animations are played once.</p>
  674. </div>
  675. </div>
  676. <div class="member">
  677. <h3 class="name" id="LoopPingPong" translate="no">.<a href="#LoopPingPong">LoopPingPong</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  678. <div class="description">
  679. <p>Animations are played with a chosen number of repetitions, alternately playing forward
  680. and backward.</p>
  681. </div>
  682. </div>
  683. <div class="member">
  684. <h3 class="name" id="LoopRepeat" translate="no">.<a href="#LoopRepeat">LoopRepeat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  685. <div class="description">
  686. <p>Animations are played with a chosen number of repetitions, each time jumping from
  687. the end of the clip directly to its beginning.</p>
  688. </div>
  689. </div>
  690. <div class="member">
  691. <h3 class="name" id="MOUSE" translate="no">.<a href="#MOUSE">MOUSE</a><span class="type-signature"> : <a href="global.html#ConstantsMouse">ConstantsMouse</a></span> <span class="type-signature">(constant) </span></h3>
  692. <div class="description">
  693. <p>Represents mouse buttons and interaction types in context of controls.</p>
  694. </div>
  695. </div>
  696. <div class="member">
  697. <h3 class="name" id="MaterialBlending" translate="no">.<a href="#MaterialBlending">MaterialBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  698. <div class="description">
  699. <p>Represents material blending.</p>
  700. </div>
  701. </div>
  702. <div class="member">
  703. <h3 class="name" id="MaxEquation" translate="no">.<a href="#MaxEquation">MaxEquation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  704. <div class="description">
  705. <p>A blend equation that uses the maximum of source and destination.</p>
  706. </div>
  707. </div>
  708. <div class="member">
  709. <h3 class="name" id="MinEquation" translate="no">.<a href="#MinEquation">MinEquation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  710. <div class="description">
  711. <p>A blend equation that uses the minimum of source and destination.</p>
  712. </div>
  713. </div>
  714. <div class="member">
  715. <h3 class="name" id="MirroredRepeatWrapping" translate="no">.<a href="#MirroredRepeatWrapping">MirroredRepeatWrapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  716. <div class="description">
  717. <p>The texture will repeats to infinity, mirroring on each repeat.</p>
  718. </div>
  719. </div>
  720. <div class="member">
  721. <h3 class="name" id="MixOperation" translate="no">.<a href="#MixOperation">MixOperation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  722. <div class="description">
  723. <p>Uses reflectivity to blend between the two colors.</p>
  724. </div>
  725. </div>
  726. <div class="member">
  727. <h3 class="name" id="MultiplyBlending" translate="no">.<a href="#MultiplyBlending">MultiplyBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  728. <div class="description">
  729. <p>Represents multiply blending.</p>
  730. </div>
  731. </div>
  732. <div class="member">
  733. <h3 class="name" id="MultiplyOperation" translate="no">.<a href="#MultiplyOperation">MultiplyOperation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  734. <div class="description">
  735. <p>Multiplies the environment map color with the surface color.</p>
  736. </div>
  737. </div>
  738. <div class="member">
  739. <h3 class="name" id="NearestFilter" translate="no">.<a href="#NearestFilter">NearestFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  740. <div class="description">
  741. <p>Returns the value of the texture element that is nearest (in Manhattan distance)
  742. to the specified texture coordinates.</p>
  743. </div>
  744. </div>
  745. <div class="member">
  746. <h3 class="name" id="NearestMipmapLinearFilter" translate="no">.<a href="#NearestMipmapLinearFilter">NearestMipmapLinearFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  747. <div class="description">
  748. <p>Chooses the two mipmaps that most closely match the size of the pixel being textured and
  749. uses the <code>NearestFilter</code> criterion to produce a texture value from each mipmap.
  750. The final texture value is a weighted average of those two values.</p>
  751. </div>
  752. </div>
  753. <div class="member">
  754. <h3 class="name" id="NearestMipmapNearestFilter" translate="no">.<a href="#NearestMipmapNearestFilter">NearestMipmapNearestFilter</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  755. <div class="description">
  756. <p>Chooses the mipmap that most closely matches the size of the pixel being textured
  757. and uses the <code>NearestFilter</code> criterion (the texel nearest to the center of the pixel)
  758. to produce a texture value.</p>
  759. </div>
  760. </div>
  761. <div class="member">
  762. <h3 class="name" id="NeutralToneMapping" translate="no">.<a href="#NeutralToneMapping">NeutralToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  763. <div class="description">
  764. <p>Neutral tone mapping.</p>
  765. <p>Implementation based on the Khronos 3D Commerce Group standard tone mapping.</p>
  766. </div>
  767. </div>
  768. <div class="member">
  769. <h3 class="name" id="NeverCompare" translate="no">.<a href="#NeverCompare">NeverCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  770. <div class="description">
  771. <p>Never pass.</p>
  772. </div>
  773. </div>
  774. <div class="member">
  775. <h3 class="name" id="NeverDepth" translate="no">.<a href="#NeverDepth">NeverDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  776. <div class="description">
  777. <p>Never pass.</p>
  778. </div>
  779. </div>
  780. <div class="member">
  781. <h3 class="name" id="NeverStencilFunc" translate="no">.<a href="#NeverStencilFunc">NeverStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  782. <div class="description">
  783. <p>Will never return true.</p>
  784. </div>
  785. </div>
  786. <div class="member">
  787. <h3 class="name" id="NoBlending" translate="no">.<a href="#NoBlending">NoBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  788. <div class="description">
  789. <p>No blending is performed which effectively disables
  790. alpha transparency.</p>
  791. </div>
  792. </div>
  793. <div class="member">
  794. <h3 class="name" id="NoColorSpace" translate="no">.<a href="#NoColorSpace">NoColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  795. <div class="description">
  796. <p>No color space.</p>
  797. </div>
  798. </div>
  799. <div class="member">
  800. <h3 class="name" id="NoNormalPacking" translate="no">.<a href="#NoNormalPacking">NoNormalPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  801. <div class="description">
  802. <p>No normal map packing.</p>
  803. </div>
  804. </div>
  805. <div class="member">
  806. <h3 class="name" id="NoToneMapping" translate="no">.<a href="#NoToneMapping">NoToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  807. <div class="description">
  808. <p>No tone mapping is applied.</p>
  809. </div>
  810. </div>
  811. <div class="member">
  812. <h3 class="name" id="NodeAccess" translate="no">.<a href="#NodeAccess">NodeAccess</a> <span class="type-signature">(constant) </span></h3>
  813. <div class="description">
  814. <p>Access types of a node. These are relevant for compute and storage usage.</p>
  815. </div>
  816. <table class="props">
  817. <tbody>
  818. <tr>
  819. <td class="name">
  820. <strong>READ_ONLY</strong>
  821. <br>
  822. <span class="param-type">string</span>
  823. </td>
  824. <td class="description last">
  825. <p>Read-only access</p>
  826. </td>
  827. </tr>
  828. <tr>
  829. <td class="name">
  830. <strong>WRITE_ONLY</strong>
  831. <br>
  832. <span class="param-type">string</span>
  833. </td>
  834. <td class="description last">
  835. <p>Write-only access.</p>
  836. </td>
  837. </tr>
  838. <tr>
  839. <td class="name">
  840. <strong>READ_WRITE</strong>
  841. <br>
  842. <span class="param-type">string</span>
  843. </td>
  844. <td class="description last">
  845. <p>Read and write access.</p>
  846. </td>
  847. </tr>
  848. </tbody>
  849. </table>
  850. </div>
  851. <div class="member">
  852. <h3 class="name" id="NodeShaderStage" translate="no">.<a href="#NodeShaderStage">NodeShaderStage</a> <span class="type-signature">(constant) </span></h3>
  853. <div class="description">
  854. <p>Possible shader stages.</p>
  855. </div>
  856. <table class="props">
  857. <tbody>
  858. <tr>
  859. <td class="name">
  860. <strong>VERTEX</strong>
  861. <br>
  862. <span class="param-type">string</span>
  863. </td>
  864. <td class="description last">
  865. <p>The vertex shader stage.</p>
  866. </td>
  867. </tr>
  868. <tr>
  869. <td class="name">
  870. <strong>FRAGMENT</strong>
  871. <br>
  872. <span class="param-type">string</span>
  873. </td>
  874. <td class="description last">
  875. <p>The fragment shader stage.</p>
  876. </td>
  877. </tr>
  878. </tbody>
  879. </table>
  880. </div>
  881. <div class="member">
  882. <h3 class="name" id="NodeType" translate="no">.<a href="#NodeType">NodeType</a> <span class="type-signature">(constant) </span></h3>
  883. <div class="description">
  884. <p>Data types of a node.</p>
  885. </div>
  886. <table class="props">
  887. <tbody>
  888. <tr>
  889. <td class="name">
  890. <strong>BOOLEAN</strong>
  891. <br>
  892. <span class="param-type">string</span>
  893. </td>
  894. <td class="description last">
  895. <p>Boolean type.</p>
  896. </td>
  897. </tr>
  898. <tr>
  899. <td class="name">
  900. <strong>INTEGER</strong>
  901. <br>
  902. <span class="param-type">string</span>
  903. </td>
  904. <td class="description last">
  905. <p>Integer type.</p>
  906. </td>
  907. </tr>
  908. <tr>
  909. <td class="name">
  910. <strong>FLOAT</strong>
  911. <br>
  912. <span class="param-type">string</span>
  913. </td>
  914. <td class="description last">
  915. <p>Float type.</p>
  916. </td>
  917. </tr>
  918. <tr>
  919. <td class="name">
  920. <strong>VECTOR2</strong>
  921. <br>
  922. <span class="param-type">string</span>
  923. </td>
  924. <td class="description last">
  925. <p>Two-dimensional vector type.</p>
  926. </td>
  927. </tr>
  928. <tr>
  929. <td class="name">
  930. <strong>VECTOR3</strong>
  931. <br>
  932. <span class="param-type">string</span>
  933. </td>
  934. <td class="description last">
  935. <p>Three-dimensional vector type.</p>
  936. </td>
  937. </tr>
  938. <tr>
  939. <td class="name">
  940. <strong>VECTOR4</strong>
  941. <br>
  942. <span class="param-type">string</span>
  943. </td>
  944. <td class="description last">
  945. <p>Four-dimensional vector type.</p>
  946. </td>
  947. </tr>
  948. <tr>
  949. <td class="name">
  950. <strong>MATRIX2</strong>
  951. <br>
  952. <span class="param-type">string</span>
  953. </td>
  954. <td class="description last">
  955. <p>2x2 matrix type.</p>
  956. </td>
  957. </tr>
  958. <tr>
  959. <td class="name">
  960. <strong>MATRIX3</strong>
  961. <br>
  962. <span class="param-type">string</span>
  963. </td>
  964. <td class="description last">
  965. <p>3x3 matrix type.</p>
  966. </td>
  967. </tr>
  968. <tr>
  969. <td class="name">
  970. <strong>MATRIX4</strong>
  971. <br>
  972. <span class="param-type">string</span>
  973. </td>
  974. <td class="description last">
  975. <p>4x4 matrix type.</p>
  976. </td>
  977. </tr>
  978. </tbody>
  979. </table>
  980. </div>
  981. <div class="member">
  982. <h3 class="name" id="NodeUpdateType" translate="no">.<a href="#NodeUpdateType">NodeUpdateType</a> <span class="type-signature">(constant) </span></h3>
  983. <div class="description">
  984. <p>Update types of a node.</p>
  985. </div>
  986. <table class="props">
  987. <tbody>
  988. <tr>
  989. <td class="name">
  990. <strong>NONE</strong>
  991. <br>
  992. <span class="param-type">string</span>
  993. </td>
  994. <td class="description last">
  995. <p>The update method is not executed.</p>
  996. </td>
  997. </tr>
  998. <tr>
  999. <td class="name">
  1000. <strong>FRAME</strong>
  1001. <br>
  1002. <span class="param-type">string</span>
  1003. </td>
  1004. <td class="description last">
  1005. <p>The update method is executed per frame.</p>
  1006. </td>
  1007. </tr>
  1008. <tr>
  1009. <td class="name">
  1010. <strong>RENDER</strong>
  1011. <br>
  1012. <span class="param-type">string</span>
  1013. </td>
  1014. <td class="description last">
  1015. <p>The update method is executed per render. A frame might be produced by multiple render calls so this value allows more detailed updates than FRAME.</p>
  1016. </td>
  1017. </tr>
  1018. <tr>
  1019. <td class="name">
  1020. <strong>OBJECT</strong>
  1021. <br>
  1022. <span class="param-type">string</span>
  1023. </td>
  1024. <td class="description last">
  1025. <p>The update method is executed per <a href="Object3D.html">Object3D</a> that uses the node for rendering.</p>
  1026. </td>
  1027. </tr>
  1028. </tbody>
  1029. </table>
  1030. </div>
  1031. <div class="member">
  1032. <h3 class="name" id="NormalAnimationBlendMode" translate="no">.<a href="#NormalAnimationBlendMode">NormalAnimationBlendMode</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1033. <div class="description">
  1034. <p>Default animation blend mode.</p>
  1035. </div>
  1036. </div>
  1037. <div class="member">
  1038. <h3 class="name" id="NormalBlending" translate="no">.<a href="#NormalBlending">NormalBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1039. <div class="description">
  1040. <p>The default blending.</p>
  1041. </div>
  1042. </div>
  1043. <div class="member">
  1044. <h3 class="name" id="NormalGAPacking" translate="no">.<a href="#NormalGAPacking">NormalGAPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  1045. <div class="description">
  1046. <p>Normal GA packing.</p>
  1047. </div>
  1048. </div>
  1049. <div class="member">
  1050. <h3 class="name" id="NormalRGPacking" translate="no">.<a href="#NormalRGPacking">NormalRGPacking</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  1051. <div class="description">
  1052. <p>Normal RG packing.</p>
  1053. </div>
  1054. </div>
  1055. <div class="member">
  1056. <h3 class="name" id="NotEqualCompare" translate="no">.<a href="#NotEqualCompare">NotEqualCompare</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1057. <div class="description">
  1058. <p>Pass if the incoming value is not equal to the texture value.</p>
  1059. </div>
  1060. </div>
  1061. <div class="member">
  1062. <h3 class="name" id="NotEqualDepth" translate="no">.<a href="#NotEqualDepth">NotEqualDepth</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1063. <div class="description">
  1064. <p>Pass if the incoming value is not equal to the depth buffer value.</p>
  1065. </div>
  1066. </div>
  1067. <div class="member">
  1068. <h3 class="name" id="NotEqualStencilFunc" translate="no">.<a href="#NotEqualStencilFunc">NotEqualStencilFunc</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1069. <div class="description">
  1070. <p>Will return true if the stencil reference value is not equal to the current stencil value.</p>
  1071. </div>
  1072. </div>
  1073. <div class="member">
  1074. <h3 class="name" id="ObjectSpaceNormalMap" translate="no">.<a href="#ObjectSpaceNormalMap">ObjectSpaceNormalMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1075. <div class="description">
  1076. <p>Normal information is relative to the object orientation.</p>
  1077. </div>
  1078. </div>
  1079. <div class="member">
  1080. <h3 class="name" id="OnBeforeFrameUpdate" translate="no">.<a href="#OnBeforeFrameUpdate">OnBeforeFrameUpdate</a> <span class="type-signature">(constant) </span></h3>
  1081. <div class="description">
  1082. <p>Creates an event that triggers a function before every frame.</p>
  1083. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1084. </div>
  1085. </div>
  1086. <div class="member">
  1087. <h3 class="name" id="OnBeforeMaterialUpdate" translate="no">.<a href="#OnBeforeMaterialUpdate">OnBeforeMaterialUpdate</a> <span class="type-signature">(constant) </span></h3>
  1088. <div class="description">
  1089. <p>Creates an event that triggers a function before the material is updated.</p>
  1090. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1091. </div>
  1092. </div>
  1093. <div class="member">
  1094. <h3 class="name" id="OnBeforeObjectUpdate" translate="no">.<a href="#OnBeforeObjectUpdate">OnBeforeObjectUpdate</a> <span class="type-signature">(constant) </span></h3>
  1095. <div class="description">
  1096. <p>Creates an event that triggers a function before an object (Mesh|Sprite) is updated.</p>
  1097. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1098. </div>
  1099. </div>
  1100. <div class="member">
  1101. <h3 class="name" id="OnFrameUpdate" translate="no">.<a href="#OnFrameUpdate">OnFrameUpdate</a> <span class="type-signature">(constant) </span></h3>
  1102. <div class="description">
  1103. <p>Creates an event that triggers a function every frame.</p>
  1104. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1105. </div>
  1106. </div>
  1107. <div class="member">
  1108. <h3 class="name" id="OnMaterialUpdate" translate="no">.<a href="#OnMaterialUpdate">OnMaterialUpdate</a> <span class="type-signature">(constant) </span></h3>
  1109. <div class="description">
  1110. <p>Creates an event that triggers a function when the first object that uses the material is rendered.</p>
  1111. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1112. </div>
  1113. </div>
  1114. <div class="member">
  1115. <h3 class="name" id="OnObjectUpdate" translate="no">.<a href="#OnObjectUpdate">OnObjectUpdate</a> <span class="type-signature">(constant) </span></h3>
  1116. <div class="description">
  1117. <p>Creates an event that triggers a function every time an object (Mesh|Sprite) is rendered.</p>
  1118. <p>The event will be bound to the declared TSL function <code>Fn()</code>; it must be declared within a <code>Fn()</code> or the JS function call must be inherited from one.</p>
  1119. </div>
  1120. </div>
  1121. <div class="member">
  1122. <h3 class="name" id="OneFactor" translate="no">.<a href="#OneFactor">OneFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1123. <div class="description">
  1124. <p>Multiplies all colors by <code>1</code>.</p>
  1125. </div>
  1126. </div>
  1127. <div class="member">
  1128. <h3 class="name" id="OneMinusConstantAlphaFactor" translate="no">.<a href="#OneMinusConstantAlphaFactor">OneMinusConstantAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1129. <div class="description">
  1130. <p>Multiplies all colors by 1 minus a constant alpha value.</p>
  1131. </div>
  1132. </div>
  1133. <div class="member">
  1134. <h3 class="name" id="OneMinusConstantColorFactor" translate="no">.<a href="#OneMinusConstantColorFactor">OneMinusConstantColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1135. <div class="description">
  1136. <p>Multiplies all colors by <code>1</code> minus a constant color.</p>
  1137. </div>
  1138. </div>
  1139. <div class="member">
  1140. <h3 class="name" id="OneMinusDstAlphaFactor" translate="no">.<a href="#OneMinusDstAlphaFactor">OneMinusDstAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1141. <div class="description">
  1142. <p>Multiplies all colors by <code>1</code> minus the destination alpha value.</p>
  1143. </div>
  1144. </div>
  1145. <div class="member">
  1146. <h3 class="name" id="OneMinusDstColorFactor" translate="no">.<a href="#OneMinusDstColorFactor">OneMinusDstColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1147. <div class="description">
  1148. <p>Multiplies all colors by <code>1</code> minus each destination color.</p>
  1149. </div>
  1150. </div>
  1151. <div class="member">
  1152. <h3 class="name" id="OneMinusSrcAlphaFactor" translate="no">.<a href="#OneMinusSrcAlphaFactor">OneMinusSrcAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1153. <div class="description">
  1154. <p>Multiplies all colors by 1 minus the source alpha value.</p>
  1155. </div>
  1156. </div>
  1157. <div class="member">
  1158. <h3 class="name" id="OneMinusSrcColorFactor" translate="no">.<a href="#OneMinusSrcColorFactor">OneMinusSrcColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1159. <div class="description">
  1160. <p>Multiplies all colors by <code>1</code> minus each source color.</p>
  1161. </div>
  1162. </div>
  1163. <div class="member">
  1164. <h3 class="name" id="PCFShadowMap" translate="no">.<a href="#PCFShadowMap">PCFShadowMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1165. <div class="description">
  1166. <p>Filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm.</p>
  1167. </div>
  1168. </div>
  1169. <div class="member">
  1170. <h3 class="name" id="PCFSoftShadowMap" translate="no">.<a href="#PCFSoftShadowMap">PCFSoftShadowMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1171. <div class="description">
  1172. <p>Filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm with
  1173. better soft shadows especially when using low-resolution shadow maps.</p>
  1174. </div>
  1175. </div>
  1176. <div class="member">
  1177. <h3 class="name" id="R11_EAC_Format" translate="no">.<a href="#R11_EAC_Format">R11_EAC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1178. <div class="description">
  1179. <p>EAC R11 UNORM format.</p>
  1180. </div>
  1181. </div>
  1182. <div class="member">
  1183. <h3 class="name" id="RED_GREEN_RGTC2_Format" translate="no">.<a href="#RED_GREEN_RGTC2_Format">RED_GREEN_RGTC2_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1184. <div class="description">
  1185. <p>RGTC2 Red Green format.</p>
  1186. </div>
  1187. </div>
  1188. <div class="member">
  1189. <h3 class="name" id="RED_RGTC1_Format" translate="no">.<a href="#RED_RGTC1_Format">RED_RGTC1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1190. <div class="description">
  1191. <p>RGTC1 Red format.</p>
  1192. </div>
  1193. </div>
  1194. <div class="member">
  1195. <h3 class="name" id="RG11_EAC_Format" translate="no">.<a href="#RG11_EAC_Format">RG11_EAC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1196. <div class="description">
  1197. <p>EAC RG11 UNORM format.</p>
  1198. </div>
  1199. </div>
  1200. <div class="member">
  1201. <h3 class="name" id="RGBADepthPacking" translate="no">.<a href="#RGBADepthPacking">RGBADepthPacking</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1202. <div class="description">
  1203. <p>The depth value is packed into 32 bit RGBA.</p>
  1204. </div>
  1205. </div>
  1206. <div class="member">
  1207. <h3 class="name" id="RGBAFormat" translate="no">.<a href="#RGBAFormat">RGBAFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1208. <div class="description">
  1209. <p>Reads the red, green, blue and alpha components.</p>
  1210. </div>
  1211. </div>
  1212. <div class="member">
  1213. <h3 class="name" id="RGBAIntegerFormat" translate="no">.<a href="#RGBAIntegerFormat">RGBAIntegerFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1214. <div class="description">
  1215. <p>Reads the red, green, blue and alpha components. The texels are read as integers instead of floating point.</p>
  1216. </div>
  1217. </div>
  1218. <div class="member">
  1219. <h3 class="name" id="RGBA_ASTC_10x10_Format" translate="no">.<a href="#RGBA_ASTC_10x10_Format">RGBA_ASTC_10x10_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1220. <div class="description">
  1221. <p>ASTC RGBA 10x10 format.</p>
  1222. </div>
  1223. </div>
  1224. <div class="member">
  1225. <h3 class="name" id="RGBA_ASTC_10x5_Format" translate="no">.<a href="#RGBA_ASTC_10x5_Format">RGBA_ASTC_10x5_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1226. <div class="description">
  1227. <p>ASTC RGBA 10x5 format.</p>
  1228. </div>
  1229. </div>
  1230. <div class="member">
  1231. <h3 class="name" id="RGBA_ASTC_10x6_Format" translate="no">.<a href="#RGBA_ASTC_10x6_Format">RGBA_ASTC_10x6_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1232. <div class="description">
  1233. <p>ASTC RGBA 10x6 format.</p>
  1234. </div>
  1235. </div>
  1236. <div class="member">
  1237. <h3 class="name" id="RGBA_ASTC_10x8_Format" translate="no">.<a href="#RGBA_ASTC_10x8_Format">RGBA_ASTC_10x8_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1238. <div class="description">
  1239. <p>ASTC RGBA 10x8 format.</p>
  1240. </div>
  1241. </div>
  1242. <div class="member">
  1243. <h3 class="name" id="RGBA_ASTC_12x10_Format" translate="no">.<a href="#RGBA_ASTC_12x10_Format">RGBA_ASTC_12x10_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1244. <div class="description">
  1245. <p>ASTC RGBA 12x10 format.</p>
  1246. </div>
  1247. </div>
  1248. <div class="member">
  1249. <h3 class="name" id="RGBA_ASTC_12x12_Format" translate="no">.<a href="#RGBA_ASTC_12x12_Format">RGBA_ASTC_12x12_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1250. <div class="description">
  1251. <p>ASTC RGBA 12x12 format.</p>
  1252. </div>
  1253. </div>
  1254. <div class="member">
  1255. <h3 class="name" id="RGBA_ASTC_4x4_Format" translate="no">.<a href="#RGBA_ASTC_4x4_Format">RGBA_ASTC_4x4_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1256. <div class="description">
  1257. <p>ASTC RGBA 4x4 format.</p>
  1258. </div>
  1259. </div>
  1260. <div class="member">
  1261. <h3 class="name" id="RGBA_ASTC_5x4_Format" translate="no">.<a href="#RGBA_ASTC_5x4_Format">RGBA_ASTC_5x4_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1262. <div class="description">
  1263. <p>ASTC RGBA 5x4 format.</p>
  1264. </div>
  1265. </div>
  1266. <div class="member">
  1267. <h3 class="name" id="RGBA_ASTC_5x5_Format" translate="no">.<a href="#RGBA_ASTC_5x5_Format">RGBA_ASTC_5x5_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1268. <div class="description">
  1269. <p>ASTC RGBA 5x5 format.</p>
  1270. </div>
  1271. </div>
  1272. <div class="member">
  1273. <h3 class="name" id="RGBA_ASTC_6x5_Format" translate="no">.<a href="#RGBA_ASTC_6x5_Format">RGBA_ASTC_6x5_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1274. <div class="description">
  1275. <p>ASTC RGBA 6x5 format.</p>
  1276. </div>
  1277. </div>
  1278. <div class="member">
  1279. <h3 class="name" id="RGBA_ASTC_6x6_Format" translate="no">.<a href="#RGBA_ASTC_6x6_Format">RGBA_ASTC_6x6_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1280. <div class="description">
  1281. <p>ASTC RGBA 6x6 format.</p>
  1282. </div>
  1283. </div>
  1284. <div class="member">
  1285. <h3 class="name" id="RGBA_ASTC_8x5_Format" translate="no">.<a href="#RGBA_ASTC_8x5_Format">RGBA_ASTC_8x5_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1286. <div class="description">
  1287. <p>ASTC RGBA 8x5 format.</p>
  1288. </div>
  1289. </div>
  1290. <div class="member">
  1291. <h3 class="name" id="RGBA_ASTC_8x6_Format" translate="no">.<a href="#RGBA_ASTC_8x6_Format">RGBA_ASTC_8x6_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1292. <div class="description">
  1293. <p>ASTC RGBA 8x6 format.</p>
  1294. </div>
  1295. </div>
  1296. <div class="member">
  1297. <h3 class="name" id="RGBA_ASTC_8x8_Format" translate="no">.<a href="#RGBA_ASTC_8x8_Format">RGBA_ASTC_8x8_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1298. <div class="description">
  1299. <p>ASTC RGBA 8x8 format.</p>
  1300. </div>
  1301. </div>
  1302. <div class="member">
  1303. <h3 class="name" id="RGBA_BPTC_Format" translate="no">.<a href="#RGBA_BPTC_Format">RGBA_BPTC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1304. <div class="description">
  1305. <p>BPTC RGBA format.</p>
  1306. </div>
  1307. </div>
  1308. <div class="member">
  1309. <h3 class="name" id="RGBA_ETC2_EAC_Format" translate="no">.<a href="#RGBA_ETC2_EAC_Format">RGBA_ETC2_EAC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1310. <div class="description">
  1311. <p>ETC2 RGBA format.</p>
  1312. </div>
  1313. </div>
  1314. <div class="member">
  1315. <h3 class="name" id="RGBA_PVRTC_2BPPV1_Format" translate="no">.<a href="#RGBA_PVRTC_2BPPV1_Format">RGBA_PVRTC_2BPPV1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1316. <div class="description">
  1317. <p>PVRTC RGBA compression in 2-bit mode. One block for each 8×4 pixels.</p>
  1318. </div>
  1319. </div>
  1320. <div class="member">
  1321. <h3 class="name" id="RGBA_PVRTC_4BPPV1_Format" translate="no">.<a href="#RGBA_PVRTC_4BPPV1_Format">RGBA_PVRTC_4BPPV1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1322. <div class="description">
  1323. <p>PVRTC RGBA compression in 4-bit mode. One block for each 4×4 pixels.</p>
  1324. </div>
  1325. </div>
  1326. <div class="member">
  1327. <h3 class="name" id="RGBA_S3TC_DXT1_Format" translate="no">.<a href="#RGBA_S3TC_DXT1_Format">RGBA_S3TC_DXT1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1328. <div class="description">
  1329. <p>A DXT1-compressed image in an RGB image format with a simple on/off alpha value.</p>
  1330. </div>
  1331. </div>
  1332. <div class="member">
  1333. <h3 class="name" id="RGBA_S3TC_DXT3_Format" translate="no">.<a href="#RGBA_S3TC_DXT3_Format">RGBA_S3TC_DXT3_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1334. <div class="description">
  1335. <p>A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression.</p>
  1336. </div>
  1337. </div>
  1338. <div class="member">
  1339. <h3 class="name" id="RGBA_S3TC_DXT5_Format" translate="no">.<a href="#RGBA_S3TC_DXT5_Format">RGBA_S3TC_DXT5_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1340. <div class="description">
  1341. <p>A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3
  1342. compression in how the alpha compression is done.</p>
  1343. </div>
  1344. </div>
  1345. <div class="member">
  1346. <h3 class="name" id="RGBDepthPacking" translate="no">.<a href="#RGBDepthPacking">RGBDepthPacking</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1347. <div class="description">
  1348. <p>The depth value is packed into 24 bit RGB.</p>
  1349. </div>
  1350. </div>
  1351. <div class="member">
  1352. <h3 class="name" id="RGBFormat" translate="no">.<a href="#RGBFormat">RGBFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1353. <div class="description">
  1354. <p>Discards the alpha component and reads the red, green and blue component.</p>
  1355. </div>
  1356. </div>
  1357. <div class="member">
  1358. <h3 class="name" id="RGBIntegerFormat" translate="no">.<a href="#RGBIntegerFormat">RGBIntegerFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1359. <div class="description">
  1360. <p>Discards the alpha component and reads the red, green and blue component. The texels are read as integers instead of floating point.</p>
  1361. </div>
  1362. </div>
  1363. <div class="member">
  1364. <h3 class="name" id="RGB_BPTC_SIGNED_Format" translate="no">.<a href="#RGB_BPTC_SIGNED_Format">RGB_BPTC_SIGNED_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1365. <div class="description">
  1366. <p>BPTC Signed RGB format.</p>
  1367. </div>
  1368. </div>
  1369. <div class="member">
  1370. <h3 class="name" id="RGB_BPTC_UNSIGNED_Format" translate="no">.<a href="#RGB_BPTC_UNSIGNED_Format">RGB_BPTC_UNSIGNED_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1371. <div class="description">
  1372. <p>BPTC Unsigned RGB format.</p>
  1373. </div>
  1374. </div>
  1375. <div class="member">
  1376. <h3 class="name" id="RGB_ETC1_Format" translate="no">.<a href="#RGB_ETC1_Format">RGB_ETC1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1377. <div class="description">
  1378. <p>ETC1 RGB format.</p>
  1379. </div>
  1380. </div>
  1381. <div class="member">
  1382. <h3 class="name" id="RGB_ETC2_Format" translate="no">.<a href="#RGB_ETC2_Format">RGB_ETC2_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1383. <div class="description">
  1384. <p>ETC2 RGB format.</p>
  1385. </div>
  1386. </div>
  1387. <div class="member">
  1388. <h3 class="name" id="RGB_PVRTC_2BPPV1_Format" translate="no">.<a href="#RGB_PVRTC_2BPPV1_Format">RGB_PVRTC_2BPPV1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1389. <div class="description">
  1390. <p>PVRTC RGB compression in 2-bit mode. One block for each 8×4 pixels.</p>
  1391. </div>
  1392. </div>
  1393. <div class="member">
  1394. <h3 class="name" id="RGB_PVRTC_4BPPV1_Format" translate="no">.<a href="#RGB_PVRTC_4BPPV1_Format">RGB_PVRTC_4BPPV1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1395. <div class="description">
  1396. <p>PVRTC RGB compression in 4-bit mode. One block for each 4×4 pixels.</p>
  1397. </div>
  1398. </div>
  1399. <div class="member">
  1400. <h3 class="name" id="RGB_S3TC_DXT1_Format" translate="no">.<a href="#RGB_S3TC_DXT1_Format">RGB_S3TC_DXT1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1401. <div class="description">
  1402. <p>A DXT1-compressed image in an RGB image format.</p>
  1403. </div>
  1404. </div>
  1405. <div class="member">
  1406. <h3 class="name" id="RGDepthPacking" translate="no">.<a href="#RGDepthPacking">RGDepthPacking</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1407. <div class="description">
  1408. <p>The depth value is packed into 16 bit RG.</p>
  1409. </div>
  1410. </div>
  1411. <div class="member">
  1412. <h3 class="name" id="RGFormat" translate="no">.<a href="#RGFormat">RGFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1413. <div class="description">
  1414. <p>Discards the alpha, and blue components and reads the red, and green components.</p>
  1415. </div>
  1416. </div>
  1417. <div class="member">
  1418. <h3 class="name" id="RGIntegerFormat" translate="no">.<a href="#RGIntegerFormat">RGIntegerFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1419. <div class="description">
  1420. <p>Discards the alpha, and blue components and reads the red, and green components. The texels are read as integers instead of floating point.</p>
  1421. </div>
  1422. </div>
  1423. <div class="member">
  1424. <h3 class="name" id="RedFormat" translate="no">.<a href="#RedFormat">RedFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1425. <div class="description">
  1426. <p>Discards the green, blue and alpha components and reads just the red component.</p>
  1427. </div>
  1428. </div>
  1429. <div class="member">
  1430. <h3 class="name" id="RedIntegerFormat" translate="no">.<a href="#RedIntegerFormat">RedIntegerFormat</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1431. <div class="description">
  1432. <p>Discards the green, blue and alpha components and reads just the red component. The texels are read as integers instead of floating point.</p>
  1433. </div>
  1434. </div>
  1435. <div class="member">
  1436. <h3 class="name" id="ReinhardToneMapping" translate="no">.<a href="#ReinhardToneMapping">ReinhardToneMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1437. <div class="description">
  1438. <p>Reinhard tone mapping.</p>
  1439. </div>
  1440. </div>
  1441. <div class="member">
  1442. <h3 class="name" id="RepeatWrapping" translate="no">.<a href="#RepeatWrapping">RepeatWrapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1443. <div class="description">
  1444. <p>The texture will simply repeat to infinity.</p>
  1445. </div>
  1446. </div>
  1447. <div class="member">
  1448. <h3 class="name" id="ReplaceStencilOp" translate="no">.<a href="#ReplaceStencilOp">ReplaceStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1449. <div class="description">
  1450. <p>Sets the stencil buffer value to the specified reference value.</p>
  1451. </div>
  1452. </div>
  1453. <div class="member">
  1454. <h3 class="name" id="ReverseSubtractEquation" translate="no">.<a href="#ReverseSubtractEquation">ReverseSubtractEquation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1455. <div class="description">
  1456. <p>A <code>destination - source</code> blending equation.</p>
  1457. </div>
  1458. </div>
  1459. <div class="member">
  1460. <h3 class="name" id="SIGNED_R11_EAC_Format" translate="no">.<a href="#SIGNED_R11_EAC_Format">SIGNED_R11_EAC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1461. <div class="description">
  1462. <p>EAC R11 SNORM format.</p>
  1463. </div>
  1464. </div>
  1465. <div class="member">
  1466. <h3 class="name" id="SIGNED_RED_GREEN_RGTC2_Format" translate="no">.<a href="#SIGNED_RED_GREEN_RGTC2_Format">SIGNED_RED_GREEN_RGTC2_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1467. <div class="description">
  1468. <p>RGTC2 Signed Red Green format.</p>
  1469. </div>
  1470. </div>
  1471. <div class="member">
  1472. <h3 class="name" id="SIGNED_RED_RGTC1_Format" translate="no">.<a href="#SIGNED_RED_RGTC1_Format">SIGNED_RED_RGTC1_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1473. <div class="description">
  1474. <p>RGTC1 Signed Red format.</p>
  1475. </div>
  1476. </div>
  1477. <div class="member">
  1478. <h3 class="name" id="SIGNED_RG11_EAC_Format" translate="no">.<a href="#SIGNED_RG11_EAC_Format">SIGNED_RG11_EAC_Format</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1479. <div class="description">
  1480. <p>EAC RG11 SNORM format.</p>
  1481. </div>
  1482. </div>
  1483. <div class="member">
  1484. <h3 class="name" id="SRGBColorSpace" translate="no">.<a href="#SRGBColorSpace">SRGBColorSpace</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  1485. <div class="description">
  1486. <p>sRGB color space.</p>
  1487. </div>
  1488. </div>
  1489. <div class="member">
  1490. <h3 class="name" id="SRGBTransfer" translate="no">.<a href="#SRGBTransfer">SRGBTransfer</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  1491. <div class="description">
  1492. <p>sRGB transfer function.</p>
  1493. </div>
  1494. </div>
  1495. <div class="member">
  1496. <h3 class="name" id="SRGB_TO_LINEAR" translate="no">.<a href="#SRGB_TO_LINEAR">SRGB_TO_LINEAR</a> <span class="type-signature">(constant) </span></h3>
  1497. <div class="description">
  1498. <p>UltraHDR Image Format - https://developer.android.com/media/platform/hdr-image-format</p>
  1499. <p>Short format brief:</p>
  1500. <p>[JPEG headers]
  1501. [Metadata describing the MPF container and both SDR and gainmap images]</p>
  1502. <ul>
  1503. <li>XMP metadata (legacy format)</li>
  1504. <li>ISO 21496-1 metadata (current standard)
  1505. [Optional metadata] [EXIF] [ICC Profile]
  1506. [SDR image]
  1507. [Gainmap image with metadata]</li>
  1508. </ul>
  1509. <p>Each section is separated by a 0xFFXX byte followed by a descriptor byte (0xFFE0, 0xFFE1, 0xFFE2.)
  1510. Binary image storages are prefixed with a unique 0xFFD8 16-bit descriptor.</p>
  1511. </div>
  1512. </div>
  1513. <div class="member">
  1514. <h3 class="name" id="ShortType" translate="no">.<a href="#ShortType">ShortType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1515. <div class="description">
  1516. <p>A short data type for textures.</p>
  1517. </div>
  1518. </div>
  1519. <div class="member">
  1520. <h3 class="name" id="SrcAlphaFactor" translate="no">.<a href="#SrcAlphaFactor">SrcAlphaFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1521. <div class="description">
  1522. <p>Multiplies all colors by the source alpha value.</p>
  1523. </div>
  1524. </div>
  1525. <div class="member">
  1526. <h3 class="name" id="SrcAlphaSaturateFactor" translate="no">.<a href="#SrcAlphaSaturateFactor">SrcAlphaSaturateFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1527. <div class="description">
  1528. <p>Multiplies the RGB colors by the smaller of either the source alpha
  1529. value or the value of <code>1</code> minus the destination alpha value. The alpha
  1530. value is multiplied by <code>1</code>.</p>
  1531. </div>
  1532. </div>
  1533. <div class="member">
  1534. <h3 class="name" id="SrcColorFactor" translate="no">.<a href="#SrcColorFactor">SrcColorFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1535. <div class="description">
  1536. <p>Multiplies all colors by the source colors.</p>
  1537. </div>
  1538. </div>
  1539. <div class="member">
  1540. <h3 class="name" id="StaticCopyUsage" translate="no">.<a href="#StaticCopyUsage">StaticCopyUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1541. <div class="description">
  1542. <p>The contents are intended to be specified once by reading data from the 3D API, and used many times as
  1543. the source for WebGL drawing and image specification commands.</p>
  1544. </div>
  1545. </div>
  1546. <div class="member">
  1547. <h3 class="name" id="StaticDrawUsage" translate="no">.<a href="#StaticDrawUsage">StaticDrawUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1548. <div class="description">
  1549. <p>The contents are intended to be specified once by the application, and used many
  1550. times as the source for drawing and image specification commands.</p>
  1551. </div>
  1552. </div>
  1553. <div class="member">
  1554. <h3 class="name" id="StaticReadUsage" translate="no">.<a href="#StaticReadUsage">StaticReadUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1555. <div class="description">
  1556. <p>The contents are intended to be specified once by reading data from the 3D API, and queried
  1557. many times by the application.</p>
  1558. </div>
  1559. </div>
  1560. <div class="member">
  1561. <h3 class="name" id="StreamCopyUsage" translate="no">.<a href="#StreamCopyUsage">StreamCopyUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1562. <div class="description">
  1563. <p>The contents are intended to be specified once by reading data from the 3D API, and used at most a few times
  1564. as the source for WebGL drawing and image specification commands.</p>
  1565. </div>
  1566. </div>
  1567. <div class="member">
  1568. <h3 class="name" id="StreamDrawUsage" translate="no">.<a href="#StreamDrawUsage">StreamDrawUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1569. <div class="description">
  1570. <p>The contents are intended to be specified once by the application, and used at most
  1571. a few times as the source for drawing and image specification commands.</p>
  1572. </div>
  1573. </div>
  1574. <div class="member">
  1575. <h3 class="name" id="StreamReadUsage" translate="no">.<a href="#StreamReadUsage">StreamReadUsage</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1576. <div class="description">
  1577. <p>The contents are intended to be specified once by reading data from the 3D API, and queried at most
  1578. a few times by the application</p>
  1579. </div>
  1580. </div>
  1581. <div class="member">
  1582. <h3 class="name" id="SubtractEquation" translate="no">.<a href="#SubtractEquation">SubtractEquation</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1583. <div class="description">
  1584. <p>A <code>source - destination</code> blending equation.</p>
  1585. </div>
  1586. </div>
  1587. <div class="member">
  1588. <h3 class="name" id="SubtractiveBlending" translate="no">.<a href="#SubtractiveBlending">SubtractiveBlending</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1589. <div class="description">
  1590. <p>Represents subtractive blending.</p>
  1591. </div>
  1592. </div>
  1593. <div class="member">
  1594. <h3 class="name" id="TOUCH" translate="no">.<a href="#TOUCH">TOUCH</a><span class="type-signature"> : <a href="global.html#ConstantsTouch">ConstantsTouch</a></span> <span class="type-signature">(constant) </span></h3>
  1595. <div class="description">
  1596. <p>Represents touch interaction types in context of controls.</p>
  1597. </div>
  1598. </div>
  1599. <div class="member">
  1600. <h3 class="name" id="TangentSpaceNormalMap" translate="no">.<a href="#TangentSpaceNormalMap">TangentSpaceNormalMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1601. <div class="description">
  1602. <p>Normal information is relative to the underlying surface.</p>
  1603. </div>
  1604. </div>
  1605. <div class="member">
  1606. <h3 class="name" id="TimestampQuery" translate="no">.<a href="#TimestampQuery">TimestampQuery</a><span class="type-signature"> : <a href="global.html#ConstantsTimestampQuery">ConstantsTimestampQuery</a></span> <span class="type-signature">(constant) </span></h3>
  1607. <div class="description">
  1608. <p>Represents the different timestamp query types.</p>
  1609. </div>
  1610. </div>
  1611. <div class="member">
  1612. <h3 class="name" id="TriangleFanDrawMode" translate="no">.<a href="#TriangleFanDrawMode">TriangleFanDrawMode</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1613. <div class="description">
  1614. <p>For each vertex draw a triangle from the first vertex and the last two vertices.</p>
  1615. </div>
  1616. </div>
  1617. <div class="member">
  1618. <h3 class="name" id="TriangleStripDrawMode" translate="no">.<a href="#TriangleStripDrawMode">TriangleStripDrawMode</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1619. <div class="description">
  1620. <p>For each vertex draw a triangle from the last three vertices.</p>
  1621. </div>
  1622. </div>
  1623. <div class="member">
  1624. <h3 class="name" id="TrianglesDrawMode" translate="no">.<a href="#TrianglesDrawMode">TrianglesDrawMode</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1625. <div class="description">
  1626. <p>For every three vertices draw a single triangle.</p>
  1627. </div>
  1628. </div>
  1629. <div class="member">
  1630. <h3 class="name" id="UVMapping" translate="no">.<a href="#UVMapping">UVMapping</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1631. <div class="description">
  1632. <p>Maps textures using the geometry's UV coordinates.</p>
  1633. </div>
  1634. </div>
  1635. <div class="member">
  1636. <h3 class="name" id="UnsignedByteType" translate="no">.<a href="#UnsignedByteType">UnsignedByteType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1637. <div class="description">
  1638. <p>An unsigned byte data type for textures.</p>
  1639. </div>
  1640. </div>
  1641. <div class="member">
  1642. <h3 class="name" id="UnsignedInt101111Type" translate="no">.<a href="#UnsignedInt101111Type">UnsignedInt101111Type</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1643. <div class="description">
  1644. <p>An unsigned int 10_11_11 (packed) data type for textures.</p>
  1645. </div>
  1646. </div>
  1647. <div class="member">
  1648. <h3 class="name" id="UnsignedInt248Type" translate="no">.<a href="#UnsignedInt248Type">UnsignedInt248Type</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1649. <div class="description">
  1650. <p>An unsigned int 24_8 data type for textures.</p>
  1651. </div>
  1652. </div>
  1653. <div class="member">
  1654. <h3 class="name" id="UnsignedInt5999Type" translate="no">.<a href="#UnsignedInt5999Type">UnsignedInt5999Type</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1655. <div class="description">
  1656. <p>An unsigned int 5_9_9_9 (packed) data type for textures.</p>
  1657. </div>
  1658. </div>
  1659. <div class="member">
  1660. <h3 class="name" id="UnsignedIntType" translate="no">.<a href="#UnsignedIntType">UnsignedIntType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1661. <div class="description">
  1662. <p>An unsigned int data type for textures.</p>
  1663. </div>
  1664. </div>
  1665. <div class="member">
  1666. <h3 class="name" id="UnsignedShort4444Type" translate="no">.<a href="#UnsignedShort4444Type">UnsignedShort4444Type</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1667. <div class="description">
  1668. <p>An unsigned short 4_4_4_4 (packed) data type for textures.</p>
  1669. </div>
  1670. </div>
  1671. <div class="member">
  1672. <h3 class="name" id="UnsignedShort5551Type" translate="no">.<a href="#UnsignedShort5551Type">UnsignedShort5551Type</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1673. <div class="description">
  1674. <p>An unsigned short 5_5_5_1 (packed) data type for textures.</p>
  1675. </div>
  1676. </div>
  1677. <div class="member">
  1678. <h3 class="name" id="UnsignedShortType" translate="no">.<a href="#UnsignedShortType">UnsignedShortType</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1679. <div class="description">
  1680. <p>An unsigned short data type for textures.</p>
  1681. </div>
  1682. </div>
  1683. <div class="member">
  1684. <h3 class="name" id="VK_FORMAT_MAP" translate="no">.<a href="#VK_FORMAT_MAP">VK_FORMAT_MAP</a> <span class="type-signature">(constant) </span></h3>
  1685. <div class="description">
  1686. <p>References:</p>
  1687. <ul>
  1688. <li>https://github.khronos.org/KTX-Specification/ktxspec.v2.html</li>
  1689. <li>https://registry.khronos.org/DataFormat/specs/1.3/dataformat.1.3.html</li>
  1690. <li>https://github.com/donmccurdy/KTX-Parse</li>
  1691. </ul>
  1692. </div>
  1693. </div>
  1694. <div class="member">
  1695. <h3 class="name" id="VSMShadowMap" translate="no">.<a href="#VSMShadowMap">VSMShadowMap</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1696. <div class="description">
  1697. <p>Filters shadow maps using the Variance Shadow Map (VSM) algorithm.
  1698. When using VSMShadowMap all shadow receivers will also cast shadows.</p>
  1699. </div>
  1700. </div>
  1701. <div class="member">
  1702. <h3 class="name" id="WebGLCoordinateSystem" translate="no">.<a href="#WebGLCoordinateSystem">WebGLCoordinateSystem</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1703. <div class="description">
  1704. <p>WebGL coordinate system.</p>
  1705. </div>
  1706. </div>
  1707. <div class="member">
  1708. <h3 class="name" id="WebGPUCoordinateSystem" translate="no">.<a href="#WebGPUCoordinateSystem">WebGPUCoordinateSystem</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1709. <div class="description">
  1710. <p>WebGPU coordinate system.</p>
  1711. </div>
  1712. </div>
  1713. <div class="member">
  1714. <h3 class="name" id="WrapAroundEnding" translate="no">.<a href="#WrapAroundEnding">WrapAroundEnding</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1715. <div class="description">
  1716. <p>Wrap around ending for animations.</p>
  1717. </div>
  1718. </div>
  1719. <div class="member">
  1720. <h3 class="name" id="ZeroCurvatureEnding" translate="no">.<a href="#ZeroCurvatureEnding">ZeroCurvatureEnding</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1721. <div class="description">
  1722. <p>Zero curvature ending for animations.</p>
  1723. </div>
  1724. </div>
  1725. <div class="member">
  1726. <h3 class="name" id="ZeroFactor" translate="no">.<a href="#ZeroFactor">ZeroFactor</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1727. <div class="description">
  1728. <p>Multiplies all colors by <code>0</code>.</p>
  1729. </div>
  1730. </div>
  1731. <div class="member">
  1732. <h3 class="name" id="ZeroSlopeEnding" translate="no">.<a href="#ZeroSlopeEnding">ZeroSlopeEnding</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1733. <div class="description">
  1734. <p>Zero slope ending for animations.</p>
  1735. </div>
  1736. </div>
  1737. <div class="member">
  1738. <h3 class="name" id="ZeroStencilOp" translate="no">.<a href="#ZeroStencilOp">ZeroStencilOp</a><span class="type-signature"> : number</span> <span class="type-signature">(constant) </span></h3>
  1739. <div class="description">
  1740. <p>Sets the stencil buffer value to <code>0</code>.</p>
  1741. </div>
  1742. </div>
  1743. <div class="member">
  1744. <h3 class="name" id="batchColor" translate="no">.<a href="#batchColor">batchColor</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;vec4></span> <span class="type-signature">(constant) </span></h3>
  1745. <div class="description">
  1746. <p>TSL object representing a varying property for the batching color vector.</p>
  1747. </div>
  1748. </div>
  1749. <div class="member">
  1750. <h3 class="name" id="buildingPalette" translate="no">.<a href="#buildingPalette">buildingPalette</a> <span class="type-signature">(constant) </span></h3>
  1751. <div class="description">
  1752. <p>The NYC masonry palette every tower is dressed from ( hex colours ): limestone-dominant
  1753. with terracotta accents. Shared by the single-tower example and <a href="CityGenerator.html">CityGenerator</a>'s
  1754. building material so both stay in sync.</p>
  1755. </div>
  1756. </div>
  1757. <div class="member">
  1758. <h3 class="name" id="closestLineToLine" translate="no">.<a href="#closestLineToLine">closestLineToLine</a> <span class="type-signature">(constant) </span></h3>
  1759. <div class="description">
  1760. <p>Calculates the closest points on two 3D lines.
  1761. Used for perspective-correct line rendering and coordinates interpolation.</p>
  1762. </div>
  1763. </div>
  1764. <div class="member">
  1765. <h3 class="name" id="depthAwareBlend" translate="no">.<a href="#depthAwareBlend">depthAwareBlend</a> <span class="type-signature">(constant) </span></h3>
  1766. <div class="description">
  1767. <p>Performs a depth-aware blend between a base scene and a secondary effect (like godrays).
  1768. This function uses a Poisson disk sampling pattern to detect depth discontinuities
  1769. in the neighborhood of the current pixel. If an edge is detected, it shifts the
  1770. sampling coordinate for the blend node away from the edge to prevent light leaking/haloing.</p>
  1771. </div>
  1772. </div>
  1773. <div class="member">
  1774. <h3 class="name" id="disposeShadowMaterial" translate="no">.<a href="#disposeShadowMaterial">disposeShadowMaterial</a> <span class="type-signature">(constant) </span></h3>
  1775. <div class="description">
  1776. <p>Disposes the shadow material for the given light source.</p>
  1777. </div>
  1778. </div>
  1779. <div class="member">
  1780. <h3 class="name" id="equirectUvToDir" translate="no">.<a href="#equirectUvToDir">equirectUvToDir</a> <span class="type-signature">(constant) </span></h3>
  1781. <div class="description">
  1782. <p>Equirectangular direction / UV / PDF helpers and MIS weighting shared by environment sampling code.
  1783. Env-miss MIS integration lives in <a href="ImportanceSampledEnvironment.html">ImportanceSampledEnvironment</a>.</p>
  1784. <p>Equirectangular parameterization helpers used with CDF importance sampling are adapted from
  1785. <a href="https://github.com/gkjohnson/three-gpu-pathtracer" target="_blank" rel="noopener">three-gpu-pathtracer</a>.</p>
  1786. </div>
  1787. <dl class="details">
  1788. <dt class="tag-see">See:</dt>
  1789. <dd class="tag-see">
  1790. <ul>
  1791. <li><a href="https://github.com/gkjohnson/three-gpu-pathtracer" target="_blank" rel="noopener">https://github.com/gkjohnson/three-gpu-pathtracer</a></li>
  1792. </ul>
  1793. </dd>
  1794. </dl>
  1795. </div>
  1796. <div class="member">
  1797. <h3 class="name" id="getBatchingColor" translate="no">.<a href="#getBatchingColor">getBatchingColor</a> <span class="type-signature">(constant) </span></h3>
  1798. <div class="description">
  1799. <p>TSL function that retrieves the batching color for a given instance ID from a colors texture.</p>
  1800. </div>
  1801. </div>
  1802. <div class="member">
  1803. <h3 class="name" id="getIndirectIndex" translate="no">.<a href="#getIndirectIndex">getIndirectIndex</a> <span class="type-signature">(constant) </span></h3>
  1804. <div class="description">
  1805. <p>TSL function that retrieves the indirect index for a given batch ID.</p>
  1806. </div>
  1807. </div>
  1808. <div class="member">
  1809. <h3 class="name" id="getMorph" translate="no">.<a href="#getMorph">getMorph</a> <span class="type-signature">(constant) </span></h3>
  1810. <div class="description">
  1811. <p>TSL function that retrieves and scales the morphed attribute (position or normal) texel value.</p>
  1812. </div>
  1813. </div>
  1814. <div class="member">
  1815. <h3 class="name" id="getSpecularDominantFactor" translate="no">.<a href="#getSpecularDominantFactor">getSpecularDominantFactor</a> <span class="type-signature">(constant) </span></h3>
  1816. <div class="description">
  1817. <p>Specular dominant factor for parallax-corrected ray length.
  1818. From REBLUR: A Hierarchical Recurrent Denoiser (NRD).</p>
  1819. </div>
  1820. </div>
  1821. <div class="member">
  1822. <h3 class="name" id="ggxReflectionSample" translate="no">.<a href="#ggxReflectionSample">ggxReflectionSample</a> <span class="type-signature">(constant) </span></h3>
  1823. <div class="description">
  1824. <p>Importance-samples the GGX/VNDF specular lobe for one pixel and returns the reflected
  1825. ray direction plus the Monte-Carlo weight to apply to the gathered radiance, along with
  1826. the GGX terms the SSR env-miss MIS fallback needs.</p>
  1827. </div>
  1828. </div>
  1829. <div class="member">
  1830. <h3 class="name" id="ggxReflectionStruct" translate="no">.<a href="#ggxReflectionStruct">ggxReflectionStruct</a> <span class="type-signature">(constant) </span></h3>
  1831. <div class="description">
  1832. <p>Everything a single GGX reflection sample produces. <code>reflectDir</code> and <code>sampleWeight</code>
  1833. drive the SSR ray-march and compositing; <code>pdf</code>, <code>NdotV</code>, <code>alpha</code> and <code>f0</code> are the GGX
  1834. terms the env-miss MIS fallback needs so the caller never re-derives microfacet math.</p>
  1835. </div>
  1836. </div>
  1837. <div class="member">
  1838. <h3 class="name" id="instanceColor" translate="no">.<a href="#instanceColor">instanceColor</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1839. <div class="description">
  1840. <p>TSL object representing a varying property for the instanced color vector.</p>
  1841. </div>
  1842. </div>
  1843. <div class="member">
  1844. <h3 class="name" id="lineDistance" translate="no">.<a href="#lineDistance">lineDistance</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;float></span> <span class="type-signature">(constant) </span></h3>
  1845. <div class="description">
  1846. <p>Varying node representing the accumulated distance along the line.
  1847. Crucial for correctly computing dashed line intervals in fragment stage.</p>
  1848. </div>
  1849. </div>
  1850. <div class="member">
  1851. <h3 class="name" id="outgoingLight" translate="no">.<a href="#outgoingLight">outgoingLight</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1852. <div class="description">
  1853. <p>A node representing the outgoing light.</p>
  1854. </div>
  1855. </div>
  1856. <div class="member">
  1857. <h3 class="name" id="temporalReproject" translate="no">.<a href="#temporalReproject">temporalReproject</a> <span class="type-signature">(constant) </span></h3>
  1858. </div>
  1859. <div class="member">
  1860. <h3 class="name" id="totalDiffuse" translate="no">.<a href="#totalDiffuse">totalDiffuse</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1861. <div class="description">
  1862. <p>A node representing the total diffuse light.</p>
  1863. </div>
  1864. </div>
  1865. <div class="member">
  1866. <h3 class="name" id="totalSpecular" translate="no">.<a href="#totalSpecular">totalSpecular</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1867. <div class="description">
  1868. <p>A node representing the total specular light.</p>
  1869. </div>
  1870. </div>
  1871. <div class="member">
  1872. <h3 class="name" id="trimSegmentAlpha" translate="no">.<a href="#trimSegmentAlpha">trimSegmentAlpha</a> <span class="type-signature">(constant) </span></h3>
  1873. <div class="description">
  1874. <p>Trims the line segment to avoid rendering behind the camera near plane.
  1875. Computes an interpolation factor (alpha) to clamp the segment's coordinate.</p>
  1876. </div>
  1877. </div>
  1878. <div class="member">
  1879. <h3 class="name" id="viewportResolution" translate="no">.<a href="#viewportResolution">viewportResolution</a> <span class="type-signature">(constant) </span></h3>
  1880. <dl class="details">
  1881. <dt class="important tag-deprecated"><strong>Deprecated:</strong> since r169. Use <a href="TSL.html#screenSize">screenSize</a> instead.</dt>
  1882. </dl>
  1883. </div>
  1884. <div class="member">
  1885. <h3 class="name" id="worldEnd" translate="no">.<a href="#worldEnd">worldEnd</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1886. <div class="description">
  1887. <p>Varying node representing the world position of the segment end in view space.
  1888. Used for distance and coordinate calculations across the fragment shader.</p>
  1889. </div>
  1890. </div>
  1891. <div class="member">
  1892. <h3 class="name" id="worldPos" translate="no">.<a href="#worldPos">worldPos</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;vec4></span> <span class="type-signature">(constant) </span></h3>
  1893. <div class="description">
  1894. <p>Varying node representing the interpolated world/view position of the current fragment.
  1895. Used for line/ray distance checks under perspective projection.</p>
  1896. </div>
  1897. </div>
  1898. <div class="member">
  1899. <h3 class="name" id="worldStart" translate="no">.<a href="#worldStart">worldStart</a><span class="type-signature"> : <a href="VaryingNode.html">VaryingNode</a>.&lt;vec3></span> <span class="type-signature">(constant) </span></h3>
  1900. <div class="description">
  1901. <p>Varying node representing the world position of the segment start in view space.
  1902. Used for distance and coordinate calculations across the fragment shader.</p>
  1903. </div>
  1904. </div>
  1905. <h2 class="subsection-title">Methods</h2>
  1906. <h3 class="name name-method" id="BasicShadowFilter" translate="no">.<a href="#BasicShadowFilter">BasicShadowFilter</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  1907. <div class="method">
  1908. <div class="description">
  1909. <p>A shadow filtering function performing basic filtering. This is in fact an unfiltered version of the shadow map
  1910. with a binary <code>[0,1]</code> result.</p>
  1911. </div>
  1912. <table class="params">
  1913. <tbody>
  1914. <tr>
  1915. <td class="name">
  1916. <strong translate="no">inputs</strong>
  1917. </td>
  1918. <td class="description last">
  1919. <p>The input parameter object.</p>
  1920. <table class="params">
  1921. <tbody>
  1922. <tr>
  1923. <td class="name">
  1924. <strong translate="no">depthTexture</strong>
  1925. </td>
  1926. <td class="description last">
  1927. <p>A reference to the shadow map's texture data.</p>
  1928. </td>
  1929. </tr>
  1930. <tr>
  1931. <td class="name">
  1932. <strong translate="no">shadowCoord</strong>
  1933. </td>
  1934. <td class="description last">
  1935. <p>The shadow coordinates.</p>
  1936. </td>
  1937. </tr>
  1938. </tbody>
  1939. </table>
  1940. </td>
  1941. </tr>
  1942. </tbody>
  1943. </table>
  1944. <dl class="details">
  1945. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1946. </dl>
  1947. </div>
  1948. <h3 class="name name-method" id="PCFShadowFilter" translate="no">.<a href="#PCFShadowFilter">PCFShadowFilter</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  1949. <div class="method">
  1950. <div class="description">
  1951. <p>A shadow filtering function performing PCF filtering with Vogel disk sampling and IGN.</p>
  1952. <p>Uses 5 samples distributed via Vogel disk pattern, rotated per-pixel using Interleaved
  1953. Gradient Noise (IGN) to break up banding artifacts. Combined with hardware PCF (4-tap
  1954. filtering per sample), this effectively provides 20 filtered taps with better distribution.</p>
  1955. </div>
  1956. <table class="params">
  1957. <tbody>
  1958. <tr>
  1959. <td class="name">
  1960. <strong translate="no">inputs</strong>
  1961. </td>
  1962. <td class="description last">
  1963. <p>The input parameter object.</p>
  1964. <table class="params">
  1965. <tbody>
  1966. <tr>
  1967. <td class="name">
  1968. <strong translate="no">depthTexture</strong>
  1969. </td>
  1970. <td class="description last">
  1971. <p>A reference to the shadow map's texture data.</p>
  1972. </td>
  1973. </tr>
  1974. <tr>
  1975. <td class="name">
  1976. <strong translate="no">shadowCoord</strong>
  1977. </td>
  1978. <td class="description last">
  1979. <p>The shadow coordinates.</p>
  1980. </td>
  1981. </tr>
  1982. <tr>
  1983. <td class="name">
  1984. <strong translate="no">shadow</strong>
  1985. </td>
  1986. <td class="description last">
  1987. <p>The light shadow.</p>
  1988. </td>
  1989. </tr>
  1990. </tbody>
  1991. </table>
  1992. </td>
  1993. </tr>
  1994. </tbody>
  1995. </table>
  1996. <dl class="details">
  1997. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1998. </dl>
  1999. </div>
  2000. <h3 class="name name-method" id="PCFSoftShadowFilter" translate="no">.<a href="#PCFSoftShadowFilter">PCFSoftShadowFilter</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  2001. <div class="method">
  2002. <div class="description">
  2003. <p>A shadow filtering function performing PCF soft filtering.</p>
  2004. </div>
  2005. <table class="params">
  2006. <tbody>
  2007. <tr>
  2008. <td class="name">
  2009. <strong translate="no">inputs</strong>
  2010. </td>
  2011. <td class="description last">
  2012. <p>The input parameter object.</p>
  2013. <table class="params">
  2014. <tbody>
  2015. <tr>
  2016. <td class="name">
  2017. <strong translate="no">depthTexture</strong>
  2018. </td>
  2019. <td class="description last">
  2020. <p>A reference to the shadow map's texture data.</p>
  2021. </td>
  2022. </tr>
  2023. <tr>
  2024. <td class="name">
  2025. <strong translate="no">shadowCoord</strong>
  2026. </td>
  2027. <td class="description last">
  2028. <p>The shadow coordinates.</p>
  2029. </td>
  2030. </tr>
  2031. <tr>
  2032. <td class="name">
  2033. <strong translate="no">shadow</strong>
  2034. </td>
  2035. <td class="description last">
  2036. <p>The light shadow.</p>
  2037. </td>
  2038. </tr>
  2039. </tbody>
  2040. </table>
  2041. </td>
  2042. </tr>
  2043. </tbody>
  2044. </table>
  2045. <dl class="details">
  2046. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  2047. </dl>
  2048. </div>
  2049. <h3 class="name name-method" id="PointShadowFilter" translate="no">.<a href="#PointShadowFilter">PointShadowFilter</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  2050. <div class="method">
  2051. <div class="description">
  2052. <p>A shadow filtering function for point lights using Vogel disk sampling and IGN.</p>
  2053. <p>Uses 5 samples distributed via Vogel disk pattern in tangent space around the
  2054. sample direction, rotated per-pixel using Interleaved Gradient Noise (IGN).</p>
  2055. </div>
  2056. <table class="params">
  2057. <tbody>
  2058. <tr>
  2059. <td class="name">
  2060. <strong translate="no">inputs</strong>
  2061. </td>
  2062. <td class="description last">
  2063. <p>The input parameter object.</p>
  2064. <table class="params">
  2065. <tbody>
  2066. <tr>
  2067. <td class="name">
  2068. <strong translate="no">depthTexture</strong>
  2069. </td>
  2070. <td class="description last">
  2071. <p>A reference to the shadow cube map.</p>
  2072. </td>
  2073. </tr>
  2074. <tr>
  2075. <td class="name">
  2076. <strong translate="no">bd3D</strong>
  2077. </td>
  2078. <td class="description last">
  2079. <p>The normalized direction from light to fragment.</p>
  2080. </td>
  2081. </tr>
  2082. <tr>
  2083. <td class="name">
  2084. <strong translate="no">dp</strong>
  2085. </td>
  2086. <td class="description last">
  2087. <p>The depth value to compare against.</p>
  2088. </td>
  2089. </tr>
  2090. <tr>
  2091. <td class="name">
  2092. <strong translate="no">shadow</strong>
  2093. </td>
  2094. <td class="description last">
  2095. <p>The light shadow.</p>
  2096. </td>
  2097. </tr>
  2098. </tbody>
  2099. </table>
  2100. </td>
  2101. </tr>
  2102. </tbody>
  2103. </table>
  2104. <dl class="details">
  2105. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  2106. </dl>
  2107. </div>
  2108. <h3 class="name name-method" id="Stack" translate="no">.<a href="#Stack">Stack</a><span class="signature">( node : <span class="param-type"><a href="Node.html">Node</a></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  2109. <div class="method">
  2110. <div class="description">
  2111. <p>Add the given node to the current stack.</p>
  2112. </div>
  2113. <table class="params">
  2114. <tbody>
  2115. <tr>
  2116. <td class="name">
  2117. <strong translate="no">node</strong>
  2118. </td>
  2119. <td class="description last">
  2120. <p>The node to add.</p>
  2121. </td>
  2122. </tr>
  2123. </tbody>
  2124. </table>
  2125. <dl class="details">
  2126. <dt class="tag-returns"><strong>Returns:</strong> The node that was added to the stack.</dt>
  2127. </dl>
  2128. </div>
  2129. <h3 class="name name-method" id="VSMShadowFilter" translate="no">.<a href="#VSMShadowFilter">VSMShadowFilter</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  2130. <div class="method">
  2131. <div class="description">
  2132. <p>A shadow filtering function performing VSM filtering.</p>
  2133. </div>
  2134. <table class="params">
  2135. <tbody>
  2136. <tr>
  2137. <td class="name">
  2138. <strong translate="no">inputs</strong>
  2139. </td>
  2140. <td class="description last">
  2141. <p>The input parameter object.</p>
  2142. <table class="params">
  2143. <tbody>
  2144. <tr>
  2145. <td class="name">
  2146. <strong translate="no">depthTexture</strong>
  2147. </td>
  2148. <td class="description last">
  2149. <p>A reference to the shadow map's texture data.</p>
  2150. </td>
  2151. </tr>
  2152. <tr>
  2153. <td class="name">
  2154. <strong translate="no">shadowCoord</strong>
  2155. </td>
  2156. <td class="description last">
  2157. <p>The shadow coordinates.</p>
  2158. </td>
  2159. </tr>
  2160. </tbody>
  2161. </table>
  2162. </td>
  2163. </tr>
  2164. </tbody>
  2165. </table>
  2166. <dl class="details">
  2167. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  2168. </dl>
  2169. </div>
  2170. <h3 class="name name-method" id="addArcade" translate="no">.<a href="#addArcade">addArcade</a><span class="signature">()</span> </h3>
  2171. <div class="method">
  2172. <div class="description">
  2173. <p>The base storey: a wall pierced by tall pointed-arch openings, extruded with
  2174. thickness so the openings read as deep recesses.</p>
  2175. </div>
  2176. </div>
  2177. <h3 class="name name-method" id="addCornice" translate="no">.<a href="#addCornice">addCornice</a><span class="signature">()</span> </h3>
  2178. <div class="method">
  2179. <div class="description">
  2180. <p>A two-step projecting cornice / string-course band wrapping a face.</p>
  2181. </div>
  2182. </div>
  2183. <h3 class="name name-method" id="addParapet" translate="no">.<a href="#addParapet">addParapet</a><span class="signature">()</span> </h3>
  2184. <div class="method">
  2185. <div class="description">
  2186. <p>A low parapet wall capping the crown.</p>
  2187. </div>
  2188. </div>
  2189. <h3 class="name name-method" id="addSpandrelBands" translate="no">.<a href="#addSpandrelBands">addSpandrelBands</a><span class="signature">()</span> </h3>
  2190. <div class="method">
  2191. <div class="description">
  2192. <p>Horizontal terracotta bands at every floor line. Together with the projecting
  2193. piers they form the facade grid; the gaps between them are the window
  2194. openings, with glass set behind.</p>
  2195. </div>
  2196. </div>
  2197. <h3 class="name name-method" id="bakeGroups" translate="no">.<a href="#bakeGroups">bakeGroups</a><span class="signature">()</span> </h3>
  2198. <div class="method">
  2199. <div class="description">
  2200. <p>Bakes a list of instance groups into one non-indexed BufferGeometry. Each group is a
  2201. base geometry ( position + normal + uv ), an array of Matrix4 placements and a <code>partId</code>
  2202. written to a per-vertex attribute. Transforming straight into preallocated typed arrays
  2203. avoids mergeGeometries' per-instance allocations; the result is one geometry, ready for
  2204. a single draw call and the compute rasterizer.</p>
  2205. </div>
  2206. </div>
  2207. <h3 class="name name-method" id="bilinearHistoryTap" translate="no">.<a href="#bilinearHistoryTap">bilinearHistoryTap</a><span class="signature">( ctx : <span class="param-type">Object</span>, tapOffset : <span class="param-type"><a href="Node.html">Node</a>.&lt;ivec2></span>, bilinearWeight : <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span> )</span> </h3>
  2208. <div class="method">
  2209. <table class="params">
  2210. <tbody>
  2211. <tr>
  2212. <td class="name">
  2213. <strong translate="no">ctx</strong>
  2214. </td>
  2215. <td class="description last">
  2216. <p>Shared <a href="TSL.html#sampleBilinearTap">sampleBilinearTap</a> inputs plus <code>reprojICoord</code>.</p>
  2217. </td>
  2218. </tr>
  2219. <tr>
  2220. <td class="name">
  2221. <strong translate="no">tapOffset</strong>
  2222. </td>
  2223. <td class="description last">
  2224. </td>
  2225. </tr>
  2226. <tr>
  2227. <td class="name">
  2228. <strong translate="no">bilinearWeight</strong>
  2229. </td>
  2230. <td class="description last">
  2231. </td>
  2232. </tr>
  2233. </tbody>
  2234. </table>
  2235. </div>
  2236. <h3 class="name name-method" id="bindAnalyticNoise" translate="no">.<a href="#bindAnalyticNoise">bindAnalyticNoise</a><span class="signature">( resolution : <span class="param-type"><a href="UniformNode.html">UniformNode</a>.&lt;<a href="Vector2.html">Vector2</a>></span>, seed : <span class="param-type">number</span> )</span> </h3>
  2237. <div class="method">
  2238. <div class="description">
  2239. <p>Returns a TSL function that samples texture-free analytic R² noise.
  2240. Index 0 uses continuous screen pixels; other indices tile-shift with an R²
  2241. sequence into a 64×64 period. Values are four independent R² dimensions
  2242. hashed from the sample coordinates.</p>
  2243. </div>
  2244. <table class="params">
  2245. <tbody>
  2246. <tr>
  2247. <td class="name">
  2248. <strong translate="no">resolution</strong>
  2249. </td>
  2250. <td class="description last">
  2251. </td>
  2252. </tr>
  2253. <tr>
  2254. <td class="name">
  2255. <strong translate="no">seed</strong>
  2256. </td>
  2257. <td class="description last">
  2258. <p>Added to the coordinate hash so each pass gets an independent R² phase.</p>
  2259. <p>Default is <code>0</code>.</p>
  2260. </td>
  2261. </tr>
  2262. </tbody>
  2263. </table>
  2264. </div>
  2265. <h3 class="name name-method" id="bindTemporalCameraUniforms" translate="no">.<a href="#bindTemporalCameraUniforms">bindTemporalCameraUniforms</a><span class="signature">( camera : <span class="param-type"><a href="Camera.html">Camera</a></span> )</span> </h3>
  2266. <div class="method">
  2267. <div class="description">
  2268. <p>Current and previous-frame camera matrices for temporal reprojection passes.</p>
  2269. </div>
  2270. <table class="params">
  2271. <tbody>
  2272. <tr>
  2273. <td class="name">
  2274. <strong translate="no">camera</strong>
  2275. </td>
  2276. <td class="description last">
  2277. </td>
  2278. </tr>
  2279. </tbody>
  2280. </table>
  2281. </div>
  2282. <h3 class="name name-method" id="buildData3DTexture" translate="no">.<a href="#buildData3DTexture">buildData3DTexture</a><span class="signature">( chunk : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Data3DTexture.html">Data3DTexture</a></span> </h3>
  2283. <div class="method">
  2284. <div class="description">
  2285. <p>Builds a 3D texture from a VOX chunk.</p>
  2286. </div>
  2287. <table class="params">
  2288. <tbody>
  2289. <tr>
  2290. <td class="name">
  2291. <strong translate="no">chunk</strong>
  2292. </td>
  2293. <td class="description last">
  2294. <p>A VOX chunk loaded via <a href="VOXLoader.html">VOXLoader</a>.</p>
  2295. </td>
  2296. </tr>
  2297. </tbody>
  2298. </table>
  2299. <dl class="details">
  2300. <dt class="tag-returns"><strong>Returns:</strong> The generated 3D texture.</dt>
  2301. </dl>
  2302. </div>
  2303. <h3 class="name name-method" id="buildFaces" translate="no">.<a href="#buildFaces">buildFaces</a><span class="signature">()</span> </h3>
  2304. <div class="method">
  2305. <div class="description">
  2306. <p>Builds a face frame per footprint edge. Each frame is an orthonormal basis
  2307. ( u along the edge, v up, n outward ) plus an origin and length, so all
  2308. facade layout can happen in flat ( u, v ) space and bake to world with one
  2309. matrix — the same authored piece then instances onto every face, including
  2310. the diagonal chamfer.</p>
  2311. </div>
  2312. </div>
  2313. <h3 class="name name-method" id="buildFootprint" translate="no">.<a href="#buildFootprint">buildFootprint</a><span class="signature">()</span> </h3>
  2314. <div class="method">
  2315. <div class="description">
  2316. <p>A rectangle (centred at the origin in the XZ plane) with one corner cut at
  2317. 45 degrees, returned as an ordered list of <code>Vector2( x, z )</code>. <code>cornerX</code> /
  2318. <code>cornerZ</code> ( each ±1 ) pick which corner is cut, so the chamfer can be aimed
  2319. outward to a block corner.</p>
  2320. </div>
  2321. </div>
  2322. <h3 class="name name-method" id="buildMesh" translate="no">.<a href="#buildMesh">buildMesh</a><span class="signature">( chunk : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Mesh.html">Mesh</a></span> </h3>
  2323. <div class="method">
  2324. <div class="description">
  2325. <p>Builds a mesh from a VOX chunk.</p>
  2326. </div>
  2327. <table class="params">
  2328. <tbody>
  2329. <tr>
  2330. <td class="name">
  2331. <strong translate="no">chunk</strong>
  2332. </td>
  2333. <td class="description last">
  2334. <p>A VOX chunk loaded via <a href="VOXLoader.html">VOXLoader</a>.</p>
  2335. </td>
  2336. </tr>
  2337. </tbody>
  2338. </table>
  2339. <dl class="details">
  2340. <dt class="tag-returns"><strong>Returns:</strong> The generated mesh.</dt>
  2341. </dl>
  2342. </div>
  2343. <h3 class="name name-method" id="ceilPowerOfTwo" translate="no">.<a href="#ceilPowerOfTwo">ceilPowerOfTwo</a><span class="signature">( value : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2344. <div class="method">
  2345. <div class="description">
  2346. <p>Returns the smallest power of two that is greater than or equal to the given number.</p>
  2347. </div>
  2348. <table class="params">
  2349. <tbody>
  2350. <tr>
  2351. <td class="name">
  2352. <strong translate="no">value</strong>
  2353. </td>
  2354. <td class="description last">
  2355. <p>The value to find a POT for. Must be greater than <code>0</code>.</p>
  2356. </td>
  2357. </tr>
  2358. </tbody>
  2359. </table>
  2360. <dl class="details">
  2361. <dt class="tag-returns"><strong>Returns:</strong> The smallest power of two that is greater than or equal to the given number.</dt>
  2362. </dl>
  2363. </div>
  2364. <h3 class="name name-method" id="clamp" translate="no">.<a href="#clamp">clamp</a><span class="signature">( value : <span class="param-type">number</span>, min : <span class="param-type">number</span>, max : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2365. <div class="method">
  2366. <div class="description">
  2367. <p>Clamps the given value between min and max.</p>
  2368. </div>
  2369. <table class="params">
  2370. <tbody>
  2371. <tr>
  2372. <td class="name">
  2373. <strong translate="no">value</strong>
  2374. </td>
  2375. <td class="description last">
  2376. <p>The value to clamp.</p>
  2377. </td>
  2378. </tr>
  2379. <tr>
  2380. <td class="name">
  2381. <strong translate="no">min</strong>
  2382. </td>
  2383. <td class="description last">
  2384. <p>The min value.</p>
  2385. </td>
  2386. </tr>
  2387. <tr>
  2388. <td class="name">
  2389. <strong translate="no">max</strong>
  2390. </td>
  2391. <td class="description last">
  2392. <p>The max value.</p>
  2393. </td>
  2394. </tr>
  2395. </tbody>
  2396. </table>
  2397. <dl class="details">
  2398. <dt class="tag-returns"><strong>Returns:</strong> The clamped value.</dt>
  2399. </dl>
  2400. </div>
  2401. <h3 class="name name-method" id="contain" translate="no">.<a href="#contain">contain</a><span class="signature">( texture : <span class="param-type"><a href="Texture.html">Texture</a></span>, aspect : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
  2402. <div class="method">
  2403. <div class="description">
  2404. <p>Scales the texture as large as possible within its surface without cropping
  2405. or stretching the texture. The method preserves the original aspect ratio of
  2406. the texture. Akin to CSS <code>object-fit: contain</code></p>
  2407. </div>
  2408. <table class="params">
  2409. <tbody>
  2410. <tr>
  2411. <td class="name">
  2412. <strong translate="no">texture</strong>
  2413. </td>
  2414. <td class="description last">
  2415. <p>The texture.</p>
  2416. </td>
  2417. </tr>
  2418. <tr>
  2419. <td class="name">
  2420. <strong translate="no">aspect</strong>
  2421. </td>
  2422. <td class="description last">
  2423. <p>The texture's aspect ratio.</p>
  2424. </td>
  2425. </tr>
  2426. </tbody>
  2427. </table>
  2428. <dl class="details">
  2429. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  2430. </dl>
  2431. </div>
  2432. <h3 class="name name-method" id="convertArray" translate="no">.<a href="#convertArray">convertArray</a><span class="signature">( array : <span class="param-type">TypedArray | Array</span>, type : <span class="param-type">TypedArray.constructor</span> )</span><span class="type-signature"> : TypedArray</span> </h3>
  2433. <div class="method">
  2434. <div class="description">
  2435. <p>Converts an array to a specific type.</p>
  2436. </div>
  2437. <table class="params">
  2438. <tbody>
  2439. <tr>
  2440. <td class="name">
  2441. <strong translate="no">array</strong>
  2442. </td>
  2443. <td class="description last">
  2444. <p>The array to convert.</p>
  2445. </td>
  2446. </tr>
  2447. <tr>
  2448. <td class="name">
  2449. <strong translate="no">type</strong>
  2450. </td>
  2451. <td class="description last">
  2452. <p>The constructor of a typed array that defines the new type.</p>
  2453. </td>
  2454. </tr>
  2455. </tbody>
  2456. </table>
  2457. <dl class="details">
  2458. <dt class="tag-returns"><strong>Returns:</strong> The converted array.</dt>
  2459. </dl>
  2460. </div>
  2461. <h3 class="name name-method" id="cover" translate="no">.<a href="#cover">cover</a><span class="signature">( texture : <span class="param-type"><a href="Texture.html">Texture</a></span>, aspect : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
  2462. <div class="method">
  2463. <div class="description">
  2464. <p>Scales the texture to the smallest possible size to fill the surface, leaving
  2465. no empty space. The method preserves the original aspect ratio of the texture.
  2466. Akin to CSS <code>object-fit: cover</code>.</p>
  2467. </div>
  2468. <table class="params">
  2469. <tbody>
  2470. <tr>
  2471. <td class="name">
  2472. <strong translate="no">texture</strong>
  2473. </td>
  2474. <td class="description last">
  2475. <p>The texture.</p>
  2476. </td>
  2477. </tr>
  2478. <tr>
  2479. <td class="name">
  2480. <strong translate="no">aspect</strong>
  2481. </td>
  2482. <td class="description last">
  2483. <p>The texture's aspect ratio.</p>
  2484. </td>
  2485. </tr>
  2486. </tbody>
  2487. </table>
  2488. <dl class="details">
  2489. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  2490. </dl>
  2491. </div>
  2492. <h3 class="name name-method" id="createBuildingMaterial" translate="no">.<a href="#createBuildingMaterial">createBuildingMaterial</a><span class="signature">()</span> </h3>
  2493. <div class="method">
  2494. <div class="description">
  2495. <p>The shared material every tower in a <a href="CityGenerator.html">CityGenerator</a> is dressed with: one flat
  2496. masonry colour per lot, picked from a palette by hashing the lot's grid cell.</p>
  2497. </div>
  2498. </div>
  2499. <h3 class="name name-method" id="createCanvasElement" translate="no">.<a href="#createCanvasElement">createCanvasElement</a><span class="signature">()</span><span class="type-signature"> : HTMLCanvasElement</span> </h3>
  2500. <div class="method">
  2501. <div class="description">
  2502. <p>Creates a canvas element configured for block display.</p>
  2503. <p>This is a convenience function that creates a canvas element with
  2504. display style set to 'block', which is commonly used in three.js
  2505. rendering contexts to avoid inline element spacing issues.</p>
  2506. </div>
  2507. <dl class="details">
  2508. <dt class="tag-returns"><strong>Returns:</strong> A canvas element with display set to 'block'.</dt>
  2509. </dl>
  2510. </div>
  2511. <h3 class="name name-method" id="createEvent" translate="no">.<a href="#createEvent">createEvent</a><span class="signature">( type : <span class="param-type">string</span>, callback : <span class="param-type">function</span> )</span><span class="type-signature"> : <a href="EventNode.html">EventNode</a></span> </h3>
  2512. <div class="method">
  2513. <div class="description">
  2514. <p>Helper to create an EventNode and add it to the stack.</p>
  2515. </div>
  2516. <table class="params">
  2517. <tbody>
  2518. <tr>
  2519. <td class="name">
  2520. <strong translate="no">type</strong>
  2521. </td>
  2522. <td class="description last">
  2523. <p>The event type.</p>
  2524. </td>
  2525. </tr>
  2526. <tr>
  2527. <td class="name">
  2528. <strong translate="no">callback</strong>
  2529. </td>
  2530. <td class="description last">
  2531. <p>The callback function.</p>
  2532. </td>
  2533. </tr>
  2534. </tbody>
  2535. </table>
  2536. </div>
  2537. <h3 class="name name-method" id="createForestMaterial" translate="no">.<a href="#createForestMaterial">createForestMaterial</a><span class="signature">( from : <span class="param-type"><a href="Node.html">Node</a></span>, to : <span class="param-type"><a href="Node.html">Node</a></span> )</span><span class="type-signature"> : <a href="MeshStandardNodeMaterial.html">MeshStandardNodeMaterial</a></span> </h3>
  2538. <div class="method">
  2539. <div class="description">
  2540. <p>The single material shared by every tree in a <a href="ForestGenerator.html">ForestGenerator</a>. A plain
  2541. MeshStandardNodeMaterial lit by the scene — only the surface is authored: deep
  2542. shadowed green in the recesses rising to a bright, yellow-green sunlit crown,
  2543. mottled into needle clumps by 3D noise, with a matching bump so the clumps catch
  2544. the light. Half a million instanced blobs makes this mesh vertex-bound, so the
  2545. regional colour drift is baked to a per-instance attribute ( no shader noise for it ),
  2546. and the costly clump noise + bump are <strong>gated by distance</strong> — full detail on the near
  2547. trees ( where it reads ), skipped on the far canopy ( where it is sub-pixel ).</p>
  2548. </div>
  2549. <table class="params">
  2550. <tbody>
  2551. <tr>
  2552. <td class="name">
  2553. <strong translate="no">from</strong>
  2554. </td>
  2555. <td class="description last">
  2556. <p>distance within which every tree is drawn.</p>
  2557. </td>
  2558. </tr>
  2559. <tr>
  2560. <td class="name">
  2561. <strong translate="no">to</strong>
  2562. </td>
  2563. <td class="description last">
  2564. <p>distance past which no tree is drawn.</p>
  2565. </td>
  2566. </tr>
  2567. </tbody>
  2568. </table>
  2569. </div>
  2570. <h3 class="name name-method" id="createInstanceMatrixNode" translate="no">.<a href="#createInstanceMatrixNode">createInstanceMatrixNode</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, instanceMatrix : <span class="param-type"><a href="InstancedBufferAttribute.html">InstancedBufferAttribute</a> | <a href="StorageInstancedBufferAttribute.html">StorageInstancedBufferAttribute</a></span>, count : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  2571. <div class="method">
  2572. <div class="description">
  2573. <p>Creates the appropriate node for instanced matrix transformations.
  2574. Depending on buffer limits and storage capability, returns either a storage, buffer, or instanced interleaved attribute node.</p>
  2575. </div>
  2576. <table class="params">
  2577. <tbody>
  2578. <tr>
  2579. <td class="name">
  2580. <strong translate="no">builder</strong>
  2581. </td>
  2582. <td class="description last">
  2583. <p>The current node builder.</p>
  2584. </td>
  2585. </tr>
  2586. <tr>
  2587. <td class="name">
  2588. <strong translate="no">instanceMatrix</strong>
  2589. </td>
  2590. <td class="description last">
  2591. <p>The matrix buffer attribute.</p>
  2592. </td>
  2593. </tr>
  2594. <tr>
  2595. <td class="name">
  2596. <strong translate="no">count</strong>
  2597. </td>
  2598. <td class="description last">
  2599. <p>The instance count.</p>
  2600. </td>
  2601. </tr>
  2602. </tbody>
  2603. </table>
  2604. <dl class="details">
  2605. <dt class="tag-returns"><strong>Returns:</strong> The matrix node.</dt>
  2606. </dl>
  2607. </div>
  2608. <h3 class="name name-method" id="createRoadMaterial" translate="no">.<a href="#createRoadMaterial">createRoadMaterial</a><span class="signature">()</span> </h3>
  2609. <div class="method">
  2610. <div class="description">
  2611. <p>The road surface: wet asphalt with lane lines and crosswalks aligned to a
  2612. <a href="CityGenerator.html">CityGenerator</a> layout. Apply it to a ground plane sized to the city.</p>
  2613. </div>
  2614. </div>
  2615. <h3 class="name name-method" id="createSkyscraperMaterial" translate="no">.<a href="#createSkyscraperMaterial">createSkyscraperMaterial</a><span class="signature">()</span> </h3>
  2616. <div class="method">
  2617. <div class="description">
  2618. <p>The facade material: a single MeshStandardNodeMaterial that reads the baked
  2619. per-vertex <code>partId</code> and reproduces every zone — procedural terracotta brickwork
  2620. on the walls and piers, smooth dressed stone on the window frames and ornament,
  2621. dark glazing, and grey AC units — all dressed with world-space
  2622. weathering. One material covers the whole building ( and a whole city ), which is
  2623. what makes it compute-rasterizer friendly. <code>buildingBase</code> is the tower's flat
  2624. masonry colour as a TSL node: pass a <code>uniform( Color )</code> for a single tower, or a
  2625. per-fragment palette pick for a city, so the same material dresses both.</p>
  2626. </div>
  2627. </div>
  2628. <h3 class="name name-method" id="createTreeMaterial" translate="no">.<a href="#createTreeMaterial">createTreeMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="MeshStandardNodeMaterial.html">MeshStandardNodeMaterial</a></span> </h3>
  2629. <div class="method">
  2630. <div class="description">
  2631. <p>A simple bark material for a <a href="TreeGenerator.html">TreeGenerator</a> mesh: a low-saturation brown with a
  2632. faint, vertically-stretched grain, so trunks read near-black against bright fog.</p>
  2633. </div>
  2634. <table class="params">
  2635. <tbody>
  2636. <tr>
  2637. <td class="name">
  2638. <strong translate="no">parameters</strong>
  2639. </td>
  2640. <td class="description last">
  2641. <p><code>barkColor</code> ( a hex, THREE.Color or TSL node ).</p>
  2642. </td>
  2643. </tr>
  2644. </tbody>
  2645. </table>
  2646. </div>
  2647. <h3 class="name name-method" id="damp" translate="no">.<a href="#damp">damp</a><span class="signature">( x : <span class="param-type">number</span>, y : <span class="param-type">number</span>, lambda : <span class="param-type">number</span>, dt : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2648. <div class="method">
  2649. <div class="description">
  2650. <p>Smoothly interpolate a number from <code>x</code> to <code>y</code> in a spring-like manner using a delta
  2651. time to maintain frame rate independent movement. For details, see
  2652. <a href="http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/" target="_blank" rel="noopener">Frame rate independent damping using lerp</a>.</p>
  2653. </div>
  2654. <table class="params">
  2655. <tbody>
  2656. <tr>
  2657. <td class="name">
  2658. <strong translate="no">x</strong>
  2659. </td>
  2660. <td class="description last">
  2661. <p>The current point.</p>
  2662. </td>
  2663. </tr>
  2664. <tr>
  2665. <td class="name">
  2666. <strong translate="no">y</strong>
  2667. </td>
  2668. <td class="description last">
  2669. <p>The target point.</p>
  2670. </td>
  2671. </tr>
  2672. <tr>
  2673. <td class="name">
  2674. <strong translate="no">lambda</strong>
  2675. </td>
  2676. <td class="description last">
  2677. <p>A higher lambda value will make the movement more sudden,
  2678. and a lower value will make the movement more gradual.</p>
  2679. </td>
  2680. </tr>
  2681. <tr>
  2682. <td class="name">
  2683. <strong translate="no">dt</strong>
  2684. </td>
  2685. <td class="description last">
  2686. <p>Delta time in seconds.</p>
  2687. </td>
  2688. </tr>
  2689. </tbody>
  2690. </table>
  2691. <dl class="details">
  2692. <dt class="tag-returns"><strong>Returns:</strong> The interpolated value.</dt>
  2693. </dl>
  2694. </div>
  2695. <h3 class="name name-method" id="dampenForVarianceClip" translate="no">.<a href="#dampenForVarianceClip">dampenForVarianceClip</a><span class="signature">( rgb : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, flickerSuppression : <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  2696. <div class="method">
  2697. <div class="description">
  2698. <p>Inverse-luminance compression for HDR variance clipping (Karis-style).
  2699. Bright samples contribute less to neighbourhood moments so sun pixels do not
  2700. inflate the YCoCg AABB and cause aggressive clipping flicker.</p>
  2701. </div>
  2702. <table class="params">
  2703. <tbody>
  2704. <tr>
  2705. <td class="name">
  2706. <strong translate="no">rgb</strong>
  2707. </td>
  2708. <td class="description last">
  2709. </td>
  2710. </tr>
  2711. <tr>
  2712. <td class="name">
  2713. <strong translate="no">flickerSuppression</strong>
  2714. </td>
  2715. <td class="description last">
  2716. </td>
  2717. </tr>
  2718. </tbody>
  2719. </table>
  2720. </div>
  2721. <h3 class="name name-method" id="degToRad" translate="no">.<a href="#degToRad">degToRad</a><span class="signature">( degrees : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2722. <div class="method">
  2723. <div class="description">
  2724. <p>Converts degrees to radians.</p>
  2725. </div>
  2726. <table class="params">
  2727. <tbody>
  2728. <tr>
  2729. <td class="name">
  2730. <strong translate="no">degrees</strong>
  2731. </td>
  2732. <td class="description last">
  2733. <p>A value in degrees.</p>
  2734. </td>
  2735. </tr>
  2736. </tbody>
  2737. </table>
  2738. <dl class="details">
  2739. <dt class="tag-returns"><strong>Returns:</strong> The converted value in radians.</dt>
  2740. </dl>
  2741. </div>
  2742. <h3 class="name name-method" id="denormalize" translate="no">.<a href="#denormalize">denormalize</a><span class="signature">( value : <span class="param-type">number</span>, array : <span class="param-type">TypedArray</span> )</span><span class="type-signature"> : number</span> </h3>
  2743. <div class="method">
  2744. <div class="description">
  2745. <p>Denormalizes the given value according to the given typed array.</p>
  2746. </div>
  2747. <table class="params">
  2748. <tbody>
  2749. <tr>
  2750. <td class="name">
  2751. <strong translate="no">value</strong>
  2752. </td>
  2753. <td class="description last">
  2754. <p>The value to denormalize.</p>
  2755. </td>
  2756. </tr>
  2757. <tr>
  2758. <td class="name">
  2759. <strong translate="no">array</strong>
  2760. </td>
  2761. <td class="description last">
  2762. <p>The typed array that defines the data type of the value.</p>
  2763. </td>
  2764. </tr>
  2765. </tbody>
  2766. </table>
  2767. <dl class="details">
  2768. <dt class="tag-returns"><strong>Returns:</strong> The denormalize (float) value in the range <code>[0,1]</code>.</dt>
  2769. </dl>
  2770. </div>
  2771. <h3 class="name name-method" id="enhanceLogMessage" translate="no">.<a href="#enhanceLogMessage">enhanceLogMessage</a><span class="signature">( params : <span class="param-type">Array.&lt;<a href="global.html#any">any</a>></span> )</span><span class="type-signature"> : Array.&lt;<a href="global.html#any">any</a>></span> </h3>
  2772. <div class="method">
  2773. <div class="description">
  2774. <p>Enhances log/warn/error messages related to TSL.</p>
  2775. </div>
  2776. <table class="params">
  2777. <tbody>
  2778. <tr>
  2779. <td class="name">
  2780. <strong translate="no">params</strong>
  2781. </td>
  2782. <td class="description last">
  2783. <p>The original message parameters.</p>
  2784. </td>
  2785. </tr>
  2786. </tbody>
  2787. </table>
  2788. <dl class="details">
  2789. <dt class="tag-returns"><strong>Returns:</strong> The filtered and enhanced message parameters.</dt>
  2790. </dl>
  2791. </div>
  2792. <h3 class="name name-method" id="error" translate="no">.<a href="#error">error</a><span class="signature">( &hellip;params : <span class="param-type"><a href="global.html#any">any</a></span> )</span> </h3>
  2793. <div class="method">
  2794. <div class="description">
  2795. <p>Logs an error message with the 'THREE.' prefix.</p>
  2796. <p>If a custom console function is set via setConsoleFunction(), it will be used
  2797. instead of the native console.error. The first parameter is treated as the
  2798. method name and is automatically prefixed with 'THREE.'.</p>
  2799. </div>
  2800. <table class="params">
  2801. <tbody>
  2802. <tr>
  2803. <td class="name">
  2804. <strong translate="no">params</strong>
  2805. </td>
  2806. <td class="description last">
  2807. <p>The message components. The first param is used as
  2808. the method name and prefixed with 'THREE.'.</p>
  2809. </td>
  2810. </tr>
  2811. </tbody>
  2812. </table>
  2813. </div>
  2814. <h3 class="name name-method" id="euclideanModulo" translate="no">.<a href="#euclideanModulo">euclideanModulo</a><span class="signature">( n : <span class="param-type">number</span>, m : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2815. <div class="method">
  2816. <div class="description">
  2817. <p>Computes the Euclidean modulo of the given parameters that
  2818. is <code>( ( n % m ) + m ) % m</code>.</p>
  2819. </div>
  2820. <table class="params">
  2821. <tbody>
  2822. <tr>
  2823. <td class="name">
  2824. <strong translate="no">n</strong>
  2825. </td>
  2826. <td class="description last">
  2827. <p>The first parameter.</p>
  2828. </td>
  2829. </tr>
  2830. <tr>
  2831. <td class="name">
  2832. <strong translate="no">m</strong>
  2833. </td>
  2834. <td class="description last">
  2835. <p>The second parameter.</p>
  2836. </td>
  2837. </tr>
  2838. </tbody>
  2839. </table>
  2840. <dl class="details">
  2841. <dt class="tag-returns"><strong>Returns:</strong> The Euclidean modulo.</dt>
  2842. </dl>
  2843. </div>
  2844. <h3 class="name name-method" id="fill" translate="no">.<a href="#fill">fill</a><span class="signature">( texture : <span class="param-type"><a href="Texture.html">Texture</a></span> )</span><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
  2845. <div class="method">
  2846. <div class="description">
  2847. <p>Configures the texture to the default transformation. Akin to CSS <code>object-fit: fill</code>.</p>
  2848. </div>
  2849. <table class="params">
  2850. <tbody>
  2851. <tr>
  2852. <td class="name">
  2853. <strong translate="no">texture</strong>
  2854. </td>
  2855. <td class="description last">
  2856. <p>The texture.</p>
  2857. </td>
  2858. </tr>
  2859. </tbody>
  2860. </table>
  2861. <dl class="details">
  2862. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  2863. </dl>
  2864. </div>
  2865. <h3 class="name name-method" id="flattenJSON" translate="no">.<a href="#flattenJSON">flattenJSON</a><span class="signature">( jsonKeys : <span class="param-type">Array.&lt;number></span>, times : <span class="param-type">Array.&lt;number></span>, values : <span class="param-type">Array.&lt;number></span>, valuePropertyName : <span class="param-type">string</span> )</span> </h3>
  2866. <div class="method">
  2867. <div class="description">
  2868. <p>Used for parsing AOS keyframe formats.</p>
  2869. </div>
  2870. <table class="params">
  2871. <tbody>
  2872. <tr>
  2873. <td class="name">
  2874. <strong translate="no">jsonKeys</strong>
  2875. </td>
  2876. <td class="description last">
  2877. <p>A list of JSON keyframes.</p>
  2878. </td>
  2879. </tr>
  2880. <tr>
  2881. <td class="name">
  2882. <strong translate="no">times</strong>
  2883. </td>
  2884. <td class="description last">
  2885. <p>This array will be filled with keyframe times by this function.</p>
  2886. </td>
  2887. </tr>
  2888. <tr>
  2889. <td class="name">
  2890. <strong translate="no">values</strong>
  2891. </td>
  2892. <td class="description last">
  2893. <p>This array will be filled with keyframe values by this function.</p>
  2894. </td>
  2895. </tr>
  2896. <tr>
  2897. <td class="name">
  2898. <strong translate="no">valuePropertyName</strong>
  2899. </td>
  2900. <td class="description last">
  2901. <p>The name of the property to use.</p>
  2902. </td>
  2903. </tr>
  2904. </tbody>
  2905. </table>
  2906. </div>
  2907. <h3 class="name name-method" id="floorPowerOfTwo" translate="no">.<a href="#floorPowerOfTwo">floorPowerOfTwo</a><span class="signature">( value : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2908. <div class="method">
  2909. <div class="description">
  2910. <p>Returns the largest power of two that is less than or equal to the given number.</p>
  2911. </div>
  2912. <table class="params">
  2913. <tbody>
  2914. <tr>
  2915. <td class="name">
  2916. <strong translate="no">value</strong>
  2917. </td>
  2918. <td class="description last">
  2919. <p>The value to find a POT for. Must be greater than <code>0</code>.</p>
  2920. </td>
  2921. </tr>
  2922. </tbody>
  2923. </table>
  2924. <dl class="details">
  2925. <dt class="tag-returns"><strong>Returns:</strong> The largest power of two that is less than or equal to the given number.</dt>
  2926. </dl>
  2927. </div>
  2928. <h3 class="name name-method" id="fromHalfFloat" translate="no">.<a href="#fromHalfFloat">fromHalfFloat</a><span class="signature">( val : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  2929. <div class="method">
  2930. <div class="description">
  2931. <p>Returns a single precision floating point value (FP32) from the given half
  2932. precision floating point value (FP16).</p>
  2933. </div>
  2934. <table class="params">
  2935. <tbody>
  2936. <tr>
  2937. <td class="name">
  2938. <strong translate="no">val</strong>
  2939. </td>
  2940. <td class="description last">
  2941. <p>A half precision floating point value.</p>
  2942. </td>
  2943. </tr>
  2944. </tbody>
  2945. </table>
  2946. <dl class="details">
  2947. <dt class="tag-returns"><strong>Returns:</strong> The FP32 value.</dt>
  2948. </dl>
  2949. </div>
  2950. <h3 class="name name-method" id="generateMagicSquare" translate="no">.<a href="#generateMagicSquare">generateMagicSquare</a><span class="signature">( size : <span class="param-type">number</span> )</span><span class="type-signature"> : Array.&lt;number></span> </h3>
  2951. <div class="method">
  2952. <div class="description">
  2953. <p>Computes an array of magic square values required to generate the noise texture.</p>
  2954. </div>
  2955. <table class="params">
  2956. <tbody>
  2957. <tr>
  2958. <td class="name">
  2959. <strong translate="no">size</strong>
  2960. </td>
  2961. <td class="description last">
  2962. <p>The noise size.</p>
  2963. </td>
  2964. </tr>
  2965. </tbody>
  2966. </table>
  2967. <dl class="details">
  2968. <dt class="tag-returns"><strong>Returns:</strong> The magic square values.</dt>
  2969. </dl>
  2970. </div>
  2971. <h3 class="name name-method" id="generateMagicSquareNoise" translate="no">.<a href="#generateMagicSquareNoise">generateMagicSquareNoise</a><span class="signature">( size : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="DataTexture.html">DataTexture</a></span> </h3>
  2972. <div class="method">
  2973. <div class="description">
  2974. <p>Generates the AO's noise texture for the given size.</p>
  2975. </div>
  2976. <table class="params">
  2977. <tbody>
  2978. <tr>
  2979. <td class="name">
  2980. <strong translate="no">size</strong>
  2981. </td>
  2982. <td class="description last">
  2983. <p>The noise size.</p>
  2984. <p>Default is <code>5</code>.</p>
  2985. </td>
  2986. </tr>
  2987. </tbody>
  2988. </table>
  2989. <dl class="details">
  2990. <dt class="tag-returns"><strong>Returns:</strong> The generated noise texture.</dt>
  2991. </dl>
  2992. </div>
  2993. <h3 class="name name-method" id="generateUUID" translate="no">.<a href="#generateUUID">generateUUID</a><span class="signature">()</span><span class="type-signature"> : string</span> </h3>
  2994. <div class="method">
  2995. <div class="description">
  2996. <p>Generate a <a href="https://en.wikipedia.org/wiki/Universally_unique_identifier" target="_blank" rel="noopener">UUID</a>
  2997. (universally unique identifier).</p>
  2998. </div>
  2999. <dl class="details">
  3000. <dt class="tag-returns"><strong>Returns:</strong> The UUID.</dt>
  3001. </dl>
  3002. </div>
  3003. <h3 class="name name-method" id="getByteLength" translate="no">.<a href="#getByteLength">getByteLength</a><span class="signature">( width : <span class="param-type">number</span>, height : <span class="param-type">number</span>, format : <span class="param-type">number</span>, type : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3004. <div class="method">
  3005. <div class="description">
  3006. <p>Determines how many bytes must be used to represent the texture.</p>
  3007. </div>
  3008. <table class="params">
  3009. <tbody>
  3010. <tr>
  3011. <td class="name">
  3012. <strong translate="no">width</strong>
  3013. </td>
  3014. <td class="description last">
  3015. <p>The width of the texture.</p>
  3016. </td>
  3017. </tr>
  3018. <tr>
  3019. <td class="name">
  3020. <strong translate="no">height</strong>
  3021. </td>
  3022. <td class="description last">
  3023. <p>The height of the texture.</p>
  3024. </td>
  3025. </tr>
  3026. <tr>
  3027. <td class="name">
  3028. <strong translate="no">format</strong>
  3029. </td>
  3030. <td class="description last">
  3031. <p>The texture's format.</p>
  3032. </td>
  3033. </tr>
  3034. <tr>
  3035. <td class="name">
  3036. <strong translate="no">type</strong>
  3037. </td>
  3038. <td class="description last">
  3039. <p>The texture's type.</p>
  3040. </td>
  3041. </tr>
  3042. </tbody>
  3043. </table>
  3044. <dl class="details">
  3045. <dt class="tag-returns"><strong>Returns:</strong> The byte length.</dt>
  3046. </dl>
  3047. </div>
  3048. <h3 class="name name-method" id="getCacheKey" translate="no">.<a href="#getCacheKey">getCacheKey</a><span class="signature">( renderContext : <span class="param-type"><a href="RenderContext.html">RenderContext</a></span> )</span><span class="type-signature"> : number</span> </h3>
  3049. <div class="method">
  3050. <div class="description">
  3051. <p>Computes a cache key for the given render context. This key
  3052. should identify the render target state so it is possible to
  3053. configure the correct attachments in the respective backend.</p>
  3054. </div>
  3055. <table class="params">
  3056. <tbody>
  3057. <tr>
  3058. <td class="name">
  3059. <strong translate="no">renderContext</strong>
  3060. </td>
  3061. <td class="description last">
  3062. <p>The render context.</p>
  3063. </td>
  3064. </tr>
  3065. </tbody>
  3066. </table>
  3067. <dl class="details">
  3068. <dt class="tag-returns"><strong>Returns:</strong> The cache key.</dt>
  3069. </dl>
  3070. </div>
  3071. <h3 class="name name-method" id="getConsoleFunction" translate="no">.<a href="#getConsoleFunction">getConsoleFunction</a><span class="signature">()</span><span class="type-signature"> : function | null</span> </h3>
  3072. <div class="method">
  3073. <div class="description">
  3074. <p>Gets the currently set custom console function.</p>
  3075. </div>
  3076. <dl class="details">
  3077. <dt class="tag-returns"><strong>Returns:</strong> The custom console function, or null if not set.</dt>
  3078. </dl>
  3079. </div>
  3080. <h3 class="name name-method" id="getDistanceAttenuation" translate="no">.<a href="#getDistanceAttenuation">getDistanceAttenuation</a><span class="signature">( inputs : <span class="param-type">Object</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  3081. <div class="method">
  3082. <div class="description">
  3083. <p>Represents a <code>discard</code> shader operation in TSL.</p>
  3084. </div>
  3085. <table class="params">
  3086. <tbody>
  3087. <tr>
  3088. <td class="name">
  3089. <strong translate="no">inputs</strong>
  3090. </td>
  3091. <td class="description last">
  3092. <p>The input parameter object.</p>
  3093. <table class="params">
  3094. <tbody>
  3095. <tr>
  3096. <td class="name">
  3097. <strong translate="no">lightDistance</strong>
  3098. </td>
  3099. <td class="description last">
  3100. <p>The distance of the light's position to the current fragment position.</p>
  3101. </td>
  3102. </tr>
  3103. <tr>
  3104. <td class="name">
  3105. <strong translate="no">cutoffDistance</strong>
  3106. </td>
  3107. <td class="description last">
  3108. <p>The light's cutoff distance.</p>
  3109. </td>
  3110. </tr>
  3111. <tr>
  3112. <td class="name">
  3113. <strong translate="no">decayExponent</strong>
  3114. </td>
  3115. <td class="description last">
  3116. <p>The light's decay exponent.</p>
  3117. </td>
  3118. </tr>
  3119. </tbody>
  3120. </table>
  3121. </td>
  3122. </tr>
  3123. </tbody>
  3124. </table>
  3125. <dl class="details">
  3126. <dt class="tag-returns"><strong>Returns:</strong> The distance falloff.</dt>
  3127. </dl>
  3128. </div>
  3129. <h3 class="name name-method" id="getElementsByTagName" translate="no">.<a href="#getElementsByTagName">getElementsByTagName</a><span class="signature">()</span> </h3>
  3130. <div class="method">
  3131. <div class="description">
  3132. <p>Utility functions for parsing</p>
  3133. </div>
  3134. </div>
  3135. <h3 class="name name-method" id="getEntry" translate="no">.<a href="#getEntry">getEntry</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span> )</span><span class="type-signature"> : Object</span> </h3>
  3136. <div class="method">
  3137. <div class="description">
  3138. <p>Resolves or creates a compiled DataArrayTexture containing encoded vertex morph targets data for WebGL2/WebGPU.</p>
  3139. </div>
  3140. <table class="params">
  3141. <tbody>
  3142. <tr>
  3143. <td class="name">
  3144. <strong translate="no">geometry</strong>
  3145. </td>
  3146. <td class="description last">
  3147. <p>The geometry to parse.</p>
  3148. </td>
  3149. </tr>
  3150. </tbody>
  3151. </table>
  3152. <dl class="details">
  3153. <dt class="tag-returns"><strong>Returns:</strong> The resolved morph targets texture data mapping entry.</dt>
  3154. </dl>
  3155. </div>
  3156. <h3 class="name name-method" id="getFilteredStack" translate="no">.<a href="#getFilteredStack">getFilteredStack</a><span class="signature">()</span> </h3>
  3157. <div class="method">
  3158. <div class="description">
  3159. <p>Parses the stack trace and filters out ignored files.
  3160. Returns an array with function name, file, line, and column.</p>
  3161. </div>
  3162. </div>
  3163. <h3 class="name name-method" id="getFloatLength" translate="no">.<a href="#getFloatLength">getFloatLength</a><span class="signature">( floatLength : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3164. <div class="method">
  3165. <div class="description">
  3166. <p>This function is usually called with the length in bytes of an array buffer.
  3167. It returns an padded value which ensure chunk size alignment according to STD140 layout.</p>
  3168. </div>
  3169. <table class="params">
  3170. <tbody>
  3171. <tr>
  3172. <td class="name">
  3173. <strong translate="no">floatLength</strong>
  3174. </td>
  3175. <td class="description last">
  3176. <p>The buffer length.</p>
  3177. </td>
  3178. </tr>
  3179. </tbody>
  3180. </table>
  3181. <dl class="details">
  3182. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  3183. </dl>
  3184. </div>
  3185. <h3 class="name name-method" id="getFormat" translate="no">.<a href="#getFormat">getFormat</a><span class="signature">( texture : <span class="param-type"><a href="Texture.html">Texture</a></span>, device : <span class="param-type">GPUDevice</span> )</span><span class="type-signature"> : string</span> </h3>
  3186. <div class="method">
  3187. <div class="description">
  3188. <p>Returns the GPU format for the given texture.</p>
  3189. </div>
  3190. <table class="params">
  3191. <tbody>
  3192. <tr>
  3193. <td class="name">
  3194. <strong translate="no">texture</strong>
  3195. </td>
  3196. <td class="description last">
  3197. <p>The texture.</p>
  3198. </td>
  3199. </tr>
  3200. <tr>
  3201. <td class="name">
  3202. <strong translate="no">device</strong>
  3203. </td>
  3204. <td class="description last">
  3205. <p>The GPU device which is used for feature detection.</p>
  3206. </td>
  3207. </tr>
  3208. </tbody>
  3209. </table>
  3210. <dl class="details">
  3211. <dt class="tag-returns"><strong>Returns:</strong> The GPU format.</dt>
  3212. </dl>
  3213. </div>
  3214. <h3 class="name name-method" id="getKeyframeOrder" translate="no">.<a href="#getKeyframeOrder">getKeyframeOrder</a><span class="signature">( times : <span class="param-type">Array.&lt;number></span> )</span><span class="type-signature"> : Array.&lt;number></span> </h3>
  3215. <div class="method">
  3216. <div class="description">
  3217. <p>Returns an array by which times and values can be sorted.</p>
  3218. </div>
  3219. <table class="params">
  3220. <tbody>
  3221. <tr>
  3222. <td class="name">
  3223. <strong translate="no">times</strong>
  3224. </td>
  3225. <td class="description last">
  3226. <p>The keyframe time values.</p>
  3227. </td>
  3228. </tr>
  3229. </tbody>
  3230. </table>
  3231. <dl class="details">
  3232. <dt class="tag-returns"><strong>Returns:</strong> The array.</dt>
  3233. </dl>
  3234. </div>
  3235. <h3 class="name name-method" id="getMembersLayout" translate="no">.<a href="#getMembersLayout">getMembersLayout</a><span class="signature">( members : <span class="param-type">Object.&lt;string, (string|Object)></span> )</span><span class="type-signature"> : Array.&lt;{name: string, type: string, atomic: boolean}></span> </h3>
  3236. <div class="method">
  3237. <div class="description">
  3238. <p>Generates a layout for struct members.
  3239. This function takes an object representing struct members and returns an array of member layouts.
  3240. Each member layout includes the member's name, type, and whether it is atomic.</p>
  3241. </div>
  3242. <table class="params">
  3243. <tbody>
  3244. <tr>
  3245. <td class="name">
  3246. <strong translate="no">members</strong>
  3247. </td>
  3248. <td class="description last">
  3249. <p>An object where keys are member names and values are either types (as strings) or objects with type and atomic properties.</p>
  3250. </td>
  3251. </tr>
  3252. </tbody>
  3253. </table>
  3254. <dl class="details">
  3255. <dt class="tag-returns"><strong>Returns:</strong> An array of member layouts.</dt>
  3256. </dl>
  3257. </div>
  3258. <h3 class="name name-method" id="getPreviousInstance" translate="no">.<a href="#getPreviousInstance">getPreviousInstance</a><span class="signature">( instancedMesh : <span class="param-type"><a href="InstancedMesh.html">InstancedMesh</a></span>, instanceMatrix : <span class="param-type"><a href="InstancedBufferAttribute.html">InstancedBufferAttribute</a> | <a href="StorageInstancedBufferAttribute.html">StorageInstancedBufferAttribute</a></span>, builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, count : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  3259. <div class="method">
  3260. <div class="description">
  3261. <p>Retrieves or initializes the previous frame instance matrix node for motion vectors.
  3262. Uses a WeakMap to cache previous frame instance matrices and their TSL nodes.</p>
  3263. </div>
  3264. <table class="params">
  3265. <tbody>
  3266. <tr>
  3267. <td class="name">
  3268. <strong translate="no">instancedMesh</strong>
  3269. </td>
  3270. <td class="description last">
  3271. <p>The instanced mesh object.</p>
  3272. </td>
  3273. </tr>
  3274. <tr>
  3275. <td class="name">
  3276. <strong translate="no">instanceMatrix</strong>
  3277. </td>
  3278. <td class="description last">
  3279. <p>The current matrix buffer attribute.</p>
  3280. </td>
  3281. </tr>
  3282. <tr>
  3283. <td class="name">
  3284. <strong translate="no">builder</strong>
  3285. </td>
  3286. <td class="description last">
  3287. <p>The current node builder.</p>
  3288. </td>
  3289. </tr>
  3290. <tr>
  3291. <td class="name">
  3292. <strong translate="no">count</strong>
  3293. </td>
  3294. <td class="description last">
  3295. <p>The instance count.</p>
  3296. </td>
  3297. </tr>
  3298. </tbody>
  3299. </table>
  3300. <dl class="details">
  3301. <dt class="tag-returns"><strong>Returns:</strong> The previous frame instance matrix node.</dt>
  3302. </dl>
  3303. </div>
  3304. <h3 class="name name-method" id="getPreviousSkinnedPosition" translate="no">.<a href="#getPreviousSkinnedPosition">getPreviousSkinnedPosition</a><span class="signature">( skinnedMesh : <span class="param-type"><a href="SkinnedMesh.html">SkinnedMesh</a></span>, bindMatrixNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, bindMatrixInverseNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, skinIndexNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;uvec4></span>, skinWeightNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  3305. <div class="method">
  3306. <div class="description">
  3307. <p>Retrieves or initializes the previous frame skinned position node for motion vectors.
  3308. Uses a WeakMap to cache previous frame bone matrix arrays and their TSL buffer nodes.</p>
  3309. </div>
  3310. <table class="params">
  3311. <tbody>
  3312. <tr>
  3313. <td class="name">
  3314. <strong translate="no">skinnedMesh</strong>
  3315. </td>
  3316. <td class="description last">
  3317. <p>The skinned mesh.</p>
  3318. </td>
  3319. </tr>
  3320. <tr>
  3321. <td class="name">
  3322. <strong translate="no">bindMatrixNode</strong>
  3323. </td>
  3324. <td class="description last">
  3325. <p>The bind matrix node.</p>
  3326. </td>
  3327. </tr>
  3328. <tr>
  3329. <td class="name">
  3330. <strong translate="no">bindMatrixInverseNode</strong>
  3331. </td>
  3332. <td class="description last">
  3333. <p>The inverse bind matrix node.</p>
  3334. </td>
  3335. </tr>
  3336. <tr>
  3337. <td class="name">
  3338. <strong translate="no">skinIndexNode</strong>
  3339. </td>
  3340. <td class="description last">
  3341. <p>The skin index attribute.</p>
  3342. </td>
  3343. </tr>
  3344. <tr>
  3345. <td class="name">
  3346. <strong translate="no">skinWeightNode</strong>
  3347. </td>
  3348. <td class="description last">
  3349. <p>The skin weight attribute.</p>
  3350. </td>
  3351. </tr>
  3352. </tbody>
  3353. </table>
  3354. <dl class="details">
  3355. <dt class="tag-returns"><strong>Returns:</strong> The skinned position from the previous frame.</dt>
  3356. </dl>
  3357. </div>
  3358. <h3 class="name name-method" id="getSkinnedNormalAndTangent" translate="no">.<a href="#getSkinnedNormalAndTangent">getSkinnedNormalAndTangent</a><span class="signature">( boneMatrices : <span class="param-type"><a href="Node.html">Node</a></span>, normal : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, tangent : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, bindMatrix : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, bindMatrixInverse : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, skinIndex : <span class="param-type"><a href="Node.html">Node</a>.&lt;uvec4></span>, skinWeight : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span> )</span><span class="type-signature"> : Object</span> </h3>
  3359. <div class="method">
  3360. <div class="description">
  3361. <p>Computes the skinned normal and tangent vectors by applying bone matrices based on weights.</p>
  3362. </div>
  3363. <table class="params">
  3364. <tbody>
  3365. <tr>
  3366. <td class="name">
  3367. <strong translate="no">boneMatrices</strong>
  3368. </td>
  3369. <td class="description last">
  3370. <p>The bone matrices buffer or storage node.</p>
  3371. </td>
  3372. </tr>
  3373. <tr>
  3374. <td class="name">
  3375. <strong translate="no">normal</strong>
  3376. </td>
  3377. <td class="description last">
  3378. <p>The normal vector in local space.</p>
  3379. </td>
  3380. </tr>
  3381. <tr>
  3382. <td class="name">
  3383. <strong translate="no">tangent</strong>
  3384. </td>
  3385. <td class="description last">
  3386. <p>The tangent vector in local space.</p>
  3387. </td>
  3388. </tr>
  3389. <tr>
  3390. <td class="name">
  3391. <strong translate="no">bindMatrix</strong>
  3392. </td>
  3393. <td class="description last">
  3394. <p>The bind matrix node.</p>
  3395. </td>
  3396. </tr>
  3397. <tr>
  3398. <td class="name">
  3399. <strong translate="no">bindMatrixInverse</strong>
  3400. </td>
  3401. <td class="description last">
  3402. <p>The inverse bind matrix node.</p>
  3403. </td>
  3404. </tr>
  3405. <tr>
  3406. <td class="name">
  3407. <strong translate="no">skinIndex</strong>
  3408. </td>
  3409. <td class="description last">
  3410. <p>The skin index attribute.</p>
  3411. </td>
  3412. </tr>
  3413. <tr>
  3414. <td class="name">
  3415. <strong translate="no">skinWeight</strong>
  3416. </td>
  3417. <td class="description last">
  3418. <p>The skin weight attribute.</p>
  3419. </td>
  3420. </tr>
  3421. </tbody>
  3422. </table>
  3423. <dl class="details">
  3424. <dt class="tag-returns"><strong>Returns:</strong> The skinned normal and tangent.</dt>
  3425. </dl>
  3426. </div>
  3427. <h3 class="name name-method" id="getSkinnedPosition" translate="no">.<a href="#getSkinnedPosition">getSkinnedPosition</a><span class="signature">( boneMatrices : <span class="param-type"><a href="Node.html">Node</a></span>, position : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, bindMatrix : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, bindMatrixInverse : <span class="param-type"><a href="Node.html">Node</a>.&lt;mat4></span>, skinIndex : <span class="param-type"><a href="Node.html">Node</a>.&lt;uvec4></span>, skinWeight : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  3428. <div class="method">
  3429. <div class="description">
  3430. <p>Computes the skinned position by applying bone matrices based on weights.</p>
  3431. </div>
  3432. <table class="params">
  3433. <tbody>
  3434. <tr>
  3435. <td class="name">
  3436. <strong translate="no">boneMatrices</strong>
  3437. </td>
  3438. <td class="description last">
  3439. <p>The bone matrices buffer or storage node.</p>
  3440. </td>
  3441. </tr>
  3442. <tr>
  3443. <td class="name">
  3444. <strong translate="no">position</strong>
  3445. </td>
  3446. <td class="description last">
  3447. <p>The vertex position to transform.</p>
  3448. </td>
  3449. </tr>
  3450. <tr>
  3451. <td class="name">
  3452. <strong translate="no">bindMatrix</strong>
  3453. </td>
  3454. <td class="description last">
  3455. <p>The bind matrix node.</p>
  3456. </td>
  3457. </tr>
  3458. <tr>
  3459. <td class="name">
  3460. <strong translate="no">bindMatrixInverse</strong>
  3461. </td>
  3462. <td class="description last">
  3463. <p>The inverse bind matrix node.</p>
  3464. </td>
  3465. </tr>
  3466. <tr>
  3467. <td class="name">
  3468. <strong translate="no">skinIndex</strong>
  3469. </td>
  3470. <td class="description last">
  3471. <p>The skin index attribute.</p>
  3472. </td>
  3473. </tr>
  3474. <tr>
  3475. <td class="name">
  3476. <strong translate="no">skinWeight</strong>
  3477. </td>
  3478. <td class="description last">
  3479. <p>The skin weight attribute.</p>
  3480. </td>
  3481. </tr>
  3482. </tbody>
  3483. </table>
  3484. <dl class="details">
  3485. <dt class="tag-returns"><strong>Returns:</strong> The skinned position.</dt>
  3486. </dl>
  3487. </div>
  3488. <h3 class="name name-method" id="getStrideLength" translate="no">.<a href="#getStrideLength">getStrideLength</a><span class="signature">( vectorLength : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3489. <div class="method">
  3490. <div class="description">
  3491. <p>This function is called with a vector length and ensure the computed length
  3492. matches a predefined stride (in this case <code>4</code>).</p>
  3493. </div>
  3494. <table class="params">
  3495. <tbody>
  3496. <tr>
  3497. <td class="name">
  3498. <strong translate="no">vectorLength</strong>
  3499. </td>
  3500. <td class="description last">
  3501. <p>The vector length.</p>
  3502. </td>
  3503. </tr>
  3504. </tbody>
  3505. </table>
  3506. <dl class="details">
  3507. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  3508. </dl>
  3509. </div>
  3510. <h3 class="name name-method" id="getTextureIndex" translate="no">.<a href="#getTextureIndex">getTextureIndex</a><span class="signature">( textures : <span class="param-type">Array.&lt;<a href="Texture.html">Texture</a>></span>, name : <span class="param-type">string</span> )</span><span class="type-signature"> : number</span> </h3>
  3511. <div class="method">
  3512. <div class="description">
  3513. <p>Returns the MRT texture index for the given name.</p>
  3514. </div>
  3515. <table class="params">
  3516. <tbody>
  3517. <tr>
  3518. <td class="name">
  3519. <strong translate="no">textures</strong>
  3520. </td>
  3521. <td class="description last">
  3522. <p>The textures of a MRT-configured render target.</p>
  3523. </td>
  3524. </tr>
  3525. <tr>
  3526. <td class="name">
  3527. <strong translate="no">name</strong>
  3528. </td>
  3529. <td class="description last">
  3530. <p>The name of the MRT texture which index is requested.</p>
  3531. </td>
  3532. </tr>
  3533. </tbody>
  3534. </table>
  3535. <dl class="details">
  3536. <dt class="tag-returns"><strong>Returns:</strong> The texture index.</dt>
  3537. </dl>
  3538. </div>
  3539. <h3 class="name name-method" id="getUniforms" translate="no">.<a href="#getUniforms">getUniforms</a><span class="signature">( splineTexture : <span class="param-type"><a href="DataTexture.html">DataTexture</a></span> )</span><span class="type-signature"> : Object</span> </h3>
  3540. <div class="method">
  3541. <div class="description">
  3542. <p>Create a new set of uniforms for describing the curve modifier.</p>
  3543. </div>
  3544. <table class="params">
  3545. <tbody>
  3546. <tr>
  3547. <td class="name">
  3548. <strong translate="no">splineTexture</strong>
  3549. </td>
  3550. <td class="description last">
  3551. <p>Which holds the curve description.</p>
  3552. </td>
  3553. </tr>
  3554. </tbody>
  3555. </table>
  3556. <dl class="details">
  3557. <dt class="tag-returns"><strong>Returns:</strong> The uniforms object to be used in the shader.</dt>
  3558. </dl>
  3559. </div>
  3560. <h3 class="name name-method" id="getVectorLength" translate="no">.<a href="#getVectorLength">getVectorLength</a><span class="signature">( count : <span class="param-type">number</span>, vectorLength : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3561. <div class="method">
  3562. <div class="description">
  3563. <p>Given the count of vectors and their vector length, this function computes
  3564. a total length in bytes with buffer alignment according to STD140 layout.</p>
  3565. </div>
  3566. <table class="params">
  3567. <tbody>
  3568. <tr>
  3569. <td class="name">
  3570. <strong translate="no">count</strong>
  3571. </td>
  3572. <td class="description last">
  3573. <p>The number of vectors.</p>
  3574. </td>
  3575. </tr>
  3576. <tr>
  3577. <td class="name">
  3578. <strong translate="no">vectorLength</strong>
  3579. </td>
  3580. <td class="description last">
  3581. <p>The vector length.</p>
  3582. <p>Default is <code>4</code>.</p>
  3583. </td>
  3584. </tr>
  3585. </tbody>
  3586. </table>
  3587. <dl class="details">
  3588. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  3589. </dl>
  3590. </div>
  3591. <h3 class="name name-method" id="getViewZNode" translate="no">.<a href="#getViewZNode">getViewZNode</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  3592. <div class="method">
  3593. <div class="description">
  3594. <p>Returns a node that represents the <code>z</code> coordinate in view space
  3595. for the current fragment. It's a different representation of the
  3596. default depth value.</p>
  3597. <p>This value can be part of a computation that defines how the fog
  3598. density increases when moving away from the camera.</p>
  3599. </div>
  3600. <table class="params">
  3601. <tbody>
  3602. <tr>
  3603. <td class="name">
  3604. <strong translate="no">builder</strong>
  3605. </td>
  3606. <td class="description last">
  3607. <p>The current node builder.</p>
  3608. </td>
  3609. </tr>
  3610. </tbody>
  3611. </table>
  3612. <dl class="details">
  3613. <dt class="tag-returns"><strong>Returns:</strong> The viewZ node.</dt>
  3614. </dl>
  3615. </div>
  3616. <h3 class="name name-method" id="inverseLerp" translate="no">.<a href="#inverseLerp">inverseLerp</a><span class="signature">( x : <span class="param-type">number</span>, y : <span class="param-type">number</span>, value : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3617. <div class="method">
  3618. <div class="description">
  3619. <p>Returns the percentage in the closed interval <code>[0, 1]</code> of the given value
  3620. between the start and end point.</p>
  3621. </div>
  3622. <table class="params">
  3623. <tbody>
  3624. <tr>
  3625. <td class="name">
  3626. <strong translate="no">x</strong>
  3627. </td>
  3628. <td class="description last">
  3629. <p>The start point</p>
  3630. </td>
  3631. </tr>
  3632. <tr>
  3633. <td class="name">
  3634. <strong translate="no">y</strong>
  3635. </td>
  3636. <td class="description last">
  3637. <p>The end point.</p>
  3638. </td>
  3639. </tr>
  3640. <tr>
  3641. <td class="name">
  3642. <strong translate="no">value</strong>
  3643. </td>
  3644. <td class="description last">
  3645. <p>A value between start and end.</p>
  3646. </td>
  3647. </tr>
  3648. </tbody>
  3649. </table>
  3650. <dl class="details">
  3651. <dt class="tag-returns"><strong>Returns:</strong> The interpolation factor.</dt>
  3652. </dl>
  3653. </div>
  3654. <h3 class="name name-method" id="isPowerOfTwo" translate="no">.<a href="#isPowerOfTwo">isPowerOfTwo</a><span class="signature">( value : <span class="param-type">number</span> )</span><span class="type-signature"> : boolean</span> </h3>
  3655. <div class="method">
  3656. <div class="description">
  3657. <p>Returns <code>true</code> if the given number is a power of two.</p>
  3658. </div>
  3659. <table class="params">
  3660. <tbody>
  3661. <tr>
  3662. <td class="name">
  3663. <strong translate="no">value</strong>
  3664. </td>
  3665. <td class="description last">
  3666. <p>The value to check.</p>
  3667. </td>
  3668. </tr>
  3669. </tbody>
  3670. </table>
  3671. <dl class="details">
  3672. <dt class="tag-returns"><strong>Returns:</strong> Whether the given number is a power of two or not.</dt>
  3673. </dl>
  3674. </div>
  3675. <h3 class="name name-method" id="isTypedArray" translate="no">.<a href="#isTypedArray">isTypedArray</a><span class="signature">( array : <span class="param-type"><a href="global.html#any">any</a></span> )</span><span class="type-signature"> : boolean</span> </h3>
  3676. <div class="method">
  3677. <div class="description">
  3678. <p>Returns <code>true</code> if the given object is a typed array.</p>
  3679. </div>
  3680. <table class="params">
  3681. <tbody>
  3682. <tr>
  3683. <td class="name">
  3684. <strong translate="no">array</strong>
  3685. </td>
  3686. <td class="description last">
  3687. <p>The object to check.</p>
  3688. </td>
  3689. </tr>
  3690. </tbody>
  3691. </table>
  3692. <dl class="details">
  3693. <dt class="tag-returns"><strong>Returns:</strong> Whether the given object is a typed array.</dt>
  3694. </dl>
  3695. </div>
  3696. <h3 class="name name-method" id="lerp" translate="no">.<a href="#lerp">lerp</a><span class="signature">( x : <span class="param-type">number</span>, y : <span class="param-type">number</span>, t : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3697. <div class="method">
  3698. <div class="description">
  3699. <p>Returns a value linearly interpolated from two known points based on the given interval -
  3700. <code>t = 0</code> will return <code>x</code> and <code>t = 1</code> will return <code>y</code>.</p>
  3701. </div>
  3702. <table class="params">
  3703. <tbody>
  3704. <tr>
  3705. <td class="name">
  3706. <strong translate="no">x</strong>
  3707. </td>
  3708. <td class="description last">
  3709. <p>The start point</p>
  3710. </td>
  3711. </tr>
  3712. <tr>
  3713. <td class="name">
  3714. <strong translate="no">y</strong>
  3715. </td>
  3716. <td class="description last">
  3717. <p>The end point.</p>
  3718. </td>
  3719. </tr>
  3720. <tr>
  3721. <td class="name">
  3722. <strong translate="no">t</strong>
  3723. </td>
  3724. <td class="description last">
  3725. <p>The interpolation factor in the closed interval <code>[0, 1]</code>.</p>
  3726. </td>
  3727. </tr>
  3728. </tbody>
  3729. </table>
  3730. <dl class="details">
  3731. <dt class="tag-returns"><strong>Returns:</strong> The interpolated value.</dt>
  3732. </dl>
  3733. </div>
  3734. <h3 class="name name-method" id="log" translate="no">.<a href="#log">log</a><span class="signature">( &hellip;params : <span class="param-type"><a href="global.html#any">any</a></span> )</span> </h3>
  3735. <div class="method">
  3736. <div class="description">
  3737. <p>Logs an informational message with the 'THREE.' prefix.</p>
  3738. <p>If a custom console function is set via setConsoleFunction(), it will be used
  3739. instead of the native console.log. The first parameter is treated as the
  3740. method name and is automatically prefixed with 'THREE.'.</p>
  3741. </div>
  3742. <table class="params">
  3743. <tbody>
  3744. <tr>
  3745. <td class="name">
  3746. <strong translate="no">params</strong>
  3747. </td>
  3748. <td class="description last">
  3749. <p>The message components. The first param is used as
  3750. the method name and prefixed with 'THREE.'.</p>
  3751. </td>
  3752. </tr>
  3753. </tbody>
  3754. </table>
  3755. </div>
  3756. <h3 class="name name-method" id="makeClipAdditive" translate="no">.<a href="#makeClipAdditive">makeClipAdditive</a><span class="signature">( targetClip : <span class="param-type"><a href="AnimationClip.html">AnimationClip</a></span>, referenceFrame : <span class="param-type">number</span>, referenceClip : <span class="param-type"><a href="AnimationClip.html">AnimationClip</a></span>, fps : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="AnimationClip.html">AnimationClip</a></span> </h3>
  3757. <div class="method">
  3758. <div class="description">
  3759. <p>Converts the keyframes of the given animation clip to an additive format.</p>
  3760. </div>
  3761. <table class="params">
  3762. <tbody>
  3763. <tr>
  3764. <td class="name">
  3765. <strong translate="no">targetClip</strong>
  3766. </td>
  3767. <td class="description last">
  3768. <p>The clip to make additive.</p>
  3769. </td>
  3770. </tr>
  3771. <tr>
  3772. <td class="name">
  3773. <strong translate="no">referenceFrame</strong>
  3774. </td>
  3775. <td class="description last">
  3776. <p>The reference frame.</p>
  3777. <p>Default is <code>0</code>.</p>
  3778. </td>
  3779. </tr>
  3780. <tr>
  3781. <td class="name">
  3782. <strong translate="no">referenceClip</strong>
  3783. </td>
  3784. <td class="description last">
  3785. <p>The reference clip.</p>
  3786. <p>Default is <code>targetClip</code>.</p>
  3787. </td>
  3788. </tr>
  3789. <tr>
  3790. <td class="name">
  3791. <strong translate="no">fps</strong>
  3792. </td>
  3793. <td class="description last">
  3794. <p>The FPS.</p>
  3795. <p>Default is <code>30</code>.</p>
  3796. </td>
  3797. </tr>
  3798. </tbody>
  3799. </table>
  3800. <dl class="details">
  3801. <dt class="tag-returns"><strong>Returns:</strong> The updated clip which is now additive.</dt>
  3802. </dl>
  3803. </div>
  3804. <h3 class="name name-method" id="mapLinear" translate="no">.<a href="#mapLinear">mapLinear</a><span class="signature">( x : <span class="param-type">number</span>, a1 : <span class="param-type">number</span>, a2 : <span class="param-type">number</span>, b1 : <span class="param-type">number</span>, b2 : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3805. <div class="method">
  3806. <div class="description">
  3807. <p>Performs a linear mapping from range <code>&lt;a1, a2&gt;</code> to range <code>&lt;b1, b2&gt;</code>
  3808. for the given value. <code>a2</code> must be greater than <code>a1</code>.</p>
  3809. </div>
  3810. <table class="params">
  3811. <tbody>
  3812. <tr>
  3813. <td class="name">
  3814. <strong translate="no">x</strong>
  3815. </td>
  3816. <td class="description last">
  3817. <p>The value to be mapped.</p>
  3818. </td>
  3819. </tr>
  3820. <tr>
  3821. <td class="name">
  3822. <strong translate="no">a1</strong>
  3823. </td>
  3824. <td class="description last">
  3825. <p>Minimum value for range A.</p>
  3826. </td>
  3827. </tr>
  3828. <tr>
  3829. <td class="name">
  3830. <strong translate="no">a2</strong>
  3831. </td>
  3832. <td class="description last">
  3833. <p>Maximum value for range A.</p>
  3834. </td>
  3835. </tr>
  3836. <tr>
  3837. <td class="name">
  3838. <strong translate="no">b1</strong>
  3839. </td>
  3840. <td class="description last">
  3841. <p>Minimum value for range B.</p>
  3842. </td>
  3843. </tr>
  3844. <tr>
  3845. <td class="name">
  3846. <strong translate="no">b2</strong>
  3847. </td>
  3848. <td class="description last">
  3849. <p>Maximum value for range B.</p>
  3850. </td>
  3851. </tr>
  3852. </tbody>
  3853. </table>
  3854. <dl class="details">
  3855. <dt class="tag-returns"><strong>Returns:</strong> The mapped value.</dt>
  3856. </dl>
  3857. </div>
  3858. <h3 class="name name-method" id="normalize" translate="no">.<a href="#normalize">normalize</a><span class="signature">( value : <span class="param-type">number</span>, array : <span class="param-type">TypedArray</span> )</span><span class="type-signature"> : number</span> </h3>
  3859. <div class="method">
  3860. <div class="description">
  3861. <p>Normalizes the given value according to the given typed array.</p>
  3862. </div>
  3863. <table class="params">
  3864. <tbody>
  3865. <tr>
  3866. <td class="name">
  3867. <strong translate="no">value</strong>
  3868. </td>
  3869. <td class="description last">
  3870. <p>The float value in the range <code>[0,1]</code> to normalize.</p>
  3871. </td>
  3872. </tr>
  3873. <tr>
  3874. <td class="name">
  3875. <strong translate="no">array</strong>
  3876. </td>
  3877. <td class="description last">
  3878. <p>The typed array that defines the data type of the value.</p>
  3879. </td>
  3880. </tr>
  3881. </tbody>
  3882. </table>
  3883. <dl class="details">
  3884. <dt class="tag-returns"><strong>Returns:</strong> The normalize value.</dt>
  3885. </dl>
  3886. </div>
  3887. <h3 class="name name-method" id="pickBuildingColor" translate="no">.<a href="#pickBuildingColor">pickBuildingColor</a><span class="signature">()</span> </h3>
  3888. <div class="method">
  3889. <div class="description">
  3890. <p>Picks one <a href="global.html#buildingPalette">buildingPalette</a> colour ( a hex number ) for a tower from its seed.</p>
  3891. </div>
  3892. </div>
  3893. <h3 class="name name-method" id="pingpong" translate="no">.<a href="#pingpong">pingpong</a><span class="signature">( x : <span class="param-type">number</span>, length : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3894. <div class="method">
  3895. <div class="description">
  3896. <p>Returns a value that alternates between <code>0</code> and the given <code>length</code> parameter.</p>
  3897. </div>
  3898. <table class="params">
  3899. <tbody>
  3900. <tr>
  3901. <td class="name">
  3902. <strong translate="no">x</strong>
  3903. </td>
  3904. <td class="description last">
  3905. <p>The value to pingpong.</p>
  3906. </td>
  3907. </tr>
  3908. <tr>
  3909. <td class="name">
  3910. <strong translate="no">length</strong>
  3911. </td>
  3912. <td class="description last">
  3913. <p>The positive value the function will pingpong to.</p>
  3914. <p>Default is <code>1</code>.</p>
  3915. </td>
  3916. </tr>
  3917. </tbody>
  3918. </table>
  3919. <dl class="details">
  3920. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  3921. </dl>
  3922. </div>
  3923. <h3 class="name name-method" id="radToDeg" translate="no">.<a href="#radToDeg">radToDeg</a><span class="signature">( radians : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3924. <div class="method">
  3925. <div class="description">
  3926. <p>Converts radians to degrees.</p>
  3927. </div>
  3928. <table class="params">
  3929. <tbody>
  3930. <tr>
  3931. <td class="name">
  3932. <strong translate="no">radians</strong>
  3933. </td>
  3934. <td class="description last">
  3935. <p>A value in radians.</p>
  3936. </td>
  3937. </tr>
  3938. </tbody>
  3939. </table>
  3940. <dl class="details">
  3941. <dt class="tag-returns"><strong>Returns:</strong> The converted value in degrees.</dt>
  3942. </dl>
  3943. </div>
  3944. <h3 class="name name-method" id="randFloat" translate="no">.<a href="#randFloat">randFloat</a><span class="signature">( low : <span class="param-type">number</span>, high : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3945. <div class="method">
  3946. <div class="description">
  3947. <p>Returns a random float from <code>&lt;low, high&gt;</code> interval.</p>
  3948. </div>
  3949. <table class="params">
  3950. <tbody>
  3951. <tr>
  3952. <td class="name">
  3953. <strong translate="no">low</strong>
  3954. </td>
  3955. <td class="description last">
  3956. <p>The lower value boundary.</p>
  3957. </td>
  3958. </tr>
  3959. <tr>
  3960. <td class="name">
  3961. <strong translate="no">high</strong>
  3962. </td>
  3963. <td class="description last">
  3964. <p>The upper value boundary</p>
  3965. </td>
  3966. </tr>
  3967. </tbody>
  3968. </table>
  3969. <dl class="details">
  3970. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  3971. </dl>
  3972. </div>
  3973. <h3 class="name name-method" id="randFloatSpread" translate="no">.<a href="#randFloatSpread">randFloatSpread</a><span class="signature">( range : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3974. <div class="method">
  3975. <div class="description">
  3976. <p>Returns a random integer from <code>&lt;-range/2, range/2&gt;</code> interval.</p>
  3977. </div>
  3978. <table class="params">
  3979. <tbody>
  3980. <tr>
  3981. <td class="name">
  3982. <strong translate="no">range</strong>
  3983. </td>
  3984. <td class="description last">
  3985. <p>Defines the value range.</p>
  3986. </td>
  3987. </tr>
  3988. </tbody>
  3989. </table>
  3990. <dl class="details">
  3991. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  3992. </dl>
  3993. </div>
  3994. <h3 class="name name-method" id="randInt" translate="no">.<a href="#randInt">randInt</a><span class="signature">( low : <span class="param-type">number</span>, high : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  3995. <div class="method">
  3996. <div class="description">
  3997. <p>Returns a random integer from <code>&lt;low, high&gt;</code> interval.</p>
  3998. </div>
  3999. <table class="params">
  4000. <tbody>
  4001. <tr>
  4002. <td class="name">
  4003. <strong translate="no">low</strong>
  4004. </td>
  4005. <td class="description last">
  4006. <p>The lower value boundary.</p>
  4007. </td>
  4008. </tr>
  4009. <tr>
  4010. <td class="name">
  4011. <strong translate="no">high</strong>
  4012. </td>
  4013. <td class="description last">
  4014. <p>The upper value boundary</p>
  4015. </td>
  4016. </tr>
  4017. </tbody>
  4018. </table>
  4019. <dl class="details">
  4020. <dt class="tag-returns"><strong>Returns:</strong> A random integer.</dt>
  4021. </dl>
  4022. </div>
  4023. <h3 class="name name-method" id="rgbToYCoCg" translate="no">.<a href="#rgbToYCoCg">rgbToYCoCg</a><span class="signature">( c : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  4024. <div class="method">
  4025. <table class="params">
  4026. <tbody>
  4027. <tr>
  4028. <td class="name">
  4029. <strong translate="no">c</strong>
  4030. </td>
  4031. <td class="description last">
  4032. </td>
  4033. </tr>
  4034. </tbody>
  4035. </table>
  4036. </div>
  4037. <h3 class="name name-method" id="sample" translate="no">.<a href="#sample">sample</a><span class="signature">( callback : <span class="param-type">function</span>, uv : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec2></span> )</span><span class="type-signature"> : <a href="SampleNode.html">SampleNode</a></span> </h3>
  4038. <div class="method">
  4039. <div class="description">
  4040. <p>Helper function to create a SampleNode wrapped as a node object.</p>
  4041. </div>
  4042. <table class="params">
  4043. <tbody>
  4044. <tr>
  4045. <td class="name">
  4046. <strong translate="no">callback</strong>
  4047. </td>
  4048. <td class="description last">
  4049. <p>The function to be called when sampling. Should accept a UV node and return a value.</p>
  4050. </td>
  4051. </tr>
  4052. <tr>
  4053. <td class="name">
  4054. <strong translate="no">uv</strong>
  4055. </td>
  4056. <td class="description last">
  4057. <p>The UV node to be used in the texture sampling.</p>
  4058. <p>Default is <code>null</code>.</p>
  4059. </td>
  4060. </tr>
  4061. </tbody>
  4062. </table>
  4063. <dl class="details">
  4064. <dt class="tag-returns"><strong>Returns:</strong> The created SampleNode instance wrapped as a node object.</dt>
  4065. </dl>
  4066. </div>
  4067. <h3 class="name name-method" id="seededRandom" translate="no">.<a href="#seededRandom">seededRandom</a><span class="signature">( s : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  4068. <div class="method">
  4069. <div class="description">
  4070. <p>Returns a deterministic pseudo-random float in the interval <code>[0, 1]</code>.</p>
  4071. </div>
  4072. <table class="params">
  4073. <tbody>
  4074. <tr>
  4075. <td class="name">
  4076. <strong translate="no">s</strong>
  4077. </td>
  4078. <td class="description last">
  4079. <p>The integer seed.</p>
  4080. </td>
  4081. </tr>
  4082. </tbody>
  4083. </table>
  4084. <dl class="details">
  4085. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  4086. </dl>
  4087. </div>
  4088. <h3 class="name name-method" id="setConsoleFunction" translate="no">.<a href="#setConsoleFunction">setConsoleFunction</a><span class="signature">( fn : <span class="param-type">function</span> )</span> </h3>
  4089. <div class="method">
  4090. <div class="description">
  4091. <p>Sets a custom function to handle console output.</p>
  4092. <p>This allows external code to intercept and handle console.log, console.warn,
  4093. and console.error calls made by three.js, which is useful for custom logging,
  4094. testing, or debugging workflows.</p>
  4095. </div>
  4096. <table class="params">
  4097. <tbody>
  4098. <tr>
  4099. <td class="name">
  4100. <strong translate="no">fn</strong>
  4101. </td>
  4102. <td class="description last">
  4103. <p>The function to handle console output. Should accept
  4104. (type, message, ...params) where type is 'log', 'warn', or 'error'.</p>
  4105. </td>
  4106. </tr>
  4107. </tbody>
  4108. </table>
  4109. </div>
  4110. <h3 class="name name-method" id="setProjectionFromUnion" translate="no">.<a href="#setProjectionFromUnion">setProjectionFromUnion</a><span class="signature">( camera : <span class="param-type"><a href="ArrayCamera.html">ArrayCamera</a></span>, cameraL : <span class="param-type"><a href="PerspectiveCamera.html">PerspectiveCamera</a></span>, cameraR : <span class="param-type"><a href="PerspectiveCamera.html">PerspectiveCamera</a></span> )</span> </h3>
  4111. <div class="method">
  4112. <div class="description">
  4113. <p>Assumes 2 cameras that are parallel and share an X-axis, and that
  4114. the cameras' projection and world matrices have already been set.
  4115. And that near and far planes are identical for both cameras.
  4116. Visualization of this technique: https://computergraphics.stackexchange.com/a/4765</p>
  4117. </div>
  4118. <table class="params">
  4119. <tbody>
  4120. <tr>
  4121. <td class="name">
  4122. <strong translate="no">camera</strong>
  4123. </td>
  4124. <td class="description last">
  4125. <p>The camera to update.</p>
  4126. </td>
  4127. </tr>
  4128. <tr>
  4129. <td class="name">
  4130. <strong translate="no">cameraL</strong>
  4131. </td>
  4132. <td class="description last">
  4133. <p>The left camera.</p>
  4134. </td>
  4135. </tr>
  4136. <tr>
  4137. <td class="name">
  4138. <strong translate="no">cameraR</strong>
  4139. </td>
  4140. <td class="description last">
  4141. <p>The right camera.</p>
  4142. </td>
  4143. </tr>
  4144. </tbody>
  4145. </table>
  4146. </div>
  4147. <h3 class="name name-method" id="setQuaternionFromProperEuler" translate="no">.<a href="#setQuaternionFromProperEuler">setQuaternionFromProperEuler</a><span class="signature">( q : <span class="param-type"><a href="Quaternion.html">Quaternion</a></span>, a : <span class="param-type">number</span>, b : <span class="param-type">number</span>, c : <span class="param-type">number</span>, order : <span class="param-type">'XYX' | 'XZX' | 'YXY' | 'YZY' | 'ZXZ' | 'ZYZ'</span> )</span> </h3>
  4148. <div class="method">
  4149. <div class="description">
  4150. <p>Sets the given quaternion from the <a href="https://en.wikipedia.org/wiki/Euler_angles" target="_blank" rel="noopener">Intrinsic Proper Euler Angles</a>
  4151. defined by the given angles and order.</p>
  4152. <p>Rotations are applied to the axes in the order specified by order:
  4153. rotation by angle <code>a</code> is applied first, then by angle <code>b</code>, then by angle <code>c</code>.</p>
  4154. </div>
  4155. <table class="params">
  4156. <tbody>
  4157. <tr>
  4158. <td class="name">
  4159. <strong translate="no">q</strong>
  4160. </td>
  4161. <td class="description last">
  4162. <p>The quaternion to set.</p>
  4163. </td>
  4164. </tr>
  4165. <tr>
  4166. <td class="name">
  4167. <strong translate="no">a</strong>
  4168. </td>
  4169. <td class="description last">
  4170. <p>The rotation applied to the first axis, in radians.</p>
  4171. </td>
  4172. </tr>
  4173. <tr>
  4174. <td class="name">
  4175. <strong translate="no">b</strong>
  4176. </td>
  4177. <td class="description last">
  4178. <p>The rotation applied to the second axis, in radians.</p>
  4179. </td>
  4180. </tr>
  4181. <tr>
  4182. <td class="name">
  4183. <strong translate="no">c</strong>
  4184. </td>
  4185. <td class="description last">
  4186. <p>The rotation applied to the third axis, in radians.</p>
  4187. </td>
  4188. </tr>
  4189. <tr>
  4190. <td class="name">
  4191. <strong translate="no">order</strong>
  4192. </td>
  4193. <td class="description last">
  4194. <p>A string specifying the axes order.</p>
  4195. </td>
  4196. </tr>
  4197. </tbody>
  4198. </table>
  4199. </div>
  4200. <h3 class="name name-method" id="setupWebGLXRFallback" translate="no">.<a href="#setupWebGLXRFallback">setupWebGLXRFallback</a><span class="signature">( renderer : <span class="param-type"><a href="WebGPURenderer.html">WebGPURenderer</a></span>, createFallbackRenderer : <span class="param-type">function</span>, onFallback : <span class="param-type">function</span> )</span> </h3>
  4201. <div class="method">
  4202. <div class="description">
  4203. <p>Sets up a construction-time WebGL fallback for WebGPU XR examples.</p>
  4204. </div>
  4205. <table class="params">
  4206. <tbody>
  4207. <tr>
  4208. <td class="name">
  4209. <strong translate="no">renderer</strong>
  4210. </td>
  4211. <td class="description last">
  4212. <p>The initial renderer.</p>
  4213. </td>
  4214. </tr>
  4215. <tr>
  4216. <td class="name">
  4217. <strong translate="no">createFallbackRenderer</strong>
  4218. </td>
  4219. <td class="description last">
  4220. <p>A function that returns a new renderer with a WebGL backend.</p>
  4221. </td>
  4222. </tr>
  4223. <tr>
  4224. <td class="name">
  4225. <strong translate="no">onFallback</strong>
  4226. </td>
  4227. <td class="description last">
  4228. <p>A function that installs the new renderer in the app.</p>
  4229. </td>
  4230. </tr>
  4231. </tbody>
  4232. </table>
  4233. </div>
  4234. <h3 class="name name-method" id="shadowRenderObjectFunction" translate="no">.<a href="#shadowRenderObjectFunction">shadowRenderObjectFunction</a><span class="signature">( object : <span class="param-type"><a href="Object3D.html">Object3D</a></span>, scene : <span class="param-type"><a href="Scene.html">Scene</a></span>, _camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, material : <span class="param-type"><a href="Material.html">Material</a></span>, group : <span class="param-type"><a href="Group.html">Group</a></span>, &hellip;params : <span class="param-type"><a href="global.html#any">any</a></span> )</span> </h3>
  4235. <div class="method">
  4236. <div class="description">
  4237. <p>Shadow Render Object Function.</p>
  4238. </div>
  4239. <table class="params">
  4240. <tbody>
  4241. <tr>
  4242. <td class="name">
  4243. <strong translate="no">object</strong>
  4244. </td>
  4245. <td class="description last">
  4246. <p>The 3D object to render.</p>
  4247. </td>
  4248. </tr>
  4249. <tr>
  4250. <td class="name">
  4251. <strong translate="no">scene</strong>
  4252. </td>
  4253. <td class="description last">
  4254. <p>The scene containing the object.</p>
  4255. </td>
  4256. </tr>
  4257. <tr>
  4258. <td class="name">
  4259. <strong translate="no">_camera</strong>
  4260. </td>
  4261. <td class="description last">
  4262. <p>The camera used for rendering.</p>
  4263. </td>
  4264. </tr>
  4265. <tr>
  4266. <td class="name">
  4267. <strong translate="no">geometry</strong>
  4268. </td>
  4269. <td class="description last">
  4270. <p>The geometry of the object.</p>
  4271. </td>
  4272. </tr>
  4273. <tr>
  4274. <td class="name">
  4275. <strong translate="no">material</strong>
  4276. </td>
  4277. <td class="description last">
  4278. <p>The material of the object.</p>
  4279. </td>
  4280. </tr>
  4281. <tr>
  4282. <td class="name">
  4283. <strong translate="no">group</strong>
  4284. </td>
  4285. <td class="description last">
  4286. <p>The group the object belongs to.</p>
  4287. </td>
  4288. </tr>
  4289. <tr>
  4290. <td class="name">
  4291. <strong translate="no">params</strong>
  4292. </td>
  4293. <td class="description last">
  4294. <p>Additional parameters for rendering.</p>
  4295. </td>
  4296. </tr>
  4297. </tbody>
  4298. </table>
  4299. </div>
  4300. <h3 class="name name-method" id="slab" translate="no">.<a href="#slab">slab</a><span class="signature">()</span> </h3>
  4301. <div class="method">
  4302. <div class="description">
  4303. <p>A thin horizontal cap over a footprint's bounding box at height <code>y</code>. Its
  4304. sides are pulled in behind the facade plane ( into the backing-wall shell )
  4305. so they never sit coplanar with the walls, spandrels or piers and z-fight.</p>
  4306. </div>
  4307. </div>
  4308. <h3 class="name name-method" id="smootherstep" translate="no">.<a href="#smootherstep">smootherstep</a><span class="signature">( x : <span class="param-type">number</span>, min : <span class="param-type">number</span>, max : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  4309. <div class="method">
  4310. <div class="description">
  4311. <p>A <a href="https://en.wikipedia.org/wiki/Smoothstep#Variations" target="_blank" rel="noopener">variation on smoothstep</a>
  4312. that has zero 1st and 2nd order derivatives at <code>x=0</code> and <code>x=1</code>.</p>
  4313. </div>
  4314. <table class="params">
  4315. <tbody>
  4316. <tr>
  4317. <td class="name">
  4318. <strong translate="no">x</strong>
  4319. </td>
  4320. <td class="description last">
  4321. <p>The value to evaluate based on its position between <code>min</code> and <code>max</code>.</p>
  4322. </td>
  4323. </tr>
  4324. <tr>
  4325. <td class="name">
  4326. <strong translate="no">min</strong>
  4327. </td>
  4328. <td class="description last">
  4329. <p>The min value. Any <code>x</code> value below <code>min</code> will be <code>0</code>. <code>min</code> must be lower than <code>max</code>.</p>
  4330. </td>
  4331. </tr>
  4332. <tr>
  4333. <td class="name">
  4334. <strong translate="no">max</strong>
  4335. </td>
  4336. <td class="description last">
  4337. <p>The max value. Any <code>x</code> value above <code>max</code> will be <code>1</code>. <code>max</code> must be greater than <code>min</code>.</p>
  4338. </td>
  4339. </tr>
  4340. </tbody>
  4341. </table>
  4342. <dl class="details">
  4343. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  4344. </dl>
  4345. </div>
  4346. <h3 class="name name-method" id="smoothstep" translate="no">.<a href="#smoothstep">smoothstep</a><span class="signature">( x : <span class="param-type">number</span>, min : <span class="param-type">number</span>, max : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  4347. <div class="method">
  4348. <div class="description">
  4349. <p>Returns a value in the range <code>[0,1]</code> that represents the percentage that <code>x</code> has
  4350. moved between <code>min</code> and <code>max</code>, but smoothed or slowed down the closer <code>x</code> is to
  4351. the <code>min</code> and <code>max</code>.</p>
  4352. <p>See <a href="http://en.wikipedia.org/wiki/Smoothstep" target="_blank" rel="noopener">Smoothstep</a> for more details.</p>
  4353. </div>
  4354. <table class="params">
  4355. <tbody>
  4356. <tr>
  4357. <td class="name">
  4358. <strong translate="no">x</strong>
  4359. </td>
  4360. <td class="description last">
  4361. <p>The value to evaluate based on its position between <code>min</code> and <code>max</code>.</p>
  4362. </td>
  4363. </tr>
  4364. <tr>
  4365. <td class="name">
  4366. <strong translate="no">min</strong>
  4367. </td>
  4368. <td class="description last">
  4369. <p>The min value. Any <code>x</code> value below <code>min</code> will be <code>0</code>. <code>min</code> must be lower than <code>max</code>.</p>
  4370. </td>
  4371. </tr>
  4372. <tr>
  4373. <td class="name">
  4374. <strong translate="no">max</strong>
  4375. </td>
  4376. <td class="description last">
  4377. <p>The max value. Any <code>x</code> value above <code>max</code> will be <code>1</code>. <code>max</code> must be greater than <code>min</code>.</p>
  4378. </td>
  4379. </tr>
  4380. </tbody>
  4381. </table>
  4382. <dl class="details">
  4383. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  4384. </dl>
  4385. </div>
  4386. <h3 class="name name-method" id="sortedArray" translate="no">.<a href="#sortedArray">sortedArray</a><span class="signature">( values : <span class="param-type">Array.&lt;number></span>, stride : <span class="param-type">number</span>, order : <span class="param-type">Array.&lt;number></span> )</span><span class="type-signature"> : Array.&lt;number></span> </h3>
  4387. <div class="method">
  4388. <div class="description">
  4389. <p>Sorts the given array by the previously computed order via <code>getKeyframeOrder()</code>.</p>
  4390. </div>
  4391. <table class="params">
  4392. <tbody>
  4393. <tr>
  4394. <td class="name">
  4395. <strong translate="no">values</strong>
  4396. </td>
  4397. <td class="description last">
  4398. <p>The values to sort.</p>
  4399. </td>
  4400. </tr>
  4401. <tr>
  4402. <td class="name">
  4403. <strong translate="no">stride</strong>
  4404. </td>
  4405. <td class="description last">
  4406. <p>The stride.</p>
  4407. </td>
  4408. </tr>
  4409. <tr>
  4410. <td class="name">
  4411. <strong translate="no">order</strong>
  4412. </td>
  4413. <td class="description last">
  4414. <p>The sort order.</p>
  4415. </td>
  4416. </tr>
  4417. </tbody>
  4418. </table>
  4419. <dl class="details">
  4420. <dt class="tag-returns"><strong>Returns:</strong> The sorted values.</dt>
  4421. </dl>
  4422. </div>
  4423. <h3 class="name name-method" id="subclip" translate="no">.<a href="#subclip">subclip</a><span class="signature">( sourceClip : <span class="param-type"><a href="AnimationClip.html">AnimationClip</a></span>, name : <span class="param-type">string</span>, startFrame : <span class="param-type">number</span>, endFrame : <span class="param-type">number</span>, fps : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="AnimationClip.html">AnimationClip</a></span> </h3>
  4424. <div class="method">
  4425. <div class="description">
  4426. <p>Creates a new clip, containing only the segment of the original clip between the given frames.</p>
  4427. </div>
  4428. <table class="params">
  4429. <tbody>
  4430. <tr>
  4431. <td class="name">
  4432. <strong translate="no">sourceClip</strong>
  4433. </td>
  4434. <td class="description last">
  4435. <p>The values to sort.</p>
  4436. </td>
  4437. </tr>
  4438. <tr>
  4439. <td class="name">
  4440. <strong translate="no">name</strong>
  4441. </td>
  4442. <td class="description last">
  4443. <p>The name of the clip.</p>
  4444. </td>
  4445. </tr>
  4446. <tr>
  4447. <td class="name">
  4448. <strong translate="no">startFrame</strong>
  4449. </td>
  4450. <td class="description last">
  4451. <p>The start frame.</p>
  4452. </td>
  4453. </tr>
  4454. <tr>
  4455. <td class="name">
  4456. <strong translate="no">endFrame</strong>
  4457. </td>
  4458. <td class="description last">
  4459. <p>The end frame.</p>
  4460. </td>
  4461. </tr>
  4462. <tr>
  4463. <td class="name">
  4464. <strong translate="no">fps</strong>
  4465. </td>
  4466. <td class="description last">
  4467. <p>The FPS.</p>
  4468. <p>Default is <code>30</code>.</p>
  4469. </td>
  4470. </tr>
  4471. </tbody>
  4472. </table>
  4473. <dl class="details">
  4474. <dt class="tag-returns"><strong>Returns:</strong> The new sub clip.</dt>
  4475. </dl>
  4476. </div>
  4477. <h3 class="name name-method" id="toHalfFloat" translate="no">.<a href="#toHalfFloat">toHalfFloat</a><span class="signature">( val : <span class="param-type">number</span> )</span><span class="type-signature"> : number</span> </h3>
  4478. <div class="method">
  4479. <div class="description">
  4480. <p>Returns a half precision floating point value (FP16) from the given single
  4481. precision floating point value (FP32).</p>
  4482. </div>
  4483. <table class="params">
  4484. <tbody>
  4485. <tr>
  4486. <td class="name">
  4487. <strong translate="no">val</strong>
  4488. </td>
  4489. <td class="description last">
  4490. <p>A single precision floating point value.</p>
  4491. </td>
  4492. </tr>
  4493. </tbody>
  4494. </table>
  4495. <dl class="details">
  4496. <dt class="tag-returns"><strong>Returns:</strong> The FP16 value.</dt>
  4497. </dl>
  4498. </div>
  4499. <h3 class="name name-method" id="updateCamera" translate="no">.<a href="#updateCamera">updateCamera</a><span class="signature">( camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, parent : <span class="param-type"><a href="Object3D.html">Object3D</a></span> )</span> </h3>
  4500. <div class="method">
  4501. <div class="description">
  4502. <p>Updates the world matrices for the given camera based on the parent 3D object.</p>
  4503. </div>
  4504. <table class="params">
  4505. <tbody>
  4506. <tr>
  4507. <td class="name">
  4508. <strong translate="no">camera</strong>
  4509. </td>
  4510. <td class="description last">
  4511. <p>The camera to update.</p>
  4512. </td>
  4513. </tr>
  4514. <tr>
  4515. <td class="name">
  4516. <strong translate="no">parent</strong>
  4517. </td>
  4518. <td class="description last">
  4519. <p>The parent 3D object.</p>
  4520. </td>
  4521. </tr>
  4522. </tbody>
  4523. </table>
  4524. </div>
  4525. <h3 class="name name-method" id="updateUserCamera" translate="no">.<a href="#updateUserCamera">updateUserCamera</a><span class="signature">( camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, cameraXR : <span class="param-type"><a href="ArrayCamera.html">ArrayCamera</a></span>, parent : <span class="param-type"><a href="Object3D.html">Object3D</a></span> )</span> </h3>
  4526. <div class="method">
  4527. <div class="description">
  4528. <p>Updates the given camera with the transformation of the XR camera and parent object.</p>
  4529. </div>
  4530. <table class="params">
  4531. <tbody>
  4532. <tr>
  4533. <td class="name">
  4534. <strong translate="no">camera</strong>
  4535. </td>
  4536. <td class="description last">
  4537. <p>The camera to update.</p>
  4538. </td>
  4539. </tr>
  4540. <tr>
  4541. <td class="name">
  4542. <strong translate="no">cameraXR</strong>
  4543. </td>
  4544. <td class="description last">
  4545. <p>The XR camera.</p>
  4546. </td>
  4547. </tr>
  4548. <tr>
  4549. <td class="name">
  4550. <strong translate="no">parent</strong>
  4551. </td>
  4552. <td class="description last">
  4553. <p>The parent 3D object.</p>
  4554. </td>
  4555. </tr>
  4556. </tbody>
  4557. </table>
  4558. </div>
  4559. <h3 class="name name-method" id="warn" translate="no">.<a href="#warn">warn</a><span class="signature">( &hellip;params : <span class="param-type"><a href="global.html#any">any</a></span> )</span> </h3>
  4560. <div class="method">
  4561. <div class="description">
  4562. <p>Logs a warning message with the 'THREE.' prefix.</p>
  4563. <p>If a custom console function is set via setConsoleFunction(), it will be used
  4564. instead of the native console.warn. The first parameter is treated as the
  4565. method name and is automatically prefixed with 'THREE.'.</p>
  4566. </div>
  4567. <table class="params">
  4568. <tbody>
  4569. <tr>
  4570. <td class="name">
  4571. <strong translate="no">params</strong>
  4572. </td>
  4573. <td class="description last">
  4574. <p>The message components. The first param is used as
  4575. the method name and prefixed with 'THREE.'.</p>
  4576. </td>
  4577. </tr>
  4578. </tbody>
  4579. </table>
  4580. </div>
  4581. <h3 class="name name-method" id="warnOnce" translate="no">.<a href="#warnOnce">warnOnce</a><span class="signature">( &hellip;params : <span class="param-type"><a href="global.html#any">any</a></span> )</span> </h3>
  4582. <div class="method">
  4583. <div class="description">
  4584. <p>Logs a warning message only once, preventing duplicate warnings.</p>
  4585. <p>This function maintains an internal cache of warning messages and will only
  4586. output each unique warning message once. Useful for warnings that may be
  4587. triggered repeatedly but should only be shown to the user once.</p>
  4588. </div>
  4589. <table class="params">
  4590. <tbody>
  4591. <tr>
  4592. <td class="name">
  4593. <strong translate="no">params</strong>
  4594. </td>
  4595. <td class="description last">
  4596. <p>The warning message components.</p>
  4597. </td>
  4598. </tr>
  4599. </tbody>
  4600. </table>
  4601. </div>
  4602. <h3 class="name name-method" id="ycocgToRGB" translate="no">.<a href="#ycocgToRGB">ycocgToRGB</a><span class="signature">( c : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  4603. <div class="method">
  4604. <table class="params">
  4605. <tbody>
  4606. <tr>
  4607. <td class="name">
  4608. <strong translate="no">c</strong>
  4609. </td>
  4610. <td class="description last">
  4611. </td>
  4612. </tr>
  4613. </tbody>
  4614. </table>
  4615. </div>
  4616. <h3 class="name name-method" id="yieldToMain" translate="no">.<a href="#yieldToMain">yieldToMain</a><span class="signature">()</span><span class="type-signature"> : Promise.&lt;void></span> </h3>
  4617. <div class="method">
  4618. <div class="description">
  4619. <p>Yields execution to the main thread to allow rendering and other tasks.
  4620. Uses scheduler.yield() when available (Chrome 115+), falls back to requestAnimationFrame.</p>
  4621. </div>
  4622. </div>
  4623. <h2 class="subsection-title">Type Definitions</h2>
  4624. <div class="member">
  4625. <h3 class="name" id="ConstantsInterpolationSamplingMode" translate="no">.<a href="#ConstantsInterpolationSamplingMode">ConstantsInterpolationSamplingMode</a> </h3>
  4626. <div class="description">
  4627. <p>Represents the different interpolation sampling modes.</p>
  4628. </div>
  4629. <table class="props">
  4630. <tbody>
  4631. <tr>
  4632. <td class="name">
  4633. <strong>NORMAL</strong>
  4634. <br>
  4635. <span class="param-type">string</span>
  4636. </td>
  4637. <td class="description last">
  4638. <p>Normal sampling mode.</p>
  4639. </td>
  4640. </tr>
  4641. <tr>
  4642. <td class="name">
  4643. <strong>CENTROID</strong>
  4644. <br>
  4645. <span class="param-type">string</span>
  4646. </td>
  4647. <td class="description last">
  4648. <p>Centroid sampling mode.</p>
  4649. </td>
  4650. </tr>
  4651. <tr>
  4652. <td class="name">
  4653. <strong>SAMPLE</strong>
  4654. <br>
  4655. <span class="param-type">string</span>
  4656. </td>
  4657. <td class="description last">
  4658. <p>Sample-specific sampling mode.</p>
  4659. </td>
  4660. </tr>
  4661. <tr>
  4662. <td class="name">
  4663. <strong>FIRST</strong>
  4664. <br>
  4665. <span class="param-type">string</span>
  4666. </td>
  4667. <td class="description last">
  4668. <p>Flat interpolation using the first vertex.</p>
  4669. </td>
  4670. </tr>
  4671. <tr>
  4672. <td class="name">
  4673. <strong>EITHER</strong>
  4674. <br>
  4675. <span class="param-type">string</span>
  4676. </td>
  4677. <td class="description last">
  4678. <p>Flat interpolation using either vertex.</p>
  4679. </td>
  4680. </tr>
  4681. </tbody>
  4682. </table>
  4683. </div>
  4684. <div class="member">
  4685. <h3 class="name" id="ConstantsInterpolationSamplingType" translate="no">.<a href="#ConstantsInterpolationSamplingType">ConstantsInterpolationSamplingType</a> </h3>
  4686. <div class="description">
  4687. <p>Represents the different interpolation sampling types.</p>
  4688. </div>
  4689. <table class="props">
  4690. <tbody>
  4691. <tr>
  4692. <td class="name">
  4693. <strong>PERSPECTIVE</strong>
  4694. <br>
  4695. <span class="param-type">string</span>
  4696. </td>
  4697. <td class="description last">
  4698. <p>Perspective-correct interpolation.</p>
  4699. </td>
  4700. </tr>
  4701. <tr>
  4702. <td class="name">
  4703. <strong>LINEAR</strong>
  4704. <br>
  4705. <span class="param-type">string</span>
  4706. </td>
  4707. <td class="description last">
  4708. <p>Linear interpolation.</p>
  4709. </td>
  4710. </tr>
  4711. <tr>
  4712. <td class="name">
  4713. <strong>FLAT</strong>
  4714. <br>
  4715. <span class="param-type">string</span>
  4716. </td>
  4717. <td class="description last">
  4718. <p>Flat interpolation.</p>
  4719. </td>
  4720. </tr>
  4721. </tbody>
  4722. </table>
  4723. </div>
  4724. <div class="member">
  4725. <h3 class="name" id="ConstantsMouse" translate="no">.<a href="#ConstantsMouse">ConstantsMouse</a> </h3>
  4726. <div class="description">
  4727. <p>This type represents mouse buttons and interaction types in context of controls.</p>
  4728. </div>
  4729. <table class="props">
  4730. <tbody>
  4731. <tr>
  4732. <td class="name">
  4733. <strong>MIDDLE</strong>
  4734. <br>
  4735. <span class="param-type">number</span>
  4736. </td>
  4737. <td class="description last">
  4738. <p>The left mouse button.</p>
  4739. </td>
  4740. </tr>
  4741. <tr>
  4742. <td class="name">
  4743. <strong>LEFT</strong>
  4744. <br>
  4745. <span class="param-type">number</span>
  4746. </td>
  4747. <td class="description last">
  4748. <p>The middle mouse button.</p>
  4749. </td>
  4750. </tr>
  4751. <tr>
  4752. <td class="name">
  4753. <strong>RIGHT</strong>
  4754. <br>
  4755. <span class="param-type">number</span>
  4756. </td>
  4757. <td class="description last">
  4758. <p>The right mouse button.</p>
  4759. </td>
  4760. </tr>
  4761. <tr>
  4762. <td class="name">
  4763. <strong>ROTATE</strong>
  4764. <br>
  4765. <span class="param-type">number</span>
  4766. </td>
  4767. <td class="description last">
  4768. <p>A rotate interaction.</p>
  4769. </td>
  4770. </tr>
  4771. <tr>
  4772. <td class="name">
  4773. <strong>DOLLY</strong>
  4774. <br>
  4775. <span class="param-type">number</span>
  4776. </td>
  4777. <td class="description last">
  4778. <p>A dolly interaction.</p>
  4779. </td>
  4780. </tr>
  4781. <tr>
  4782. <td class="name">
  4783. <strong>PAN</strong>
  4784. <br>
  4785. <span class="param-type">number</span>
  4786. </td>
  4787. <td class="description last">
  4788. <p>A pan interaction.</p>
  4789. </td>
  4790. </tr>
  4791. </tbody>
  4792. </table>
  4793. </div>
  4794. <div class="member">
  4795. <h3 class="name" id="ConstantsTimestampQuery" translate="no">.<a href="#ConstantsTimestampQuery">ConstantsTimestampQuery</a> </h3>
  4796. <div class="description">
  4797. <p>This type represents the different timestamp query types.</p>
  4798. </div>
  4799. <table class="props">
  4800. <tbody>
  4801. <tr>
  4802. <td class="name">
  4803. <strong>COMPUTE</strong>
  4804. <br>
  4805. <span class="param-type">string</span>
  4806. </td>
  4807. <td class="description last">
  4808. <p>A <code>compute</code> timestamp query.</p>
  4809. </td>
  4810. </tr>
  4811. <tr>
  4812. <td class="name">
  4813. <strong>RENDER</strong>
  4814. <br>
  4815. <span class="param-type">string</span>
  4816. </td>
  4817. <td class="description last">
  4818. <p>A <code>render</code> timestamp query.</p>
  4819. </td>
  4820. </tr>
  4821. </tbody>
  4822. </table>
  4823. </div>
  4824. <div class="member">
  4825. <h3 class="name" id="ConstantsTouch" translate="no">.<a href="#ConstantsTouch">ConstantsTouch</a> </h3>
  4826. <div class="description">
  4827. <p>This type represents touch interaction types in context of controls.</p>
  4828. </div>
  4829. <table class="props">
  4830. <tbody>
  4831. <tr>
  4832. <td class="name">
  4833. <strong>ROTATE</strong>
  4834. <br>
  4835. <span class="param-type">number</span>
  4836. </td>
  4837. <td class="description last">
  4838. <p>A rotate interaction.</p>
  4839. </td>
  4840. </tr>
  4841. <tr>
  4842. <td class="name">
  4843. <strong>PAN</strong>
  4844. <br>
  4845. <span class="param-type">number</span>
  4846. </td>
  4847. <td class="description last">
  4848. <p>A pan interaction.</p>
  4849. </td>
  4850. </tr>
  4851. <tr>
  4852. <td class="name">
  4853. <strong>DOLLY_PAN</strong>
  4854. <br>
  4855. <span class="param-type">number</span>
  4856. </td>
  4857. <td class="description last">
  4858. <p>The dolly-pan interaction.</p>
  4859. </td>
  4860. </tr>
  4861. <tr>
  4862. <td class="name">
  4863. <strong>DOLLY_ROTATE</strong>
  4864. <br>
  4865. <span class="param-type">number</span>
  4866. </td>
  4867. <td class="description last">
  4868. <p>A dolly-rotate interaction.</p>
  4869. </td>
  4870. </tr>
  4871. </tbody>
  4872. </table>
  4873. </div>
  4874. <div class="member">
  4875. <h3 class="name" id="DebugConfig" translate="no">.<a href="#DebugConfig">DebugConfig</a> </h3>
  4876. <div class="description">
  4877. <p>Debug configuration.</p>
  4878. </div>
  4879. <table class="props">
  4880. <tbody>
  4881. <tr>
  4882. <td class="name">
  4883. <strong>checkShaderErrors</strong>
  4884. <br>
  4885. <span class="param-type">boolean</span>
  4886. </td>
  4887. <td class="description last">
  4888. <p>Whether shader errors should be checked or not.</p>
  4889. </td>
  4890. </tr>
  4891. <tr>
  4892. <td class="name">
  4893. <strong>onShaderError</strong>
  4894. <br>
  4895. <span class="param-type">function</span>
  4896. </td>
  4897. <td class="description last">
  4898. <p>A callback function that is executed when a shader error happens. Only supported with WebGL 2 right now.</p>
  4899. </td>
  4900. </tr>
  4901. <tr>
  4902. <td class="name">
  4903. <strong>getShaderAsync</strong>
  4904. <br>
  4905. <span class="param-type">function</span>
  4906. </td>
  4907. <td class="description last">
  4908. <p>Allows the get the raw shader code for the given scene, camera and 3D object.</p>
  4909. </td>
  4910. </tr>
  4911. </tbody>
  4912. </table>
  4913. </div>
  4914. <div class="member">
  4915. <h3 class="name" id="DenoiseAlphaSource" translate="no">.<a href="#DenoiseAlphaSource">DenoiseAlphaSource</a> </h3>
  4916. </div>
  4917. <div class="member">
  4918. <h3 class="name" id="DenoiseMode" translate="no">.<a href="#DenoiseMode">DenoiseMode</a> </h3>
  4919. </div>
  4920. <div class="member">
  4921. <h3 class="name" id="RecurrentDenoiseNodeOptions" translate="no">.<a href="#RecurrentDenoiseNodeOptions">RecurrentDenoiseNodeOptions</a> </h3>
  4922. <table class="props">
  4923. <tbody>
  4924. <tr>
  4925. <td class="name">
  4926. <strong>depth</strong>
  4927. <br>
  4928. <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span>
  4929. </td>
  4930. <td class="description last">
  4931. <p>Scene depth buffer for view-space edge stopping.</p>
  4932. <p>Default is <code>null</code>.</p>
  4933. </td>
  4934. </tr>
  4935. <tr>
  4936. <td class="name">
  4937. <strong>normal</strong>
  4938. <br>
  4939. <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>
  4940. </td>
  4941. <td class="description last">
  4942. <p>View-space normals for geometric edge stopping.</p>
  4943. <p>Default is <code>null</code>.</p>
  4944. </td>
  4945. </tr>
  4946. <tr>
  4947. <td class="name">
  4948. <strong>metalRoughness</strong>
  4949. <br>
  4950. <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span>
  4951. </td>
  4952. <td class="description last">
  4953. <p>Roughness/metalness G-buffer for specular edge stopping.</p>
  4954. <p>Default is <code>null</code>.</p>
  4955. </td>
  4956. </tr>
  4957. <tr>
  4958. <td class="name">
  4959. <strong>diffuse</strong>
  4960. <br>
  4961. <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span>
  4962. </td>
  4963. <td class="description last">
  4964. <p>Scene base color (albedo) G-buffer for chromatic edge stopping.</p>
  4965. <p>Default is <code>null</code>.</p>
  4966. </td>
  4967. </tr>
  4968. <tr>
  4969. <td class="name">
  4970. <strong>raw</strong>
  4971. <br>
  4972. <span class="param-type"><a href="Node.html">Node</a>.&lt;vec4></span>
  4973. </td>
  4974. <td class="description last">
  4975. <p>Unfiltered input (e.g. raw SSR/SSGI) for secondary sampling and temporal blend.</p>
  4976. <p>Default is <code>null</code>.</p>
  4977. </td>
  4978. </tr>
  4979. <tr>
  4980. <td class="name">
  4981. <strong>mode</strong>
  4982. <br>
  4983. <span class="param-type"><a href="global.html#DenoiseMode">DenoiseMode</a></span>
  4984. </td>
  4985. <td class="description last">
  4986. <p>Denoising kernel type.</p>
  4987. <p>Default is <code>'diffuse'</code>.</p>
  4988. </td>
  4989. </tr>
  4990. <tr>
  4991. <td class="name">
  4992. <strong>accumulate</strong>
  4993. <br>
  4994. <span class="param-type">boolean</span>
  4995. </td>
  4996. <td class="description last">
  4997. <p>When <code>true</code>, temporally blend the spatially-denoised result
  4998. (Karis-style) and write frame weight to alpha for feedback loops. When <code>false</code>, only spatial filtering is applied.</p>
  4999. <p>Default is <code>true</code>.</p>
  5000. </td>
  5001. </tr>
  5002. </tbody>
  5003. </table>
  5004. </div>
  5005. <div class="member">
  5006. <h3 class="name" id="SSRNodeOptions" translate="no">.<a href="#SSRNodeOptions">SSRNodeOptions</a> </h3>
  5007. <table class="props">
  5008. <tbody>
  5009. <tr>
  5010. <td class="name">
  5011. <strong>stochastic</strong>
  5012. <br>
  5013. <span class="param-type">boolean</span>
  5014. </td>
  5015. <td class="description last">
  5016. <p>When <code>false</code>, traces a single mirror reflection and softens roughness with a blur pass (first-generation SSR). When <code>true</code>, varies the reflection direction per pixel with stochastic GGX rays (second-generation SSR); higher quality on rough/glossy surfaces but noisier, so it expects a temporal/spatial denoiser downstream.</p>
  5017. <p>Default is <code>false</code>.</p>
  5018. </td>
  5019. </tr>
  5020. <tr>
  5021. <td class="name">
  5022. <strong>metalnessNode</strong>
  5023. <br>
  5024. <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span>
  5025. </td>
  5026. <td class="description last">
  5027. <p>Per-pixel metalness. Drives GGX reflection sampling and, with <code>reflectNonMetals=false</code>, the non-metal early-out.</p>
  5028. <p>Default is <code>null</code>.</p>
  5029. </td>
  5030. </tr>
  5031. <tr>
  5032. <td class="name">
  5033. <strong>roughnessNode</strong>
  5034. <br>
  5035. <span class="param-type"><a href="Node.html">Node</a>.&lt;float></span>
  5036. </td>
  5037. <td class="description last">
  5038. <p>Per-pixel roughness. Drives GGX sampling and the blur mip selection.</p>
  5039. <p>Default is <code>null</code>.</p>
  5040. </td>
  5041. </tr>
  5042. <tr>
  5043. <td class="name">
  5044. <strong>reflectNonMetals</strong>
  5045. <br>
  5046. <span class="param-type">boolean</span>
  5047. </td>
  5048. <td class="description last">
  5049. <p>Only used when <code>stochastic=false</code>. When <code>false</code>, non-metallic surfaces are discarded for a noticeable performance gain; set <code>true</code> to also reflect dielectrics (e.g. marble, polished wood, plastic).</p>
  5050. <p>Default is <code>false</code>.</p>
  5051. </td>
  5052. </tr>
  5053. <tr>
  5054. <td class="name">
  5055. <strong>environmentNode</strong>
  5056. <br>
  5057. <span class="param-type"><a href="Texture.html">Texture</a></span>
  5058. </td>
  5059. <td class="description last">
  5060. <p>Equirectangular HDR environment map with CPU-side <code>image.data</code> (e.g. from RGBELoader). Not compatible with PMREM / <code>scene.environment</code> cubemaps.</p>
  5061. <p>Default is <code>null</code>.</p>
  5062. </td>
  5063. </tr>
  5064. <tr>
  5065. <td class="name">
  5066. <strong>envImportanceSampling</strong>
  5067. <br>
  5068. <span class="param-type">boolean</span>
  5069. </td>
  5070. <td class="description last">
  5071. <p>When <code>true</code>, precomputes env-luminance CDF tables and uses MIS for environment misses. Build-time only.</p>
  5072. <p>Default is <code>false</code>.</p>
  5073. </td>
  5074. </tr>
  5075. <tr>
  5076. <td class="name">
  5077. <strong>diffuseNode</strong>
  5078. <br>
  5079. <span class="param-type"><a href="Node.html">Node</a></span>
  5080. </td>
  5081. <td class="description last">
  5082. <p>Scene diffuse / base color. Defaults to <code>vec3(1)</code> in the shader when omitted.</p>
  5083. <p>Default is <code>null</code>.</p>
  5084. </td>
  5085. </tr>
  5086. <tr>
  5087. <td class="name">
  5088. <strong>binaryRefine</strong>
  5089. <br>
  5090. <span class="param-type">boolean</span>
  5091. </td>
  5092. <td class="description last">
  5093. <p>Sub-step binary-search refinement of detected hits. Compile-time constant (baked into the shader at construction).</p>
  5094. <p>Default is <code>false</code>.</p>
  5095. </td>
  5096. </tr>
  5097. <tr>
  5098. <td class="name">
  5099. <strong>camera</strong>
  5100. <br>
  5101. <span class="param-type"><a href="Camera.html">Camera</a></span>
  5102. </td>
  5103. <td class="description last">
  5104. <p>Camera the scene is rendered with. Inferred from the color pass when omitted.</p>
  5105. <p>Default is <code>null</code>.</p>
  5106. </td>
  5107. </tr>
  5108. </tbody>
  5109. </table>
  5110. </div>
  5111. <div class="member">
  5112. <h3 class="name" id="ShadowMapConfig" translate="no">.<a href="#ShadowMapConfig">ShadowMapConfig</a> </h3>
  5113. <div class="description">
  5114. <p>Shadow map configuration</p>
  5115. </div>
  5116. <table class="props">
  5117. <tbody>
  5118. <tr>
  5119. <td class="name">
  5120. <strong>enabled</strong>
  5121. <br>
  5122. <span class="param-type">boolean</span>
  5123. </td>
  5124. <td class="description last">
  5125. <p>Whether to globally enable shadows or not.</p>
  5126. </td>
  5127. </tr>
  5128. <tr>
  5129. <td class="name">
  5130. <strong>transmitted</strong>
  5131. <br>
  5132. <span class="param-type">boolean</span>
  5133. </td>
  5134. <td class="description last">
  5135. <p>Whether to enable light transmission through non-opaque materials.</p>
  5136. </td>
  5137. </tr>
  5138. <tr>
  5139. <td class="name">
  5140. <strong>type</strong>
  5141. <br>
  5142. <span class="param-type">number</span>
  5143. </td>
  5144. <td class="description last">
  5145. <p>The shadow map type.</p>
  5146. </td>
  5147. </tr>
  5148. </tbody>
  5149. </table>
  5150. </div>
  5151. <div class="member">
  5152. <h3 class="name" id="TemporalReprojectMode" translate="no">.<a href="#TemporalReprojectMode">TemporalReprojectMode</a> </h3>
  5153. </div>
  5154. <div class="member">
  5155. <h3 class="name" id="TemporalReprojectNodeOptions" translate="no">.<a href="#TemporalReprojectNodeOptions">TemporalReprojectNodeOptions</a> </h3>
  5156. <table class="props">
  5157. <tbody>
  5158. <tr>
  5159. <td class="name">
  5160. <strong>mode</strong>
  5161. <br>
  5162. <span class="param-type"><a href="global.html#TemporalReprojectMode">TemporalReprojectMode</a></span>
  5163. </td>
  5164. <td class="description last">
  5165. <p><code>diffuse</code> for SSGI/scene colour; <code>specular</code> for SSR reflections.</p>
  5166. <p>Default is <code>'diffuse'</code>.</p>
  5167. </td>
  5168. </tr>
  5169. <tr>
  5170. <td class="name">
  5171. <strong>hitPointReprojection</strong>
  5172. <br>
  5173. <span class="param-type">boolean</span>
  5174. </td>
  5175. <td class="description last">
  5176. <p>Parallax hit-point reprojection (specular mode only). Defaults to <code>true</code> in specular mode.</p>
  5177. </td>
  5178. </tr>
  5179. <tr>
  5180. <td class="name">
  5181. <strong>accumulate</strong>
  5182. <br>
  5183. <span class="param-type">boolean</span>
  5184. </td>
  5185. <td class="description last">
  5186. <p>When <code>true</code>, history is stored in this pass (classic temporal resolve). When <code>false</code>,
  5187. use <a href="TemporalReprojectNode.html#setHistoryTexture">TemporalReprojectNode#setHistoryTexture</a> to read history from another pass (e.g. denoise output).</p>
  5188. <p>Default is <code>false</code>.</p>
  5189. </td>
  5190. </tr>
  5191. </tbody>
  5192. </table>
  5193. </div>
  5194. <div class="member">
  5195. <h3 class="name" id="XRConfig" translate="no">.<a href="#XRConfig">XRConfig</a> </h3>
  5196. <div class="description">
  5197. <p>XR configuration.</p>
  5198. </div>
  5199. <table class="props">
  5200. <tbody>
  5201. <tr>
  5202. <td class="name">
  5203. <strong>enabled</strong>
  5204. <br>
  5205. <span class="param-type">boolean</span>
  5206. </td>
  5207. <td class="description last">
  5208. <p>Whether to globally enable XR or not.</p>
  5209. </td>
  5210. </tr>
  5211. </tbody>
  5212. </table>
  5213. </div>
  5214. <h3 class="name name-method" id="onAnimationCallback" translate="no">.<a href="#onAnimationCallback">onAnimationCallback</a><span class="signature">( time : <span class="param-type">DOMHighResTimeStamp</span>, frame : <span class="param-type">XRFrame</span> )</span> </h3>
  5215. <div class="method">
  5216. <div class="description">
  5217. <p>Animation loop parameter of <code>renderer.setAnimationLoop()</code>.</p>
  5218. </div>
  5219. <table class="params">
  5220. <tbody>
  5221. <tr>
  5222. <td class="name">
  5223. <strong translate="no">time</strong>
  5224. </td>
  5225. <td class="description last">
  5226. <p>A timestamp indicating the end time of the previous frame's rendering.</p>
  5227. </td>
  5228. </tr>
  5229. <tr>
  5230. <td class="name">
  5231. <strong translate="no">frame</strong>
  5232. </td>
  5233. <td class="description last">
  5234. <p>A reference to the current XR frame. Only relevant when using XR rendering.</p>
  5235. </td>
  5236. </tr>
  5237. </tbody>
  5238. </table>
  5239. </div>
  5240. <h3 class="name name-method" id="onErrorCallback" translate="no">.<a href="#onErrorCallback">onErrorCallback</a><span class="signature">( error : <span class="param-type">Error</span> )</span> </h3>
  5241. <div class="method">
  5242. <div class="description">
  5243. <p>Callback for onError in loaders.</p>
  5244. </div>
  5245. <table class="params">
  5246. <tbody>
  5247. <tr>
  5248. <td class="name">
  5249. <strong translate="no">error</strong>
  5250. </td>
  5251. <td class="description last">
  5252. <p>The error which occurred during the loading process.</p>
  5253. </td>
  5254. </tr>
  5255. </tbody>
  5256. </table>
  5257. </div>
  5258. <h3 class="name name-method" id="onProgressCallback" translate="no">.<a href="#onProgressCallback">onProgressCallback</a><span class="signature">( event : <span class="param-type">ProgressEvent</span> )</span> </h3>
  5259. <div class="method">
  5260. <div class="description">
  5261. <p>Callback for onProgress in loaders.</p>
  5262. </div>
  5263. <table class="params">
  5264. <tbody>
  5265. <tr>
  5266. <td class="name">
  5267. <strong translate="no">event</strong>
  5268. </td>
  5269. <td class="description last">
  5270. <p>An instance of <code>ProgressEvent</code> that represents the current loading status.</p>
  5271. </td>
  5272. </tr>
  5273. </tbody>
  5274. </table>
  5275. </div>
  5276. <h3 class="name name-method" id="renderObjectFunction" translate="no">.<a href="#renderObjectFunction">renderObjectFunction</a><span class="signature">( object : <span class="param-type"><a href="Object3D.html">Object3D</a></span>, scene : <span class="param-type"><a href="Scene.html">Scene</a></span>, camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, material : <span class="param-type"><a href="Material.html">Material</a></span>, group : <span class="param-type">Object</span>, lightsNode : <span class="param-type"><a href="LightsNode.html">LightsNode</a></span>, clippingContext : <span class="param-type"><a href="ClippingContext.html">ClippingContext</a></span>, passId : <span class="param-type">string</span> )</span> </h3>
  5277. <div class="method">
  5278. <div class="description">
  5279. <p>Callback for <a href="Renderer.html#setRenderObjectFunction">Renderer#setRenderObjectFunction</a>.</p>
  5280. </div>
  5281. <table class="params">
  5282. <tbody>
  5283. <tr>
  5284. <td class="name">
  5285. <strong translate="no">object</strong>
  5286. </td>
  5287. <td class="description last">
  5288. <p>The 3D object.</p>
  5289. </td>
  5290. </tr>
  5291. <tr>
  5292. <td class="name">
  5293. <strong translate="no">scene</strong>
  5294. </td>
  5295. <td class="description last">
  5296. <p>The scene the 3D object belongs to.</p>
  5297. </td>
  5298. </tr>
  5299. <tr>
  5300. <td class="name">
  5301. <strong translate="no">camera</strong>
  5302. </td>
  5303. <td class="description last">
  5304. <p>The camera the object should be rendered with.</p>
  5305. </td>
  5306. </tr>
  5307. <tr>
  5308. <td class="name">
  5309. <strong translate="no">geometry</strong>
  5310. </td>
  5311. <td class="description last">
  5312. <p>The object's geometry.</p>
  5313. </td>
  5314. </tr>
  5315. <tr>
  5316. <td class="name">
  5317. <strong translate="no">material</strong>
  5318. </td>
  5319. <td class="description last">
  5320. <p>The object's material.</p>
  5321. </td>
  5322. </tr>
  5323. <tr>
  5324. <td class="name">
  5325. <strong translate="no">group</strong>
  5326. </td>
  5327. <td class="description last">
  5328. <p>Only relevant for objects using multiple materials. This represents a group entry from the respective <code>BufferGeometry</code>.</p>
  5329. </td>
  5330. </tr>
  5331. <tr>
  5332. <td class="name">
  5333. <strong translate="no">lightsNode</strong>
  5334. </td>
  5335. <td class="description last">
  5336. <p>The current lights node.</p>
  5337. </td>
  5338. </tr>
  5339. <tr>
  5340. <td class="name">
  5341. <strong translate="no">clippingContext</strong>
  5342. </td>
  5343. <td class="description last">
  5344. <p>The clipping context.</p>
  5345. </td>
  5346. </tr>
  5347. <tr>
  5348. <td class="name">
  5349. <strong translate="no">passId</strong>
  5350. </td>
  5351. <td class="description last">
  5352. <p>An optional ID for identifying the pass.</p>
  5353. <p>Default is <code>null</code>.</p>
  5354. </td>
  5355. </tr>
  5356. </tbody>
  5357. </table>
  5358. </div>
  5359. <h3 class="name name-method" id="traverseCallback" translate="no">.<a href="#traverseCallback">traverseCallback</a><span class="signature">( node : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  5360. <div class="method">
  5361. <div class="description">
  5362. <p>Callback for <a href="Node.html#traverse">Node#traverse</a>.</p>
  5363. </div>
  5364. <table class="params">
  5365. <tbody>
  5366. <tr>
  5367. <td class="name">
  5368. <strong translate="no">node</strong>
  5369. </td>
  5370. <td class="description last">
  5371. <p>The current node.</p>
  5372. </td>
  5373. </tr>
  5374. </tbody>
  5375. </table>
  5376. </div>
  5377. </article>
  5378. </section>
  5379. <script src="../scripts/linenumber.js"></script>
  5380. <script src="../scripts/page.js"></script>
  5381. </body>
  5382. </html>
粤ICP备19079148号