1
0

global.html 170 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067
  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="AttachedBindMode" translate="no">.<a href="#AttachedBindMode">AttachedBindMode</a><span class="type-signature"> : string</span> <span class="type-signature">(constant) </span></h3>
  83. <div class="description">
  84. <p>The skinned mesh shares the same world space as the skeleton.</p>
  85. </div>
  86. </div>
  87. <div class="member">
  88. <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>
  89. <div class="description">
  90. <p>Only back faces are rendered.</p>
  91. </div>
  92. </div>
  93. <div class="member">
  94. <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>
  95. <div class="description">
  96. <p>The depth value is inverted (1.0 - z) for visualization purposes.</p>
  97. </div>
  98. </div>
  99. <div class="member">
  100. <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>
  101. <div class="description">
  102. <p>Gives unfiltered shadow maps - fastest, but lowest quality.</p>
  103. </div>
  104. </div>
  105. <div class="member">
  106. <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>
  107. <div class="description">
  108. <p>A byte data type for textures.</p>
  109. </div>
  110. </div>
  111. <div class="member">
  112. <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>
  113. <div class="description">
  114. <p>Cineon tone mapping.</p>
  115. </div>
  116. </div>
  117. <div class="member">
  118. <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>
  119. <div class="description">
  120. <p>The last pixel of the texture stretches to the edge of the mesh.</p>
  121. </div>
  122. </div>
  123. <div class="member">
  124. <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>
  125. <div class="description">
  126. <p>Compatibility flags for features that may not be supported across all platforms.</p>
  127. </div>
  128. </div>
  129. <div class="member">
  130. <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>
  131. <div class="description">
  132. <p>Multiplies all colors by a constant alpha value.</p>
  133. </div>
  134. </div>
  135. <div class="member">
  136. <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>
  137. <div class="description">
  138. <p>Multiplies all colors by a constant color.</p>
  139. </div>
  140. </div>
  141. <div class="member">
  142. <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>
  143. <div class="description">
  144. <p>Reflection mapping for cube textures.</p>
  145. </div>
  146. </div>
  147. <div class="member">
  148. <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>
  149. <div class="description">
  150. <p>Refraction mapping for cube textures.</p>
  151. </div>
  152. </div>
  153. <div class="member">
  154. <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>
  155. <div class="description">
  156. <p>Reflection mapping for PMREM textures.</p>
  157. </div>
  158. </div>
  159. <div class="member">
  160. <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>
  161. <div class="description">
  162. <p>Culls back faces.</p>
  163. </div>
  164. </div>
  165. <div class="member">
  166. <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>
  167. <div class="description">
  168. <p>Culls front faces.</p>
  169. </div>
  170. </div>
  171. <div class="member">
  172. <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>
  173. <div class="description">
  174. <p>Culls both front and back faces.</p>
  175. </div>
  176. </div>
  177. <div class="member">
  178. <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>
  179. <div class="description">
  180. <p>Disables face culling.</p>
  181. </div>
  182. </div>
  183. <div class="member">
  184. <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>
  185. <div class="description">
  186. <p>Represents custom blending.</p>
  187. </div>
  188. </div>
  189. <div class="member">
  190. <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>
  191. <div class="description">
  192. <p>Custom tone mapping.</p>
  193. <p>Expects a custom implementation by modifying shader code of the material's fragment shader.</p>
  194. </div>
  195. </div>
  196. <div class="member">
  197. <h3 class="name" id="DATA" translate="no">.<a href="#DATA">DATA</a> <span class="type-signature">(constant) </span></h3>
  198. <div class="description">
  199. <p>Precomputed DFG LUT for Image-Based Lighting
  200. Resolution: 16x16
  201. Samples: 4096 per texel
  202. Format: RG16F (2 half floats per texel: scale, bias)</p>
  203. </div>
  204. </div>
  205. <div class="member">
  206. <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>
  207. <div class="description">
  208. <p>Decrements the current stencil buffer value. Clamps to <code>0</code>.</p>
  209. </div>
  210. </div>
  211. <div class="member">
  212. <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>
  213. <div class="description">
  214. <p>Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable
  215. unsigned value when decrementing a stencil buffer value of <code>0</code>.</p>
  216. </div>
  217. </div>
  218. <div class="member">
  219. <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>
  220. <div class="description">
  221. <p>The global default loading manager.</p>
  222. </div>
  223. </div>
  224. <div class="member">
  225. <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>
  226. <div class="description">
  227. <p>Reads each element as a single depth value, converts it to floating point, and clamps to the range <code>[0,1]</code>.</p>
  228. </div>
  229. </div>
  230. <div class="member">
  231. <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>
  232. <div class="description">
  233. <p>Reads each element is a pair of depth and stencil values. The depth component of the pair is interpreted as
  234. in <code>DepthFormat</code>. The stencil component is interpreted based on the depth + stencil internal format.</p>
  235. </div>
  236. </div>
  237. <div class="member">
  238. <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>
  239. <div class="description">
  240. <p>The skinned mesh does not share the same world space as the skeleton.
  241. This is useful when a skeleton is shared across multiple skinned meshes.</p>
  242. </div>
  243. </div>
  244. <div class="member">
  245. <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>
  246. <div class="description">
  247. <p>Both front and back faces are rendered.</p>
  248. </div>
  249. </div>
  250. <div class="member">
  251. <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>
  252. <div class="description">
  253. <p>Multiplies all colors by the destination alpha value.</p>
  254. </div>
  255. </div>
  256. <div class="member">
  257. <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>
  258. <div class="description">
  259. <p>Multiplies all colors by the destination color.</p>
  260. </div>
  261. </div>
  262. <div class="member">
  263. <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>
  264. <div class="description">
  265. <p>The contents are intended to be respecified repeatedly by reading data from the 3D API, and used many times
  266. as the source for WebGL drawing and image specification commands.</p>
  267. </div>
  268. </div>
  269. <div class="member">
  270. <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>
  271. <div class="description">
  272. <p>The contents are intended to be respecified repeatedly by the application, and
  273. used many times as the source for drawing and image specification commands.</p>
  274. </div>
  275. </div>
  276. <div class="member">
  277. <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>
  278. <div class="description">
  279. <p>The contents are intended to be respecified repeatedly by reading data from the 3D API, and queried
  280. many times by the application.</p>
  281. </div>
  282. </div>
  283. <div class="member">
  284. <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>
  285. <div class="description">
  286. <p>Pass if the incoming value equals the texture value.</p>
  287. </div>
  288. </div>
  289. <div class="member">
  290. <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>
  291. <div class="description">
  292. <p>Pass if the incoming value equals the depth buffer value.</p>
  293. </div>
  294. </div>
  295. <div class="member">
  296. <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>
  297. <div class="description">
  298. <p>Will return true if the stencil reference value is equal to the current stencil value.</p>
  299. </div>
  300. </div>
  301. <div class="member">
  302. <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>
  303. <div class="description">
  304. <p>Reflection mapping for equirectangular textures.</p>
  305. </div>
  306. </div>
  307. <div class="member">
  308. <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>
  309. <div class="description">
  310. <p>Refraction mapping for equirectangular textures.</p>
  311. </div>
  312. </div>
  313. <div class="member">
  314. <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>
  315. <div class="description">
  316. <p>A float data type for textures.</p>
  317. </div>
  318. </div>
  319. <div class="member">
  320. <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>
  321. <div class="description">
  322. <p>Only front faces are rendered.</p>
  323. </div>
  324. </div>
  325. <div class="member">
  326. <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>
  327. <div class="description">
  328. <p>GLSL 1 shader code.</p>
  329. </div>
  330. </div>
  331. <div class="member">
  332. <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>
  333. <div class="description">
  334. <p>GLSL 3 shader code.</p>
  335. </div>
  336. </div>
  337. <div class="member">
  338. <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>
  339. <div class="description">
  340. <p>Pass if the incoming value is greater than the texture value.</p>
  341. </div>
  342. </div>
  343. <div class="member">
  344. <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>
  345. <div class="description">
  346. <p>Pass if the incoming value is greater than the depth buffer value.</p>
  347. </div>
  348. </div>
  349. <div class="member">
  350. <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>
  351. <div class="description">
  352. <p>Pass if the incoming value is greater than or equal to the texture value.</p>
  353. </div>
  354. </div>
  355. <div class="member">
  356. <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>
  357. <div class="description">
  358. <p>Pass if the incoming value is greater than or equal to the depth buffer value.</p>
  359. </div>
  360. </div>
  361. <div class="member">
  362. <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>
  363. <div class="description">
  364. <p>Will return true if the stencil reference value is greater than or equal to the current stencil value.</p>
  365. </div>
  366. </div>
  367. <div class="member">
  368. <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>
  369. <div class="description">
  370. <p>Will return true if the stencil reference value is greater than the current stencil value.</p>
  371. </div>
  372. </div>
  373. <div class="member">
  374. <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>
  375. <div class="description">
  376. <p>A half float data type for textures.</p>
  377. </div>
  378. </div>
  379. <div class="member">
  380. <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>
  381. <div class="description">
  382. <p>Increments the current stencil buffer value. Clamps to the maximum representable unsigned value.</p>
  383. </div>
  384. </div>
  385. <div class="member">
  386. <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>
  387. <div class="description">
  388. <p>Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing
  389. the maximum representable unsigned value.</p>
  390. </div>
  391. </div>
  392. <div class="member">
  393. <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>
  394. <div class="description">
  395. <p>An int data type for textures.</p>
  396. </div>
  397. </div>
  398. <div class="member">
  399. <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>
  400. <div class="description">
  401. <p>Discrete interpolation mode for keyframe tracks.</p>
  402. </div>
  403. </div>
  404. <div class="member">
  405. <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>
  406. <div class="description">
  407. <p>Linear interpolation mode for keyframe tracks.</p>
  408. </div>
  409. </div>
  410. <div class="member">
  411. <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>
  412. <div class="description">
  413. <p>Smooth interpolation mode for keyframe tracks.</p>
  414. </div>
  415. </div>
  416. <div class="member">
  417. <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>
  418. <div class="description">
  419. <p>Represents the different interpolation sampling modes.</p>
  420. </div>
  421. </div>
  422. <div class="member">
  423. <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>
  424. <div class="description">
  425. <p>Represents mouse buttons and interaction types in context of controls.</p>
  426. </div>
  427. </div>
  428. <div class="member">
  429. <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>
  430. <div class="description">
  431. <p>Inverts the current stencil buffer value bitwise.</p>
  432. </div>
  433. </div>
  434. <div class="member">
  435. <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>
  436. <div class="description">
  437. <p>The KHR_mesh_quantization extension allows these extra attribute component types</p>
  438. </div>
  439. <dl class="details">
  440. <dt class="tag-see">See:</dt>
  441. <dd class="tag-see">
  442. <ul>
  443. <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>
  444. </ul>
  445. </dd>
  446. </dl>
  447. </div>
  448. <div class="member">
  449. <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>
  450. <div class="description">
  451. <p>Keeps the current value.</p>
  452. </div>
  453. </div>
  454. <div class="member">
  455. <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>
  456. <div class="description">
  457. <p>Pass if the incoming value is less than the texture value.</p>
  458. </div>
  459. </div>
  460. <div class="member">
  461. <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>
  462. <div class="description">
  463. <p>Pass if the incoming value is less than the depth buffer value.</p>
  464. </div>
  465. </div>
  466. <div class="member">
  467. <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>
  468. <div class="description">
  469. <p>Pass if the incoming value is less than or equal to the texture value.</p>
  470. </div>
  471. </div>
  472. <div class="member">
  473. <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>
  474. <div class="description">
  475. <p>Pass if the incoming value is less than or equal to the depth buffer value.</p>
  476. </div>
  477. </div>
  478. <div class="member">
  479. <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>
  480. <div class="description">
  481. <p>Will return true if the stencil reference value is less than or equal to the current stencil value.</p>
  482. </div>
  483. </div>
  484. <div class="member">
  485. <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>
  486. <div class="description">
  487. <p>Will return true if the stencil reference value is less than the current stencil value.</p>
  488. </div>
  489. </div>
  490. <div class="member">
  491. <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>
  492. <div class="description">
  493. <p>Returns the weighted average of the four texture elements that are closest to the specified
  494. texture coordinates, and can include items wrapped or repeated from other parts of a texture,
  495. depending on the values of <code>wrapS</code> and <code>wrapT</code>, and on the exact mapping.</p>
  496. </div>
  497. </div>
  498. <div class="member">
  499. <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>
  500. <div class="description">
  501. <p>Chooses the two mipmaps that most closely match the size of the pixel being textured and uses
  502. the <code>LinearFilter</code> criterion to produce a texture value from each mipmap. The final texture value
  503. is a weighted average of those two values.</p>
  504. </div>
  505. </div>
  506. <div class="member">
  507. <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>
  508. <div class="description">
  509. <p>Chooses the mipmap that most closely matches the size of the pixel being textured and uses
  510. the <code>LinearFilter</code> criterion (a weighted average of the four texels that are closest to the
  511. center of the pixel) to produce a texture value.</p>
  512. </div>
  513. </div>
  514. <div class="member">
  515. <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>
  516. <div class="description">
  517. <p>sRGB-linear color space.</p>
  518. </div>
  519. </div>
  520. <div class="member">
  521. <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>
  522. <div class="description">
  523. <p>Linear tone mapping.</p>
  524. </div>
  525. </div>
  526. <div class="member">
  527. <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>
  528. <div class="description">
  529. <p>Linear transfer function.</p>
  530. </div>
  531. </div>
  532. <div class="member">
  533. <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>
  534. <div class="description">
  535. <p>Animations are played once.</p>
  536. </div>
  537. </div>
  538. <div class="member">
  539. <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>
  540. <div class="description">
  541. <p>Animations are played with a chosen number of repetitions, alternately playing forward
  542. and backward.</p>
  543. </div>
  544. </div>
  545. <div class="member">
  546. <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>
  547. <div class="description">
  548. <p>Animations are played with a chosen number of repetitions, each time jumping from
  549. the end of the clip directly to its beginning.</p>
  550. </div>
  551. </div>
  552. <div class="member">
  553. <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>
  554. <div class="description">
  555. <p>Represents mouse buttons and interaction types in context of controls.</p>
  556. </div>
  557. </div>
  558. <div class="member">
  559. <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>
  560. <div class="description">
  561. <p>A blend equation that uses the maximum of source and destination.</p>
  562. </div>
  563. </div>
  564. <div class="member">
  565. <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>
  566. <div class="description">
  567. <p>A blend equation that uses the minimum of source and destination.</p>
  568. </div>
  569. </div>
  570. <div class="member">
  571. <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>
  572. <div class="description">
  573. <p>The texture will repeats to infinity, mirroring on each repeat.</p>
  574. </div>
  575. </div>
  576. <div class="member">
  577. <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>
  578. <div class="description">
  579. <p>Uses reflectivity to blend between the two colors.</p>
  580. </div>
  581. </div>
  582. <div class="member">
  583. <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>
  584. <div class="description">
  585. <p>Represents multiply blending.</p>
  586. </div>
  587. </div>
  588. <div class="member">
  589. <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>
  590. <div class="description">
  591. <p>Multiplies the environment map color with the surface color.</p>
  592. </div>
  593. </div>
  594. <div class="member">
  595. <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>
  596. <div class="description">
  597. <p>Returns the value of the texture element that is nearest (in Manhattan distance)
  598. to the specified texture coordinates.</p>
  599. </div>
  600. </div>
  601. <div class="member">
  602. <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>
  603. <div class="description">
  604. <p>Chooses the two mipmaps that most closely match the size of the pixel being textured and
  605. uses the <code>NearestFilter</code> criterion to produce a texture value from each mipmap.
  606. The final texture value is a weighted average of those two values.</p>
  607. </div>
  608. </div>
  609. <div class="member">
  610. <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>
  611. <div class="description">
  612. <p>Chooses the mipmap that most closely matches the size of the pixel being textured
  613. and uses the <code>NearestFilter</code> criterion (the texel nearest to the center of the pixel)
  614. to produce a texture value.</p>
  615. </div>
  616. </div>
  617. <div class="member">
  618. <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>
  619. <div class="description">
  620. <p>Neutral tone mapping.</p>
  621. <p>Implementation based on the Khronos 3D Commerce Group standard tone mapping.</p>
  622. </div>
  623. </div>
  624. <div class="member">
  625. <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>
  626. <div class="description">
  627. <p>Never pass.</p>
  628. </div>
  629. </div>
  630. <div class="member">
  631. <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>
  632. <div class="description">
  633. <p>Never pass.</p>
  634. </div>
  635. </div>
  636. <div class="member">
  637. <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>
  638. <div class="description">
  639. <p>Will never return true.</p>
  640. </div>
  641. </div>
  642. <div class="member">
  643. <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>
  644. <div class="description">
  645. <p>No blending is performed which effectively disables
  646. alpha transparency.</p>
  647. </div>
  648. </div>
  649. <div class="member">
  650. <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>
  651. <div class="description">
  652. <p>No color space.</p>
  653. </div>
  654. </div>
  655. <div class="member">
  656. <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>
  657. <div class="description">
  658. <p>No normal map packing.</p>
  659. </div>
  660. </div>
  661. <div class="member">
  662. <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>
  663. <div class="description">
  664. <p>No tone mapping is applied.</p>
  665. </div>
  666. </div>
  667. <div class="member">
  668. <h3 class="name" id="NodeAccess" translate="no">.<a href="#NodeAccess">NodeAccess</a> <span class="type-signature">(constant) </span></h3>
  669. <div class="description">
  670. <p>Access types of a node. These are relevant for compute and storage usage.</p>
  671. </div>
  672. <table class="props">
  673. <tbody>
  674. <tr>
  675. <td class="name">
  676. <strong>READ_ONLY</strong>
  677. <br>
  678. <span class="param-type">string</span>
  679. </td>
  680. <td class="description last">
  681. <p>Read-only access</p>
  682. </td>
  683. </tr>
  684. <tr>
  685. <td class="name">
  686. <strong>WRITE_ONLY</strong>
  687. <br>
  688. <span class="param-type">string</span>
  689. </td>
  690. <td class="description last">
  691. <p>Write-only access.</p>
  692. </td>
  693. </tr>
  694. <tr>
  695. <td class="name">
  696. <strong>READ_WRITE</strong>
  697. <br>
  698. <span class="param-type">string</span>
  699. </td>
  700. <td class="description last">
  701. <p>Read and write access.</p>
  702. </td>
  703. </tr>
  704. </tbody>
  705. </table>
  706. </div>
  707. <div class="member">
  708. <h3 class="name" id="NodeShaderStage" translate="no">.<a href="#NodeShaderStage">NodeShaderStage</a> <span class="type-signature">(constant) </span></h3>
  709. <div class="description">
  710. <p>Possible shader stages.</p>
  711. </div>
  712. <table class="props">
  713. <tbody>
  714. <tr>
  715. <td class="name">
  716. <strong>VERTEX</strong>
  717. <br>
  718. <span class="param-type">string</span>
  719. </td>
  720. <td class="description last">
  721. <p>The vertex shader stage.</p>
  722. </td>
  723. </tr>
  724. <tr>
  725. <td class="name">
  726. <strong>FRAGMENT</strong>
  727. <br>
  728. <span class="param-type">string</span>
  729. </td>
  730. <td class="description last">
  731. <p>The fragment shader stage.</p>
  732. </td>
  733. </tr>
  734. </tbody>
  735. </table>
  736. </div>
  737. <div class="member">
  738. <h3 class="name" id="NodeType" translate="no">.<a href="#NodeType">NodeType</a> <span class="type-signature">(constant) </span></h3>
  739. <div class="description">
  740. <p>Data types of a node.</p>
  741. </div>
  742. <table class="props">
  743. <tbody>
  744. <tr>
  745. <td class="name">
  746. <strong>BOOLEAN</strong>
  747. <br>
  748. <span class="param-type">string</span>
  749. </td>
  750. <td class="description last">
  751. <p>Boolean type.</p>
  752. </td>
  753. </tr>
  754. <tr>
  755. <td class="name">
  756. <strong>INTEGER</strong>
  757. <br>
  758. <span class="param-type">string</span>
  759. </td>
  760. <td class="description last">
  761. <p>Integer type.</p>
  762. </td>
  763. </tr>
  764. <tr>
  765. <td class="name">
  766. <strong>FLOAT</strong>
  767. <br>
  768. <span class="param-type">string</span>
  769. </td>
  770. <td class="description last">
  771. <p>Float type.</p>
  772. </td>
  773. </tr>
  774. <tr>
  775. <td class="name">
  776. <strong>VECTOR2</strong>
  777. <br>
  778. <span class="param-type">string</span>
  779. </td>
  780. <td class="description last">
  781. <p>Two-dimensional vector type.</p>
  782. </td>
  783. </tr>
  784. <tr>
  785. <td class="name">
  786. <strong>VECTOR3</strong>
  787. <br>
  788. <span class="param-type">string</span>
  789. </td>
  790. <td class="description last">
  791. <p>Three-dimensional vector type.</p>
  792. </td>
  793. </tr>
  794. <tr>
  795. <td class="name">
  796. <strong>VECTOR4</strong>
  797. <br>
  798. <span class="param-type">string</span>
  799. </td>
  800. <td class="description last">
  801. <p>Four-dimensional vector type.</p>
  802. </td>
  803. </tr>
  804. <tr>
  805. <td class="name">
  806. <strong>MATRIX2</strong>
  807. <br>
  808. <span class="param-type">string</span>
  809. </td>
  810. <td class="description last">
  811. <p>2x2 matrix type.</p>
  812. </td>
  813. </tr>
  814. <tr>
  815. <td class="name">
  816. <strong>MATRIX3</strong>
  817. <br>
  818. <span class="param-type">string</span>
  819. </td>
  820. <td class="description last">
  821. <p>3x3 matrix type.</p>
  822. </td>
  823. </tr>
  824. <tr>
  825. <td class="name">
  826. <strong>MATRIX4</strong>
  827. <br>
  828. <span class="param-type">string</span>
  829. </td>
  830. <td class="description last">
  831. <p>4x4 matrix type.</p>
  832. </td>
  833. </tr>
  834. </tbody>
  835. </table>
  836. </div>
  837. <div class="member">
  838. <h3 class="name" id="NodeUpdateType" translate="no">.<a href="#NodeUpdateType">NodeUpdateType</a> <span class="type-signature">(constant) </span></h3>
  839. <div class="description">
  840. <p>Update types of a node.</p>
  841. </div>
  842. <table class="props">
  843. <tbody>
  844. <tr>
  845. <td class="name">
  846. <strong>NONE</strong>
  847. <br>
  848. <span class="param-type">string</span>
  849. </td>
  850. <td class="description last">
  851. <p>The update method is not executed.</p>
  852. </td>
  853. </tr>
  854. <tr>
  855. <td class="name">
  856. <strong>FRAME</strong>
  857. <br>
  858. <span class="param-type">string</span>
  859. </td>
  860. <td class="description last">
  861. <p>The update method is executed per frame.</p>
  862. </td>
  863. </tr>
  864. <tr>
  865. <td class="name">
  866. <strong>RENDER</strong>
  867. <br>
  868. <span class="param-type">string</span>
  869. </td>
  870. <td class="description last">
  871. <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>
  872. </td>
  873. </tr>
  874. <tr>
  875. <td class="name">
  876. <strong>OBJECT</strong>
  877. <br>
  878. <span class="param-type">string</span>
  879. </td>
  880. <td class="description last">
  881. <p>The update method is executed per <a href="Object3D.html">Object3D</a> that uses the node for rendering.</p>
  882. </td>
  883. </tr>
  884. </tbody>
  885. </table>
  886. </div>
  887. <div class="member">
  888. <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>
  889. <div class="description">
  890. <p>Default animation blend mode.</p>
  891. </div>
  892. </div>
  893. <div class="member">
  894. <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>
  895. <div class="description">
  896. <p>The default blending.</p>
  897. </div>
  898. </div>
  899. <div class="member">
  900. <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>
  901. <div class="description">
  902. <p>Normal GA packing.</p>
  903. </div>
  904. </div>
  905. <div class="member">
  906. <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>
  907. <div class="description">
  908. <p>Normal RG packing.</p>
  909. </div>
  910. </div>
  911. <div class="member">
  912. <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>
  913. <div class="description">
  914. <p>Pass if the incoming value is not equal to the texture value.</p>
  915. </div>
  916. </div>
  917. <div class="member">
  918. <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>
  919. <div class="description">
  920. <p>Pass if the incoming value is not equal to the depth buffer value.</p>
  921. </div>
  922. </div>
  923. <div class="member">
  924. <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>
  925. <div class="description">
  926. <p>Will return true if the stencil reference value is not equal to the current stencil value.</p>
  927. </div>
  928. </div>
  929. <div class="member">
  930. <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>
  931. <div class="description">
  932. <p>Normal information is relative to the object orientation.</p>
  933. </div>
  934. </div>
  935. <div class="member">
  936. <h3 class="name" id="OnBeforeMaterialUpdate" translate="no">.<a href="#OnBeforeMaterialUpdate">OnBeforeMaterialUpdate</a> <span class="type-signature">(constant) </span></h3>
  937. <div class="description">
  938. <p>Creates an event that triggers a function before the material is updated.</p>
  939. <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>
  940. </div>
  941. </div>
  942. <div class="member">
  943. <h3 class="name" id="OnBeforeObjectUpdate" translate="no">.<a href="#OnBeforeObjectUpdate">OnBeforeObjectUpdate</a> <span class="type-signature">(constant) </span></h3>
  944. <div class="description">
  945. <p>Creates an event that triggers a function before an object (Mesh|Sprite) is updated.</p>
  946. <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>
  947. </div>
  948. </div>
  949. <div class="member">
  950. <h3 class="name" id="OnMaterialUpdate" translate="no">.<a href="#OnMaterialUpdate">OnMaterialUpdate</a> <span class="type-signature">(constant) </span></h3>
  951. <div class="description">
  952. <p>Creates an event that triggers a function when the first object that uses the material is rendered.</p>
  953. <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>
  954. </div>
  955. </div>
  956. <div class="member">
  957. <h3 class="name" id="OnObjectUpdate" translate="no">.<a href="#OnObjectUpdate">OnObjectUpdate</a> <span class="type-signature">(constant) </span></h3>
  958. <div class="description">
  959. <p>Creates an event that triggers a function every time an object (Mesh|Sprite) is rendered.</p>
  960. <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>
  961. </div>
  962. </div>
  963. <div class="member">
  964. <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>
  965. <div class="description">
  966. <p>Multiplies all colors by <code>1</code>.</p>
  967. </div>
  968. </div>
  969. <div class="member">
  970. <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>
  971. <div class="description">
  972. <p>Multiplies all colors by 1 minus a constant alpha value.</p>
  973. </div>
  974. </div>
  975. <div class="member">
  976. <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>
  977. <div class="description">
  978. <p>Multiplies all colors by <code>1</code> minus a constant color.</p>
  979. </div>
  980. </div>
  981. <div class="member">
  982. <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>
  983. <div class="description">
  984. <p>Multiplies all colors by <code>1</code> minus the destination alpha value.</p>
  985. </div>
  986. </div>
  987. <div class="member">
  988. <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>
  989. <div class="description">
  990. <p>Multiplies all colors by <code>1</code> minus each destination color.</p>
  991. </div>
  992. </div>
  993. <div class="member">
  994. <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>
  995. <div class="description">
  996. <p>Multiplies all colors by 1 minus the source alpha value.</p>
  997. </div>
  998. </div>
  999. <div class="member">
  1000. <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>
  1001. <div class="description">
  1002. <p>Multiplies all colors by <code>1</code> minus each source color.</p>
  1003. </div>
  1004. </div>
  1005. <div class="member">
  1006. <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>
  1007. <div class="description">
  1008. <p>Filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm.</p>
  1009. </div>
  1010. </div>
  1011. <div class="member">
  1012. <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>
  1013. <div class="description">
  1014. <p>Filters shadow maps using the Percentage-Closer Filtering (PCF) algorithm with
  1015. better soft shadows especially when using low-resolution shadow maps.</p>
  1016. </div>
  1017. </div>
  1018. <div class="member">
  1019. <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>
  1020. <div class="description">
  1021. <p>EAC R11 UNORM format.</p>
  1022. </div>
  1023. </div>
  1024. <div class="member">
  1025. <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>
  1026. <div class="description">
  1027. <p>RGTC2 Red Green format.</p>
  1028. </div>
  1029. </div>
  1030. <div class="member">
  1031. <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>
  1032. <div class="description">
  1033. <p>RGTC1 Red format.</p>
  1034. </div>
  1035. </div>
  1036. <div class="member">
  1037. <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>
  1038. <div class="description">
  1039. <p>EAC RG11 UNORM format.</p>
  1040. </div>
  1041. </div>
  1042. <div class="member">
  1043. <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>
  1044. <div class="description">
  1045. <p>The depth value is packed into 32 bit RGBA.</p>
  1046. </div>
  1047. </div>
  1048. <div class="member">
  1049. <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>
  1050. <div class="description">
  1051. <p>Reads the red, green, blue and alpha components.</p>
  1052. </div>
  1053. </div>
  1054. <div class="member">
  1055. <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>
  1056. <div class="description">
  1057. <p>Reads the red, green, blue and alpha components. The texels are read as integers instead of floating point.</p>
  1058. </div>
  1059. </div>
  1060. <div class="member">
  1061. <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>
  1062. <div class="description">
  1063. <p>ASTC RGBA 10x10 format.</p>
  1064. </div>
  1065. </div>
  1066. <div class="member">
  1067. <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>
  1068. <div class="description">
  1069. <p>ASTC RGBA 10x5 format.</p>
  1070. </div>
  1071. </div>
  1072. <div class="member">
  1073. <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>
  1074. <div class="description">
  1075. <p>ASTC RGBA 10x6 format.</p>
  1076. </div>
  1077. </div>
  1078. <div class="member">
  1079. <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>
  1080. <div class="description">
  1081. <p>ASTC RGBA 10x8 format.</p>
  1082. </div>
  1083. </div>
  1084. <div class="member">
  1085. <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>
  1086. <div class="description">
  1087. <p>ASTC RGBA 12x10 format.</p>
  1088. </div>
  1089. </div>
  1090. <div class="member">
  1091. <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>
  1092. <div class="description">
  1093. <p>ASTC RGBA 12x12 format.</p>
  1094. </div>
  1095. </div>
  1096. <div class="member">
  1097. <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>
  1098. <div class="description">
  1099. <p>ASTC RGBA 4x4 format.</p>
  1100. </div>
  1101. </div>
  1102. <div class="member">
  1103. <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>
  1104. <div class="description">
  1105. <p>ASTC RGBA 5x4 format.</p>
  1106. </div>
  1107. </div>
  1108. <div class="member">
  1109. <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>
  1110. <div class="description">
  1111. <p>ASTC RGBA 5x5 format.</p>
  1112. </div>
  1113. </div>
  1114. <div class="member">
  1115. <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>
  1116. <div class="description">
  1117. <p>ASTC RGBA 6x5 format.</p>
  1118. </div>
  1119. </div>
  1120. <div class="member">
  1121. <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>
  1122. <div class="description">
  1123. <p>ASTC RGBA 6x6 format.</p>
  1124. </div>
  1125. </div>
  1126. <div class="member">
  1127. <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>
  1128. <div class="description">
  1129. <p>ASTC RGBA 8x5 format.</p>
  1130. </div>
  1131. </div>
  1132. <div class="member">
  1133. <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>
  1134. <div class="description">
  1135. <p>ASTC RGBA 8x6 format.</p>
  1136. </div>
  1137. </div>
  1138. <div class="member">
  1139. <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>
  1140. <div class="description">
  1141. <p>ASTC RGBA 8x8 format.</p>
  1142. </div>
  1143. </div>
  1144. <div class="member">
  1145. <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>
  1146. <div class="description">
  1147. <p>BPTC RGBA format.</p>
  1148. </div>
  1149. </div>
  1150. <div class="member">
  1151. <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>
  1152. <div class="description">
  1153. <p>ETC2 RGBA format.</p>
  1154. </div>
  1155. </div>
  1156. <div class="member">
  1157. <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>
  1158. <div class="description">
  1159. <p>PVRTC RGBA compression in 2-bit mode. One block for each 8×4 pixels.</p>
  1160. </div>
  1161. </div>
  1162. <div class="member">
  1163. <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>
  1164. <div class="description">
  1165. <p>PVRTC RGBA compression in 4-bit mode. One block for each 4×4 pixels.</p>
  1166. </div>
  1167. </div>
  1168. <div class="member">
  1169. <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>
  1170. <div class="description">
  1171. <p>A DXT1-compressed image in an RGB image format with a simple on/off alpha value.</p>
  1172. </div>
  1173. </div>
  1174. <div class="member">
  1175. <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>
  1176. <div class="description">
  1177. <p>A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression.</p>
  1178. </div>
  1179. </div>
  1180. <div class="member">
  1181. <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>
  1182. <div class="description">
  1183. <p>A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3
  1184. compression in how the alpha compression is done.</p>
  1185. </div>
  1186. </div>
  1187. <div class="member">
  1188. <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>
  1189. <div class="description">
  1190. <p>The depth value is packed into 24 bit RGB.</p>
  1191. </div>
  1192. </div>
  1193. <div class="member">
  1194. <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>
  1195. <div class="description">
  1196. <p>Discards the alpha component and reads the red, green and blue component.</p>
  1197. </div>
  1198. </div>
  1199. <div class="member">
  1200. <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>
  1201. <div class="description">
  1202. <p>Discards the alpha component and reads the red, green and blue component. The texels are read as integers instead of floating point.</p>
  1203. </div>
  1204. </div>
  1205. <div class="member">
  1206. <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>
  1207. <div class="description">
  1208. <p>BPTC Signed RGB format.</p>
  1209. </div>
  1210. </div>
  1211. <div class="member">
  1212. <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>
  1213. <div class="description">
  1214. <p>BPTC Unsigned RGB format.</p>
  1215. </div>
  1216. </div>
  1217. <div class="member">
  1218. <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>
  1219. <div class="description">
  1220. <p>ETC1 RGB format.</p>
  1221. </div>
  1222. </div>
  1223. <div class="member">
  1224. <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>
  1225. <div class="description">
  1226. <p>ETC2 RGB format.</p>
  1227. </div>
  1228. </div>
  1229. <div class="member">
  1230. <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>
  1231. <div class="description">
  1232. <p>PVRTC RGB compression in 2-bit mode. One block for each 8×4 pixels.</p>
  1233. </div>
  1234. </div>
  1235. <div class="member">
  1236. <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>
  1237. <div class="description">
  1238. <p>PVRTC RGB compression in 4-bit mode. One block for each 4×4 pixels.</p>
  1239. </div>
  1240. </div>
  1241. <div class="member">
  1242. <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>
  1243. <div class="description">
  1244. <p>A DXT1-compressed image in an RGB image format.</p>
  1245. </div>
  1246. </div>
  1247. <div class="member">
  1248. <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>
  1249. <div class="description">
  1250. <p>The depth value is packed into 16 bit RG.</p>
  1251. </div>
  1252. </div>
  1253. <div class="member">
  1254. <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>
  1255. <div class="description">
  1256. <p>Discards the alpha, and blue components and reads the red, and green components.</p>
  1257. </div>
  1258. </div>
  1259. <div class="member">
  1260. <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>
  1261. <div class="description">
  1262. <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>
  1263. </div>
  1264. </div>
  1265. <div class="member">
  1266. <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>
  1267. <div class="description">
  1268. <p>Discards the green, blue and alpha components and reads just the red component.</p>
  1269. </div>
  1270. </div>
  1271. <div class="member">
  1272. <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>
  1273. <div class="description">
  1274. <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>
  1275. </div>
  1276. </div>
  1277. <div class="member">
  1278. <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>
  1279. <div class="description">
  1280. <p>Reinhard tone mapping.</p>
  1281. </div>
  1282. </div>
  1283. <div class="member">
  1284. <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>
  1285. <div class="description">
  1286. <p>The texture will simply repeat to infinity.</p>
  1287. </div>
  1288. </div>
  1289. <div class="member">
  1290. <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>
  1291. <div class="description">
  1292. <p>Sets the stencil buffer value to the specified reference value.</p>
  1293. </div>
  1294. </div>
  1295. <div class="member">
  1296. <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>
  1297. <div class="description">
  1298. <p>A <code>destination - source</code> blending equation.</p>
  1299. </div>
  1300. </div>
  1301. <div class="member">
  1302. <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>
  1303. <div class="description">
  1304. <p>EAC R11 SNORM format.</p>
  1305. </div>
  1306. </div>
  1307. <div class="member">
  1308. <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>
  1309. <div class="description">
  1310. <p>RGTC2 Signed Red Green format.</p>
  1311. </div>
  1312. </div>
  1313. <div class="member">
  1314. <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>
  1315. <div class="description">
  1316. <p>RGTC1 Signed Red format.</p>
  1317. </div>
  1318. </div>
  1319. <div class="member">
  1320. <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>
  1321. <div class="description">
  1322. <p>EAC RG11 SNORM format.</p>
  1323. </div>
  1324. </div>
  1325. <div class="member">
  1326. <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>
  1327. <div class="description">
  1328. <p>sRGB color space.</p>
  1329. </div>
  1330. </div>
  1331. <div class="member">
  1332. <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>
  1333. <div class="description">
  1334. <p>sRGB transfer function.</p>
  1335. </div>
  1336. </div>
  1337. <div class="member">
  1338. <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>
  1339. <div class="description">
  1340. <p>UltraHDR Image Format - https://developer.android.com/media/platform/hdr-image-format</p>
  1341. <p>Short format brief:</p>
  1342. <p>[JPEG headers]
  1343. [XMP metadata describing the MPF container and <em>both</em> SDR and gainmap images]
  1344. [Optional metadata] [EXIF] [ICC Profile]
  1345. [SDR image]
  1346. [XMP metadata describing only the gainmap image]
  1347. [Gainmap image]</p>
  1348. <p>Each section is separated by a 0xFFXX byte followed by a descriptor byte (0xFFE0, 0xFFE1, 0xFFE2.)
  1349. Binary image storages are prefixed with a unique 0xFFD8 16-bit descriptor.</p>
  1350. </div>
  1351. </div>
  1352. <div class="member">
  1353. <h3 class="name" id="ScriptableNodeResources" translate="no">.<a href="#ScriptableNodeResources">ScriptableNodeResources</a><span class="type-signature"> : <a href="Resources.html">Resources</a></span> <span class="type-signature">(constant) </span></h3>
  1354. <div class="description">
  1355. <p>Defines the resources (e.g. namespaces) of scriptable nodes.</p>
  1356. </div>
  1357. </div>
  1358. <div class="member">
  1359. <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>
  1360. <div class="description">
  1361. <p>A short data type for textures.</p>
  1362. </div>
  1363. </div>
  1364. <div class="member">
  1365. <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>
  1366. <div class="description">
  1367. <p>Multiplies all colors by the source alpha value.</p>
  1368. </div>
  1369. </div>
  1370. <div class="member">
  1371. <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>
  1372. <div class="description">
  1373. <p>Multiplies the RGB colors by the smaller of either the source alpha
  1374. value or the value of <code>1</code> minus the destination alpha value. The alpha
  1375. value is multiplied by <code>1</code>.</p>
  1376. </div>
  1377. </div>
  1378. <div class="member">
  1379. <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>
  1380. <div class="description">
  1381. <p>Multiplies all colors by the source colors.</p>
  1382. </div>
  1383. </div>
  1384. <div class="member">
  1385. <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>
  1386. <div class="description">
  1387. <p>The contents are intended to be specified once by reading data from the 3D API, and used many times as
  1388. the source for WebGL drawing and image specification commands.</p>
  1389. </div>
  1390. </div>
  1391. <div class="member">
  1392. <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>
  1393. <div class="description">
  1394. <p>The contents are intended to be specified once by the application, and used many
  1395. times as the source for drawing and image specification commands.</p>
  1396. </div>
  1397. </div>
  1398. <div class="member">
  1399. <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>
  1400. <div class="description">
  1401. <p>The contents are intended to be specified once by reading data from the 3D API, and queried
  1402. many times by the application.</p>
  1403. </div>
  1404. </div>
  1405. <div class="member">
  1406. <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>
  1407. <div class="description">
  1408. <p>The contents are intended to be specified once by reading data from the 3D API, and used at most a few times
  1409. as the source for WebGL drawing and image specification commands.</p>
  1410. </div>
  1411. </div>
  1412. <div class="member">
  1413. <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>
  1414. <div class="description">
  1415. <p>The contents are intended to be specified once by the application, and used at most
  1416. a few times as the source for drawing and image specification commands.</p>
  1417. </div>
  1418. </div>
  1419. <div class="member">
  1420. <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>
  1421. <div class="description">
  1422. <p>The contents are intended to be specified once by reading data from the 3D API, and queried at most
  1423. a few times by the application</p>
  1424. </div>
  1425. </div>
  1426. <div class="member">
  1427. <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>
  1428. <div class="description">
  1429. <p>A <code>source - destination</code> blending equation.</p>
  1430. </div>
  1431. </div>
  1432. <div class="member">
  1433. <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>
  1434. <div class="description">
  1435. <p>Represents subtractive blending.</p>
  1436. </div>
  1437. </div>
  1438. <div class="member">
  1439. <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>
  1440. <div class="description">
  1441. <p>Represents touch interaction types in context of controls.</p>
  1442. </div>
  1443. </div>
  1444. <div class="member">
  1445. <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>
  1446. <div class="description">
  1447. <p>Normal information is relative to the underlying surface.</p>
  1448. </div>
  1449. </div>
  1450. <div class="member">
  1451. <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>
  1452. <div class="description">
  1453. <p>Represents the different timestamp query types.</p>
  1454. </div>
  1455. </div>
  1456. <div class="member">
  1457. <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>
  1458. <div class="description">
  1459. <p>For each vertex draw a triangle from the first vertex and the last two vertices.</p>
  1460. </div>
  1461. </div>
  1462. <div class="member">
  1463. <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>
  1464. <div class="description">
  1465. <p>For each vertex draw a triangle from the last three vertices.</p>
  1466. </div>
  1467. </div>
  1468. <div class="member">
  1469. <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>
  1470. <div class="description">
  1471. <p>For every three vertices draw a single triangle.</p>
  1472. </div>
  1473. </div>
  1474. <div class="member">
  1475. <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>
  1476. <div class="description">
  1477. <p>Maps textures using the geometry's UV coordinates.</p>
  1478. </div>
  1479. </div>
  1480. <div class="member">
  1481. <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>
  1482. <div class="description">
  1483. <p>An unsigned byte data type for textures.</p>
  1484. </div>
  1485. </div>
  1486. <div class="member">
  1487. <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>
  1488. <div class="description">
  1489. <p>An unsigned int 10_11_11 (packed) data type for textures.</p>
  1490. </div>
  1491. </div>
  1492. <div class="member">
  1493. <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>
  1494. <div class="description">
  1495. <p>An unsigned int 24_8 data type for textures.</p>
  1496. </div>
  1497. </div>
  1498. <div class="member">
  1499. <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>
  1500. <div class="description">
  1501. <p>An unsigned int 5_9_9_9 (packed) data type for textures.</p>
  1502. </div>
  1503. </div>
  1504. <div class="member">
  1505. <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>
  1506. <div class="description">
  1507. <p>An unsigned int data type for textures.</p>
  1508. </div>
  1509. </div>
  1510. <div class="member">
  1511. <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>
  1512. <div class="description">
  1513. <p>An unsigned short 4_4_4_4 (packed) data type for textures.</p>
  1514. </div>
  1515. </div>
  1516. <div class="member">
  1517. <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>
  1518. <div class="description">
  1519. <p>An unsigned short 5_5_5_1 (packed) data type for textures.</p>
  1520. </div>
  1521. </div>
  1522. <div class="member">
  1523. <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>
  1524. <div class="description">
  1525. <p>An unsigned short data type for textures.</p>
  1526. </div>
  1527. </div>
  1528. <div class="member">
  1529. <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>
  1530. <div class="description">
  1531. <p>References:</p>
  1532. <ul>
  1533. <li>https://github.khronos.org/KTX-Specification/ktxspec.v2.html</li>
  1534. <li>https://registry.khronos.org/DataFormat/specs/1.3/dataformat.1.3.html</li>
  1535. <li>https://github.com/donmccurdy/KTX-Parse</li>
  1536. </ul>
  1537. </div>
  1538. </div>
  1539. <div class="member">
  1540. <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>
  1541. <div class="description">
  1542. <p>Filters shadow maps using the Variance Shadow Map (VSM) algorithm.
  1543. When using VSMShadowMap all shadow receivers will also cast shadows.</p>
  1544. </div>
  1545. </div>
  1546. <div class="member">
  1547. <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>
  1548. <div class="description">
  1549. <p>WebGL coordinate system.</p>
  1550. </div>
  1551. </div>
  1552. <div class="member">
  1553. <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>
  1554. <div class="description">
  1555. <p>WebGPU coordinate system.</p>
  1556. </div>
  1557. </div>
  1558. <div class="member">
  1559. <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>
  1560. <div class="description">
  1561. <p>Wrap around ending for animations.</p>
  1562. </div>
  1563. </div>
  1564. <div class="member">
  1565. <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>
  1566. <div class="description">
  1567. <p>Zero curvature ending for animations.</p>
  1568. </div>
  1569. </div>
  1570. <div class="member">
  1571. <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>
  1572. <div class="description">
  1573. <p>Multiplies all colors by <code>0</code>.</p>
  1574. </div>
  1575. </div>
  1576. <div class="member">
  1577. <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>
  1578. <div class="description">
  1579. <p>Zero slope ending for animations.</p>
  1580. </div>
  1581. </div>
  1582. <div class="member">
  1583. <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>
  1584. <div class="description">
  1585. <p>Sets the stencil buffer value to <code>0</code>.</p>
  1586. </div>
  1587. </div>
  1588. <div class="member">
  1589. <h3 class="name" id="disposeShadowMaterial" translate="no">.<a href="#disposeShadowMaterial">disposeShadowMaterial</a> <span class="type-signature">(constant) </span></h3>
  1590. <div class="description">
  1591. <p>Disposes the shadow material for the given light source.</p>
  1592. </div>
  1593. </div>
  1594. <div class="member">
  1595. <h3 class="name" id="viewportResolution" translate="no">.<a href="#viewportResolution">viewportResolution</a> <span class="type-signature">(constant) </span></h3>
  1596. <dl class="details">
  1597. <dt class="important tag-deprecated"><strong>Deprecated:</strong> since r169. Use <a href="TSL.html#screenSize">screenSize</a> instead.</dt>
  1598. </dl>
  1599. </div>
  1600. <h2 class="subsection-title">Methods</h2>
  1601. <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>
  1602. <div class="method">
  1603. <div class="description">
  1604. <p>A shadow filtering function performing basic filtering. This is in fact an unfiltered version of the shadow map
  1605. with a binary <code>[0,1]</code> result.</p>
  1606. </div>
  1607. <table class="params">
  1608. <tbody>
  1609. <tr>
  1610. <td class="name">
  1611. <strong>inputs</strong>
  1612. </td>
  1613. <td class="description last">
  1614. <p>The input parameter object.</p>
  1615. <table class="params">
  1616. <tbody>
  1617. <tr>
  1618. <td class="name">
  1619. <strong>depthTexture</strong>
  1620. </td>
  1621. <td class="description last">
  1622. <p>A reference to the shadow map's texture data.</p>
  1623. </td>
  1624. </tr>
  1625. <tr>
  1626. <td class="name">
  1627. <strong>shadowCoord</strong>
  1628. </td>
  1629. <td class="description last">
  1630. <p>The shadow coordinates.</p>
  1631. </td>
  1632. </tr>
  1633. </tbody>
  1634. </table>
  1635. </td>
  1636. </tr>
  1637. </tbody>
  1638. </table>
  1639. <dl class="details">
  1640. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1641. </dl>
  1642. </div>
  1643. <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>
  1644. <div class="method">
  1645. <div class="description">
  1646. <p>A shadow filtering function performing PCF filtering with Vogel disk sampling and IGN.</p>
  1647. <p>Uses 5 samples distributed via Vogel disk pattern, rotated per-pixel using Interleaved
  1648. Gradient Noise (IGN) to break up banding artifacts. Combined with hardware PCF (4-tap
  1649. filtering per sample), this effectively provides 20 filtered taps with better distribution.</p>
  1650. </div>
  1651. <table class="params">
  1652. <tbody>
  1653. <tr>
  1654. <td class="name">
  1655. <strong>inputs</strong>
  1656. </td>
  1657. <td class="description last">
  1658. <p>The input parameter object.</p>
  1659. <table class="params">
  1660. <tbody>
  1661. <tr>
  1662. <td class="name">
  1663. <strong>depthTexture</strong>
  1664. </td>
  1665. <td class="description last">
  1666. <p>A reference to the shadow map's texture data.</p>
  1667. </td>
  1668. </tr>
  1669. <tr>
  1670. <td class="name">
  1671. <strong>shadowCoord</strong>
  1672. </td>
  1673. <td class="description last">
  1674. <p>The shadow coordinates.</p>
  1675. </td>
  1676. </tr>
  1677. <tr>
  1678. <td class="name">
  1679. <strong>shadow</strong>
  1680. </td>
  1681. <td class="description last">
  1682. <p>The light shadow.</p>
  1683. </td>
  1684. </tr>
  1685. </tbody>
  1686. </table>
  1687. </td>
  1688. </tr>
  1689. </tbody>
  1690. </table>
  1691. <dl class="details">
  1692. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1693. </dl>
  1694. </div>
  1695. <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>
  1696. <div class="method">
  1697. <div class="description">
  1698. <p>A shadow filtering function performing PCF soft filtering.</p>
  1699. </div>
  1700. <table class="params">
  1701. <tbody>
  1702. <tr>
  1703. <td class="name">
  1704. <strong>inputs</strong>
  1705. </td>
  1706. <td class="description last">
  1707. <p>The input parameter object.</p>
  1708. <table class="params">
  1709. <tbody>
  1710. <tr>
  1711. <td class="name">
  1712. <strong>depthTexture</strong>
  1713. </td>
  1714. <td class="description last">
  1715. <p>A reference to the shadow map's texture data.</p>
  1716. </td>
  1717. </tr>
  1718. <tr>
  1719. <td class="name">
  1720. <strong>shadowCoord</strong>
  1721. </td>
  1722. <td class="description last">
  1723. <p>The shadow coordinates.</p>
  1724. </td>
  1725. </tr>
  1726. <tr>
  1727. <td class="name">
  1728. <strong>shadow</strong>
  1729. </td>
  1730. <td class="description last">
  1731. <p>The light shadow.</p>
  1732. </td>
  1733. </tr>
  1734. </tbody>
  1735. </table>
  1736. </td>
  1737. </tr>
  1738. </tbody>
  1739. </table>
  1740. <dl class="details">
  1741. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1742. </dl>
  1743. </div>
  1744. <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>
  1745. <div class="method">
  1746. <div class="description">
  1747. <p>A shadow filtering function for point lights using Vogel disk sampling and IGN.</p>
  1748. <p>Uses 5 samples distributed via Vogel disk pattern in tangent space around the
  1749. sample direction, rotated per-pixel using Interleaved Gradient Noise (IGN).</p>
  1750. </div>
  1751. <table class="params">
  1752. <tbody>
  1753. <tr>
  1754. <td class="name">
  1755. <strong>inputs</strong>
  1756. </td>
  1757. <td class="description last">
  1758. <p>The input parameter object.</p>
  1759. <table class="params">
  1760. <tbody>
  1761. <tr>
  1762. <td class="name">
  1763. <strong>depthTexture</strong>
  1764. </td>
  1765. <td class="description last">
  1766. <p>A reference to the shadow cube map.</p>
  1767. </td>
  1768. </tr>
  1769. <tr>
  1770. <td class="name">
  1771. <strong>bd3D</strong>
  1772. </td>
  1773. <td class="description last">
  1774. <p>The normalized direction from light to fragment.</p>
  1775. </td>
  1776. </tr>
  1777. <tr>
  1778. <td class="name">
  1779. <strong>dp</strong>
  1780. </td>
  1781. <td class="description last">
  1782. <p>The depth value to compare against.</p>
  1783. </td>
  1784. </tr>
  1785. <tr>
  1786. <td class="name">
  1787. <strong>shadow</strong>
  1788. </td>
  1789. <td class="description last">
  1790. <p>The light shadow.</p>
  1791. </td>
  1792. </tr>
  1793. </tbody>
  1794. </table>
  1795. </td>
  1796. </tr>
  1797. </tbody>
  1798. </table>
  1799. <dl class="details">
  1800. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1801. </dl>
  1802. </div>
  1803. <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>
  1804. <div class="method">
  1805. <div class="description">
  1806. <p>Add the given node to the current stack.</p>
  1807. </div>
  1808. <table class="params">
  1809. <tbody>
  1810. <tr>
  1811. <td class="name">
  1812. <strong>node</strong>
  1813. </td>
  1814. <td class="description last">
  1815. <p>The node to add.</p>
  1816. </td>
  1817. </tr>
  1818. </tbody>
  1819. </table>
  1820. <dl class="details">
  1821. <dt class="tag-returns"><strong>Returns:</strong> The node that was added to the stack.</dt>
  1822. </dl>
  1823. </div>
  1824. <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>
  1825. <div class="method">
  1826. <div class="description">
  1827. <p>A shadow filtering function performing VSM filtering.</p>
  1828. </div>
  1829. <table class="params">
  1830. <tbody>
  1831. <tr>
  1832. <td class="name">
  1833. <strong>inputs</strong>
  1834. </td>
  1835. <td class="description last">
  1836. <p>The input parameter object.</p>
  1837. <table class="params">
  1838. <tbody>
  1839. <tr>
  1840. <td class="name">
  1841. <strong>depthTexture</strong>
  1842. </td>
  1843. <td class="description last">
  1844. <p>A reference to the shadow map's texture data.</p>
  1845. </td>
  1846. </tr>
  1847. <tr>
  1848. <td class="name">
  1849. <strong>shadowCoord</strong>
  1850. </td>
  1851. <td class="description last">
  1852. <p>The shadow coordinates.</p>
  1853. </td>
  1854. </tr>
  1855. </tbody>
  1856. </table>
  1857. </td>
  1858. </tr>
  1859. </tbody>
  1860. </table>
  1861. <dl class="details">
  1862. <dt class="tag-returns"><strong>Returns:</strong> The filtering result.</dt>
  1863. </dl>
  1864. </div>
  1865. <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>
  1866. <div class="method">
  1867. <div class="description">
  1868. <p>Builds a 3D texture from a VOX chunk.</p>
  1869. </div>
  1870. <table class="params">
  1871. <tbody>
  1872. <tr>
  1873. <td class="name">
  1874. <strong>chunk</strong>
  1875. </td>
  1876. <td class="description last">
  1877. <p>A VOX chunk loaded via <a href="VOXLoader.html">VOXLoader</a>.</p>
  1878. </td>
  1879. </tr>
  1880. </tbody>
  1881. </table>
  1882. <dl class="details">
  1883. <dt class="tag-returns"><strong>Returns:</strong> The generated 3D texture.</dt>
  1884. </dl>
  1885. </div>
  1886. <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>
  1887. <div class="method">
  1888. <div class="description">
  1889. <p>Builds a mesh from a VOX chunk.</p>
  1890. </div>
  1891. <table class="params">
  1892. <tbody>
  1893. <tr>
  1894. <td class="name">
  1895. <strong>chunk</strong>
  1896. </td>
  1897. <td class="description last">
  1898. <p>A VOX chunk loaded via <a href="VOXLoader.html">VOXLoader</a>.</p>
  1899. </td>
  1900. </tr>
  1901. </tbody>
  1902. </table>
  1903. <dl class="details">
  1904. <dt class="tag-returns"><strong>Returns:</strong> The generated mesh.</dt>
  1905. </dl>
  1906. </div>
  1907. <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>
  1908. <div class="method">
  1909. <div class="description">
  1910. <p>Returns the smallest power of two that is greater than or equal to the given number.</p>
  1911. </div>
  1912. <table class="params">
  1913. <tbody>
  1914. <tr>
  1915. <td class="name">
  1916. <strong>value</strong>
  1917. </td>
  1918. <td class="description last">
  1919. <p>The value to find a POT for.</p>
  1920. </td>
  1921. </tr>
  1922. </tbody>
  1923. </table>
  1924. <dl class="details">
  1925. <dt class="tag-returns"><strong>Returns:</strong> The smallest power of two that is greater than or equal to the given number.</dt>
  1926. </dl>
  1927. </div>
  1928. <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>
  1929. <div class="method">
  1930. <div class="description">
  1931. <p>Clamps the given value between min and max.</p>
  1932. </div>
  1933. <table class="params">
  1934. <tbody>
  1935. <tr>
  1936. <td class="name">
  1937. <strong>value</strong>
  1938. </td>
  1939. <td class="description last">
  1940. <p>The value to clamp.</p>
  1941. </td>
  1942. </tr>
  1943. <tr>
  1944. <td class="name">
  1945. <strong>min</strong>
  1946. </td>
  1947. <td class="description last">
  1948. <p>The min value.</p>
  1949. </td>
  1950. </tr>
  1951. <tr>
  1952. <td class="name">
  1953. <strong>max</strong>
  1954. </td>
  1955. <td class="description last">
  1956. <p>The max value.</p>
  1957. </td>
  1958. </tr>
  1959. </tbody>
  1960. </table>
  1961. <dl class="details">
  1962. <dt class="tag-returns"><strong>Returns:</strong> The clamped value.</dt>
  1963. </dl>
  1964. </div>
  1965. <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>
  1966. <div class="method">
  1967. <div class="description">
  1968. <p>Scales the texture as large as possible within its surface without cropping
  1969. or stretching the texture. The method preserves the original aspect ratio of
  1970. the texture. Akin to CSS <code>object-fit: contain</code></p>
  1971. </div>
  1972. <table class="params">
  1973. <tbody>
  1974. <tr>
  1975. <td class="name">
  1976. <strong>texture</strong>
  1977. </td>
  1978. <td class="description last">
  1979. <p>The texture.</p>
  1980. </td>
  1981. </tr>
  1982. <tr>
  1983. <td class="name">
  1984. <strong>aspect</strong>
  1985. </td>
  1986. <td class="description last">
  1987. <p>The texture's aspect ratio.</p>
  1988. </td>
  1989. </tr>
  1990. </tbody>
  1991. </table>
  1992. <dl class="details">
  1993. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  1994. </dl>
  1995. </div>
  1996. <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>
  1997. <div class="method">
  1998. <div class="description">
  1999. <p>Converts an array to a specific type.</p>
  2000. </div>
  2001. <table class="params">
  2002. <tbody>
  2003. <tr>
  2004. <td class="name">
  2005. <strong>array</strong>
  2006. </td>
  2007. <td class="description last">
  2008. <p>The array to convert.</p>
  2009. </td>
  2010. </tr>
  2011. <tr>
  2012. <td class="name">
  2013. <strong>type</strong>
  2014. </td>
  2015. <td class="description last">
  2016. <p>The constructor of a typed array that defines the new type.</p>
  2017. </td>
  2018. </tr>
  2019. </tbody>
  2020. </table>
  2021. <dl class="details">
  2022. <dt class="tag-returns"><strong>Returns:</strong> The converted array.</dt>
  2023. </dl>
  2024. </div>
  2025. <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>
  2026. <div class="method">
  2027. <div class="description">
  2028. <p>Scales the texture to the smallest possible size to fill the surface, leaving
  2029. no empty space. The method preserves the original aspect ratio of the texture.
  2030. Akin to CSS <code>object-fit: cover</code>.</p>
  2031. </div>
  2032. <table class="params">
  2033. <tbody>
  2034. <tr>
  2035. <td class="name">
  2036. <strong>texture</strong>
  2037. </td>
  2038. <td class="description last">
  2039. <p>The texture.</p>
  2040. </td>
  2041. </tr>
  2042. <tr>
  2043. <td class="name">
  2044. <strong>aspect</strong>
  2045. </td>
  2046. <td class="description last">
  2047. <p>The texture's aspect ratio.</p>
  2048. </td>
  2049. </tr>
  2050. </tbody>
  2051. </table>
  2052. <dl class="details">
  2053. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  2054. </dl>
  2055. </div>
  2056. <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>
  2057. <div class="method">
  2058. <div class="description">
  2059. <p>Helper to create an EventNode and add it to the stack.</p>
  2060. </div>
  2061. <table class="params">
  2062. <tbody>
  2063. <tr>
  2064. <td class="name">
  2065. <strong>type</strong>
  2066. </td>
  2067. <td class="description last">
  2068. <p>The event type.</p>
  2069. </td>
  2070. </tr>
  2071. <tr>
  2072. <td class="name">
  2073. <strong>callback</strong>
  2074. </td>
  2075. <td class="description last">
  2076. <p>The callback function.</p>
  2077. </td>
  2078. </tr>
  2079. </tbody>
  2080. </table>
  2081. </div>
  2082. <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>
  2083. <div class="method">
  2084. <div class="description">
  2085. <p>Smoothly interpolate a number from <code>x</code> to <code>y</code> in a spring-like manner using a delta
  2086. time to maintain frame rate independent movement. For details, see
  2087. <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>
  2088. </div>
  2089. <table class="params">
  2090. <tbody>
  2091. <tr>
  2092. <td class="name">
  2093. <strong>x</strong>
  2094. </td>
  2095. <td class="description last">
  2096. <p>The current point.</p>
  2097. </td>
  2098. </tr>
  2099. <tr>
  2100. <td class="name">
  2101. <strong>y</strong>
  2102. </td>
  2103. <td class="description last">
  2104. <p>The target point.</p>
  2105. </td>
  2106. </tr>
  2107. <tr>
  2108. <td class="name">
  2109. <strong>lambda</strong>
  2110. </td>
  2111. <td class="description last">
  2112. <p>A higher lambda value will make the movement more sudden,
  2113. and a lower value will make the movement more gradual.</p>
  2114. </td>
  2115. </tr>
  2116. <tr>
  2117. <td class="name">
  2118. <strong>dt</strong>
  2119. </td>
  2120. <td class="description last">
  2121. <p>Delta time in seconds.</p>
  2122. </td>
  2123. </tr>
  2124. </tbody>
  2125. </table>
  2126. <dl class="details">
  2127. <dt class="tag-returns"><strong>Returns:</strong> The interpolated value.</dt>
  2128. </dl>
  2129. </div>
  2130. <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>
  2131. <div class="method">
  2132. <div class="description">
  2133. <p>Converts degrees to radians.</p>
  2134. </div>
  2135. <table class="params">
  2136. <tbody>
  2137. <tr>
  2138. <td class="name">
  2139. <strong>degrees</strong>
  2140. </td>
  2141. <td class="description last">
  2142. <p>A value in degrees.</p>
  2143. </td>
  2144. </tr>
  2145. </tbody>
  2146. </table>
  2147. <dl class="details">
  2148. <dt class="tag-returns"><strong>Returns:</strong> The converted value in radians.</dt>
  2149. </dl>
  2150. </div>
  2151. <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>
  2152. <div class="method">
  2153. <div class="description">
  2154. <p>Denormalizes the given value according to the given typed array.</p>
  2155. </div>
  2156. <table class="params">
  2157. <tbody>
  2158. <tr>
  2159. <td class="name">
  2160. <strong>value</strong>
  2161. </td>
  2162. <td class="description last">
  2163. <p>The value to denormalize.</p>
  2164. </td>
  2165. </tr>
  2166. <tr>
  2167. <td class="name">
  2168. <strong>array</strong>
  2169. </td>
  2170. <td class="description last">
  2171. <p>The typed array that defines the data type of the value.</p>
  2172. </td>
  2173. </tr>
  2174. </tbody>
  2175. </table>
  2176. <dl class="details">
  2177. <dt class="tag-returns"><strong>Returns:</strong> The denormalize (float) value in the range <code>[0,1]</code>.</dt>
  2178. </dl>
  2179. </div>
  2180. <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>
  2181. <div class="method">
  2182. <div class="description">
  2183. <p>Computes the Euclidean modulo of the given parameters that
  2184. is <code>( ( n % m ) + m ) % m</code>.</p>
  2185. </div>
  2186. <table class="params">
  2187. <tbody>
  2188. <tr>
  2189. <td class="name">
  2190. <strong>n</strong>
  2191. </td>
  2192. <td class="description last">
  2193. <p>The first parameter.</p>
  2194. </td>
  2195. </tr>
  2196. <tr>
  2197. <td class="name">
  2198. <strong>m</strong>
  2199. </td>
  2200. <td class="description last">
  2201. <p>The second parameter.</p>
  2202. </td>
  2203. </tr>
  2204. </tbody>
  2205. </table>
  2206. <dl class="details">
  2207. <dt class="tag-returns"><strong>Returns:</strong> The Euclidean modulo.</dt>
  2208. </dl>
  2209. </div>
  2210. <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>
  2211. <div class="method">
  2212. <div class="description">
  2213. <p>Configures the texture to the default transformation. Akin to CSS <code>object-fit: fill</code>.</p>
  2214. </div>
  2215. <table class="params">
  2216. <tbody>
  2217. <tr>
  2218. <td class="name">
  2219. <strong>texture</strong>
  2220. </td>
  2221. <td class="description last">
  2222. <p>The texture.</p>
  2223. </td>
  2224. </tr>
  2225. </tbody>
  2226. </table>
  2227. <dl class="details">
  2228. <dt class="tag-returns"><strong>Returns:</strong> The updated texture.</dt>
  2229. </dl>
  2230. </div>
  2231. <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>
  2232. <div class="method">
  2233. <div class="description">
  2234. <p>Used for parsing AOS keyframe formats.</p>
  2235. </div>
  2236. <table class="params">
  2237. <tbody>
  2238. <tr>
  2239. <td class="name">
  2240. <strong>jsonKeys</strong>
  2241. </td>
  2242. <td class="description last">
  2243. <p>A list of JSON keyframes.</p>
  2244. </td>
  2245. </tr>
  2246. <tr>
  2247. <td class="name">
  2248. <strong>times</strong>
  2249. </td>
  2250. <td class="description last">
  2251. <p>This array will be filled with keyframe times by this function.</p>
  2252. </td>
  2253. </tr>
  2254. <tr>
  2255. <td class="name">
  2256. <strong>values</strong>
  2257. </td>
  2258. <td class="description last">
  2259. <p>This array will be filled with keyframe values by this function.</p>
  2260. </td>
  2261. </tr>
  2262. <tr>
  2263. <td class="name">
  2264. <strong>valuePropertyName</strong>
  2265. </td>
  2266. <td class="description last">
  2267. <p>The name of the property to use.</p>
  2268. </td>
  2269. </tr>
  2270. </tbody>
  2271. </table>
  2272. </div>
  2273. <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>
  2274. <div class="method">
  2275. <div class="description">
  2276. <p>Returns the largest power of two that is less than or equal to the given number.</p>
  2277. </div>
  2278. <table class="params">
  2279. <tbody>
  2280. <tr>
  2281. <td class="name">
  2282. <strong>value</strong>
  2283. </td>
  2284. <td class="description last">
  2285. <p>The value to find a POT for.</p>
  2286. </td>
  2287. </tr>
  2288. </tbody>
  2289. </table>
  2290. <dl class="details">
  2291. <dt class="tag-returns"><strong>Returns:</strong> The largest power of two that is less than or equal to the given number.</dt>
  2292. </dl>
  2293. </div>
  2294. <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>
  2295. <div class="method">
  2296. <div class="description">
  2297. <p>Returns a single precision floating point value (FP32) from the given half
  2298. precision floating point value (FP16).</p>
  2299. </div>
  2300. <table class="params">
  2301. <tbody>
  2302. <tr>
  2303. <td class="name">
  2304. <strong>val</strong>
  2305. </td>
  2306. <td class="description last">
  2307. <p>A half precision floating point value.</p>
  2308. </td>
  2309. </tr>
  2310. </tbody>
  2311. </table>
  2312. <dl class="details">
  2313. <dt class="tag-returns"><strong>Returns:</strong> The FP32 value.</dt>
  2314. </dl>
  2315. </div>
  2316. <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>
  2317. <div class="method">
  2318. <div class="description">
  2319. <p>Computes an array of magic square values required to generate the noise texture.</p>
  2320. </div>
  2321. <table class="params">
  2322. <tbody>
  2323. <tr>
  2324. <td class="name">
  2325. <strong>size</strong>
  2326. </td>
  2327. <td class="description last">
  2328. <p>The noise size.</p>
  2329. </td>
  2330. </tr>
  2331. </tbody>
  2332. </table>
  2333. <dl class="details">
  2334. <dt class="tag-returns"><strong>Returns:</strong> The magic square values.</dt>
  2335. </dl>
  2336. </div>
  2337. <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>
  2338. <div class="method">
  2339. <div class="description">
  2340. <p>Generates the AO's noise texture for the given size.</p>
  2341. </div>
  2342. <table class="params">
  2343. <tbody>
  2344. <tr>
  2345. <td class="name">
  2346. <strong>size</strong>
  2347. </td>
  2348. <td class="description last">
  2349. <p>The noise size.</p>
  2350. <p>Default is <code>5</code>.</p>
  2351. </td>
  2352. </tr>
  2353. </tbody>
  2354. </table>
  2355. <dl class="details">
  2356. <dt class="tag-returns"><strong>Returns:</strong> The generated noise texture.</dt>
  2357. </dl>
  2358. </div>
  2359. <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>
  2360. <div class="method">
  2361. <div class="description">
  2362. <p>Generate a <a href="https://en.wikipedia.org/wiki/Universally_unique_identifier" target="_blank" rel="noopener">UUID</a>
  2363. (universally unique identifier).</p>
  2364. </div>
  2365. <dl class="details">
  2366. <dt class="tag-returns"><strong>Returns:</strong> The UUID.</dt>
  2367. </dl>
  2368. </div>
  2369. <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>
  2370. <div class="method">
  2371. <div class="description">
  2372. <p>Determines how many bytes must be used to represent the texture.</p>
  2373. </div>
  2374. <table class="params">
  2375. <tbody>
  2376. <tr>
  2377. <td class="name">
  2378. <strong>width</strong>
  2379. </td>
  2380. <td class="description last">
  2381. <p>The width of the texture.</p>
  2382. </td>
  2383. </tr>
  2384. <tr>
  2385. <td class="name">
  2386. <strong>height</strong>
  2387. </td>
  2388. <td class="description last">
  2389. <p>The height of the texture.</p>
  2390. </td>
  2391. </tr>
  2392. <tr>
  2393. <td class="name">
  2394. <strong>format</strong>
  2395. </td>
  2396. <td class="description last">
  2397. <p>The texture's format.</p>
  2398. </td>
  2399. </tr>
  2400. <tr>
  2401. <td class="name">
  2402. <strong>type</strong>
  2403. </td>
  2404. <td class="description last">
  2405. <p>The texture's type.</p>
  2406. </td>
  2407. </tr>
  2408. </tbody>
  2409. </table>
  2410. <dl class="details">
  2411. <dt class="tag-returns"><strong>Returns:</strong> The byte length.</dt>
  2412. </dl>
  2413. </div>
  2414. <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>
  2415. <div class="method">
  2416. <div class="description">
  2417. <p>Computes a cache key for the given render context. This key
  2418. should identify the render target state so it is possible to
  2419. configure the correct attachments in the respective backend.</p>
  2420. </div>
  2421. <table class="params">
  2422. <tbody>
  2423. <tr>
  2424. <td class="name">
  2425. <strong>renderContext</strong>
  2426. </td>
  2427. <td class="description last">
  2428. <p>The render context.</p>
  2429. </td>
  2430. </tr>
  2431. </tbody>
  2432. </table>
  2433. <dl class="details">
  2434. <dt class="tag-returns"><strong>Returns:</strong> The cache key.</dt>
  2435. </dl>
  2436. </div>
  2437. <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>
  2438. <div class="method">
  2439. <div class="description">
  2440. <p>Represents a <code>discard</code> shader operation in TSL.</p>
  2441. </div>
  2442. <table class="params">
  2443. <tbody>
  2444. <tr>
  2445. <td class="name">
  2446. <strong>inputs</strong>
  2447. </td>
  2448. <td class="description last">
  2449. <p>The input parameter object.</p>
  2450. <table class="params">
  2451. <tbody>
  2452. <tr>
  2453. <td class="name">
  2454. <strong>lightDistance</strong>
  2455. </td>
  2456. <td class="description last">
  2457. <p>The distance of the light's position to the current fragment position.</p>
  2458. </td>
  2459. </tr>
  2460. <tr>
  2461. <td class="name">
  2462. <strong>cutoffDistance</strong>
  2463. </td>
  2464. <td class="description last">
  2465. <p>The light's cutoff distance.</p>
  2466. </td>
  2467. </tr>
  2468. <tr>
  2469. <td class="name">
  2470. <strong>decayExponent</strong>
  2471. </td>
  2472. <td class="description last">
  2473. <p>The light's decay exponent.</p>
  2474. </td>
  2475. </tr>
  2476. </tbody>
  2477. </table>
  2478. </td>
  2479. </tr>
  2480. </tbody>
  2481. </table>
  2482. <dl class="details">
  2483. <dt class="tag-returns"><strong>Returns:</strong> The distance falloff.</dt>
  2484. </dl>
  2485. </div>
  2486. <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>
  2487. <div class="method">
  2488. <div class="description">
  2489. <p>This function is usually called with the length in bytes of an array buffer.
  2490. It returns an padded value which ensure chunk size alignment according to STD140 layout.</p>
  2491. </div>
  2492. <table class="params">
  2493. <tbody>
  2494. <tr>
  2495. <td class="name">
  2496. <strong>floatLength</strong>
  2497. </td>
  2498. <td class="description last">
  2499. <p>The buffer length.</p>
  2500. </td>
  2501. </tr>
  2502. </tbody>
  2503. </table>
  2504. <dl class="details">
  2505. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  2506. </dl>
  2507. </div>
  2508. <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>
  2509. <div class="method">
  2510. <div class="description">
  2511. <p>Returns the GPU format for the given texture.</p>
  2512. </div>
  2513. <table class="params">
  2514. <tbody>
  2515. <tr>
  2516. <td class="name">
  2517. <strong>texture</strong>
  2518. </td>
  2519. <td class="description last">
  2520. <p>The texture.</p>
  2521. </td>
  2522. </tr>
  2523. <tr>
  2524. <td class="name">
  2525. <strong>device</strong>
  2526. </td>
  2527. <td class="description last">
  2528. <p>The GPU device which is used for feature detection.
  2529. It is not necessary to apply the device for most formats.</p>
  2530. <p>Default is <code>null</code>.</p>
  2531. </td>
  2532. </tr>
  2533. </tbody>
  2534. </table>
  2535. <dl class="details">
  2536. <dt class="tag-returns"><strong>Returns:</strong> The GPU format.</dt>
  2537. </dl>
  2538. </div>
  2539. <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>
  2540. <div class="method">
  2541. <div class="description">
  2542. <p>Returns an array by which times and values can be sorted.</p>
  2543. </div>
  2544. <table class="params">
  2545. <tbody>
  2546. <tr>
  2547. <td class="name">
  2548. <strong>times</strong>
  2549. </td>
  2550. <td class="description last">
  2551. <p>The keyframe time values.</p>
  2552. </td>
  2553. </tr>
  2554. </tbody>
  2555. </table>
  2556. <dl class="details">
  2557. <dt class="tag-returns"><strong>Returns:</strong> The array.</dt>
  2558. </dl>
  2559. </div>
  2560. <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>
  2561. <div class="method">
  2562. <div class="description">
  2563. <p>Generates a layout for struct members.
  2564. This function takes an object representing struct members and returns an array of member layouts.
  2565. Each member layout includes the member's name, type, and whether it is atomic.</p>
  2566. </div>
  2567. <table class="params">
  2568. <tbody>
  2569. <tr>
  2570. <td class="name">
  2571. <strong>members</strong>
  2572. </td>
  2573. <td class="description last">
  2574. <p>An object where keys are member names and values are either types (as strings) or objects with type and atomic properties.</p>
  2575. </td>
  2576. </tr>
  2577. </tbody>
  2578. </table>
  2579. <dl class="details">
  2580. <dt class="tag-returns"><strong>Returns:</strong> An array of member layouts.</dt>
  2581. </dl>
  2582. </div>
  2583. <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>
  2584. <div class="method">
  2585. <div class="description">
  2586. <p>This function is called with a vector length and ensure the computed length
  2587. matches a predefined stride (in this case <code>4</code>).</p>
  2588. </div>
  2589. <table class="params">
  2590. <tbody>
  2591. <tr>
  2592. <td class="name">
  2593. <strong>vectorLength</strong>
  2594. </td>
  2595. <td class="description last">
  2596. <p>The vector length.</p>
  2597. </td>
  2598. </tr>
  2599. </tbody>
  2600. </table>
  2601. <dl class="details">
  2602. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  2603. </dl>
  2604. </div>
  2605. <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>
  2606. <div class="method">
  2607. <div class="description">
  2608. <p>Returns the MRT texture index for the given name.</p>
  2609. </div>
  2610. <table class="params">
  2611. <tbody>
  2612. <tr>
  2613. <td class="name">
  2614. <strong>textures</strong>
  2615. </td>
  2616. <td class="description last">
  2617. <p>The textures of a MRT-configured render target.</p>
  2618. </td>
  2619. </tr>
  2620. <tr>
  2621. <td class="name">
  2622. <strong>name</strong>
  2623. </td>
  2624. <td class="description last">
  2625. <p>The name of the MRT texture which index is requested.</p>
  2626. </td>
  2627. </tr>
  2628. </tbody>
  2629. </table>
  2630. <dl class="details">
  2631. <dt class="tag-returns"><strong>Returns:</strong> The texture index.</dt>
  2632. </dl>
  2633. </div>
  2634. <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>
  2635. <div class="method">
  2636. <div class="description">
  2637. <p>Create a new set of uniforms for describing the curve modifier.</p>
  2638. </div>
  2639. <table class="params">
  2640. <tbody>
  2641. <tr>
  2642. <td class="name">
  2643. <strong>splineTexture</strong>
  2644. </td>
  2645. <td class="description last">
  2646. <p>Which holds the curve description.</p>
  2647. </td>
  2648. </tr>
  2649. </tbody>
  2650. </table>
  2651. <dl class="details">
  2652. <dt class="tag-returns"><strong>Returns:</strong> The uniforms object to be used in the shader.</dt>
  2653. </dl>
  2654. </div>
  2655. <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>
  2656. <div class="method">
  2657. <div class="description">
  2658. <p>Given the count of vectors and their vector length, this function computes
  2659. a total length in bytes with buffer alignment according to STD140 layout.</p>
  2660. </div>
  2661. <table class="params">
  2662. <tbody>
  2663. <tr>
  2664. <td class="name">
  2665. <strong>count</strong>
  2666. </td>
  2667. <td class="description last">
  2668. <p>The number of vectors.</p>
  2669. </td>
  2670. </tr>
  2671. <tr>
  2672. <td class="name">
  2673. <strong>vectorLength</strong>
  2674. </td>
  2675. <td class="description last">
  2676. <p>The vector length.</p>
  2677. <p>Default is <code>4</code>.</p>
  2678. </td>
  2679. </tr>
  2680. </tbody>
  2681. </table>
  2682. <dl class="details">
  2683. <dt class="tag-returns"><strong>Returns:</strong> The padded length.</dt>
  2684. </dl>
  2685. </div>
  2686. <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>
  2687. <div class="method">
  2688. <div class="description">
  2689. <p>Returns a node that represents the <code>z</code> coordinate in view space
  2690. for the current fragment. It's a different representation of the
  2691. default depth value.</p>
  2692. <p>This value can be part of a computation that defines how the fog
  2693. density increases when moving away from the camera.</p>
  2694. </div>
  2695. <table class="params">
  2696. <tbody>
  2697. <tr>
  2698. <td class="name">
  2699. <strong>builder</strong>
  2700. </td>
  2701. <td class="description last">
  2702. <p>The current node builder.</p>
  2703. </td>
  2704. </tr>
  2705. </tbody>
  2706. </table>
  2707. <dl class="details">
  2708. <dt class="tag-returns"><strong>Returns:</strong> The viewZ node.</dt>
  2709. </dl>
  2710. </div>
  2711. <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>
  2712. <div class="method">
  2713. <div class="description">
  2714. <p>Returns the percentage in the closed interval <code>[0, 1]</code> of the given value
  2715. between the start and end point.</p>
  2716. </div>
  2717. <table class="params">
  2718. <tbody>
  2719. <tr>
  2720. <td class="name">
  2721. <strong>x</strong>
  2722. </td>
  2723. <td class="description last">
  2724. <p>The start point</p>
  2725. </td>
  2726. </tr>
  2727. <tr>
  2728. <td class="name">
  2729. <strong>y</strong>
  2730. </td>
  2731. <td class="description last">
  2732. <p>The end point.</p>
  2733. </td>
  2734. </tr>
  2735. <tr>
  2736. <td class="name">
  2737. <strong>value</strong>
  2738. </td>
  2739. <td class="description last">
  2740. <p>A value between start and end.</p>
  2741. </td>
  2742. </tr>
  2743. </tbody>
  2744. </table>
  2745. <dl class="details">
  2746. <dt class="tag-returns"><strong>Returns:</strong> The interpolation factor.</dt>
  2747. </dl>
  2748. </div>
  2749. <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>
  2750. <div class="method">
  2751. <div class="description">
  2752. <p>Returns <code>true</code> if the given number is a power of two.</p>
  2753. </div>
  2754. <table class="params">
  2755. <tbody>
  2756. <tr>
  2757. <td class="name">
  2758. <strong>value</strong>
  2759. </td>
  2760. <td class="description last">
  2761. <p>The value to check.</p>
  2762. </td>
  2763. </tr>
  2764. </tbody>
  2765. </table>
  2766. <dl class="details">
  2767. <dt class="tag-returns"><strong>Returns:</strong> Whether the given number is a power of two or not.</dt>
  2768. </dl>
  2769. </div>
  2770. <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>
  2771. <div class="method">
  2772. <div class="description">
  2773. <p>Returns <code>true</code> if the given object is a typed array.</p>
  2774. </div>
  2775. <table class="params">
  2776. <tbody>
  2777. <tr>
  2778. <td class="name">
  2779. <strong>array</strong>
  2780. </td>
  2781. <td class="description last">
  2782. <p>The object to check.</p>
  2783. </td>
  2784. </tr>
  2785. </tbody>
  2786. </table>
  2787. <dl class="details">
  2788. <dt class="tag-returns"><strong>Returns:</strong> Whether the given object is a typed array.</dt>
  2789. </dl>
  2790. </div>
  2791. <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>
  2792. <div class="method">
  2793. <div class="description">
  2794. <p>Returns a value linearly interpolated from two known points based on the given interval -
  2795. <code>t = 0</code> will return <code>x</code> and <code>t = 1</code> will return <code>y</code>.</p>
  2796. </div>
  2797. <table class="params">
  2798. <tbody>
  2799. <tr>
  2800. <td class="name">
  2801. <strong>x</strong>
  2802. </td>
  2803. <td class="description last">
  2804. <p>The start point</p>
  2805. </td>
  2806. </tr>
  2807. <tr>
  2808. <td class="name">
  2809. <strong>y</strong>
  2810. </td>
  2811. <td class="description last">
  2812. <p>The end point.</p>
  2813. </td>
  2814. </tr>
  2815. <tr>
  2816. <td class="name">
  2817. <strong>t</strong>
  2818. </td>
  2819. <td class="description last">
  2820. <p>The interpolation factor in the closed interval <code>[0, 1]</code>.</p>
  2821. </td>
  2822. </tr>
  2823. </tbody>
  2824. </table>
  2825. <dl class="details">
  2826. <dt class="tag-returns"><strong>Returns:</strong> The interpolated value.</dt>
  2827. </dl>
  2828. </div>
  2829. <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>
  2830. <div class="method">
  2831. <div class="description">
  2832. <p>Converts the keyframes of the given animation clip to an additive format.</p>
  2833. </div>
  2834. <table class="params">
  2835. <tbody>
  2836. <tr>
  2837. <td class="name">
  2838. <strong>targetClip</strong>
  2839. </td>
  2840. <td class="description last">
  2841. <p>The clip to make additive.</p>
  2842. </td>
  2843. </tr>
  2844. <tr>
  2845. <td class="name">
  2846. <strong>referenceFrame</strong>
  2847. </td>
  2848. <td class="description last">
  2849. <p>The reference frame.</p>
  2850. <p>Default is <code>0</code>.</p>
  2851. </td>
  2852. </tr>
  2853. <tr>
  2854. <td class="name">
  2855. <strong>referenceClip</strong>
  2856. </td>
  2857. <td class="description last">
  2858. <p>The reference clip.</p>
  2859. <p>Default is <code>targetClip</code>.</p>
  2860. </td>
  2861. </tr>
  2862. <tr>
  2863. <td class="name">
  2864. <strong>fps</strong>
  2865. </td>
  2866. <td class="description last">
  2867. <p>The FPS.</p>
  2868. <p>Default is <code>30</code>.</p>
  2869. </td>
  2870. </tr>
  2871. </tbody>
  2872. </table>
  2873. <dl class="details">
  2874. <dt class="tag-returns"><strong>Returns:</strong> The updated clip which is now additive.</dt>
  2875. </dl>
  2876. </div>
  2877. <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>
  2878. <div class="method">
  2879. <div class="description">
  2880. <p>Performs a linear mapping from range <code>&lt;a1, a2&gt;</code> to range <code>&lt;b1, b2&gt;</code>
  2881. for the given value.</p>
  2882. </div>
  2883. <table class="params">
  2884. <tbody>
  2885. <tr>
  2886. <td class="name">
  2887. <strong>x</strong>
  2888. </td>
  2889. <td class="description last">
  2890. <p>The value to be mapped.</p>
  2891. </td>
  2892. </tr>
  2893. <tr>
  2894. <td class="name">
  2895. <strong>a1</strong>
  2896. </td>
  2897. <td class="description last">
  2898. <p>Minimum value for range A.</p>
  2899. </td>
  2900. </tr>
  2901. <tr>
  2902. <td class="name">
  2903. <strong>a2</strong>
  2904. </td>
  2905. <td class="description last">
  2906. <p>Maximum value for range A.</p>
  2907. </td>
  2908. </tr>
  2909. <tr>
  2910. <td class="name">
  2911. <strong>b1</strong>
  2912. </td>
  2913. <td class="description last">
  2914. <p>Minimum value for range B.</p>
  2915. </td>
  2916. </tr>
  2917. <tr>
  2918. <td class="name">
  2919. <strong>b2</strong>
  2920. </td>
  2921. <td class="description last">
  2922. <p>Maximum value for range B.</p>
  2923. </td>
  2924. </tr>
  2925. </tbody>
  2926. </table>
  2927. <dl class="details">
  2928. <dt class="tag-returns"><strong>Returns:</strong> The mapped value.</dt>
  2929. </dl>
  2930. </div>
  2931. <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>
  2932. <div class="method">
  2933. <div class="description">
  2934. <p>Normalizes the given value according to the given typed array.</p>
  2935. </div>
  2936. <table class="params">
  2937. <tbody>
  2938. <tr>
  2939. <td class="name">
  2940. <strong>value</strong>
  2941. </td>
  2942. <td class="description last">
  2943. <p>The float value in the range <code>[0,1]</code> to normalize.</p>
  2944. </td>
  2945. </tr>
  2946. <tr>
  2947. <td class="name">
  2948. <strong>array</strong>
  2949. </td>
  2950. <td class="description last">
  2951. <p>The typed array that defines the data type of the value.</p>
  2952. </td>
  2953. </tr>
  2954. </tbody>
  2955. </table>
  2956. <dl class="details">
  2957. <dt class="tag-returns"><strong>Returns:</strong> The normalize value.</dt>
  2958. </dl>
  2959. </div>
  2960. <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>
  2961. <div class="method">
  2962. <div class="description">
  2963. <p>Returns a value that alternates between <code>0</code> and the given <code>length</code> parameter.</p>
  2964. </div>
  2965. <table class="params">
  2966. <tbody>
  2967. <tr>
  2968. <td class="name">
  2969. <strong>x</strong>
  2970. </td>
  2971. <td class="description last">
  2972. <p>The value to pingpong.</p>
  2973. </td>
  2974. </tr>
  2975. <tr>
  2976. <td class="name">
  2977. <strong>length</strong>
  2978. </td>
  2979. <td class="description last">
  2980. <p>The positive value the function will pingpong to.</p>
  2981. <p>Default is <code>1</code>.</p>
  2982. </td>
  2983. </tr>
  2984. </tbody>
  2985. </table>
  2986. <dl class="details">
  2987. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  2988. </dl>
  2989. </div>
  2990. <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>
  2991. <div class="method">
  2992. <div class="description">
  2993. <p>Converts radians to degrees.</p>
  2994. </div>
  2995. <table class="params">
  2996. <tbody>
  2997. <tr>
  2998. <td class="name">
  2999. <strong>radians</strong>
  3000. </td>
  3001. <td class="description last">
  3002. <p>A value in radians.</p>
  3003. </td>
  3004. </tr>
  3005. </tbody>
  3006. </table>
  3007. <dl class="details">
  3008. <dt class="tag-returns"><strong>Returns:</strong> The converted value in degrees.</dt>
  3009. </dl>
  3010. </div>
  3011. <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>
  3012. <div class="method">
  3013. <div class="description">
  3014. <p>Returns a random float from <code>&lt;low, high&gt;</code> interval.</p>
  3015. </div>
  3016. <table class="params">
  3017. <tbody>
  3018. <tr>
  3019. <td class="name">
  3020. <strong>low</strong>
  3021. </td>
  3022. <td class="description last">
  3023. <p>The lower value boundary.</p>
  3024. </td>
  3025. </tr>
  3026. <tr>
  3027. <td class="name">
  3028. <strong>high</strong>
  3029. </td>
  3030. <td class="description last">
  3031. <p>The upper value boundary</p>
  3032. </td>
  3033. </tr>
  3034. </tbody>
  3035. </table>
  3036. <dl class="details">
  3037. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  3038. </dl>
  3039. </div>
  3040. <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>
  3041. <div class="method">
  3042. <div class="description">
  3043. <p>Returns a random integer from <code>&lt;-range/2, range/2&gt;</code> interval.</p>
  3044. </div>
  3045. <table class="params">
  3046. <tbody>
  3047. <tr>
  3048. <td class="name">
  3049. <strong>range</strong>
  3050. </td>
  3051. <td class="description last">
  3052. <p>Defines the value range.</p>
  3053. </td>
  3054. </tr>
  3055. </tbody>
  3056. </table>
  3057. <dl class="details">
  3058. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  3059. </dl>
  3060. </div>
  3061. <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>
  3062. <div class="method">
  3063. <div class="description">
  3064. <p>Returns a random integer from <code>&lt;low, high&gt;</code> interval.</p>
  3065. </div>
  3066. <table class="params">
  3067. <tbody>
  3068. <tr>
  3069. <td class="name">
  3070. <strong>low</strong>
  3071. </td>
  3072. <td class="description last">
  3073. <p>The lower value boundary.</p>
  3074. </td>
  3075. </tr>
  3076. <tr>
  3077. <td class="name">
  3078. <strong>high</strong>
  3079. </td>
  3080. <td class="description last">
  3081. <p>The upper value boundary</p>
  3082. </td>
  3083. </tr>
  3084. </tbody>
  3085. </table>
  3086. <dl class="details">
  3087. <dt class="tag-returns"><strong>Returns:</strong> A random integer.</dt>
  3088. </dl>
  3089. </div>
  3090. <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>
  3091. <div class="method">
  3092. <div class="description">
  3093. <p>Helper function to create a SampleNode wrapped as a node object.</p>
  3094. </div>
  3095. <table class="params">
  3096. <tbody>
  3097. <tr>
  3098. <td class="name">
  3099. <strong>callback</strong>
  3100. </td>
  3101. <td class="description last">
  3102. <p>The function to be called when sampling. Should accept a UV node and return a value.</p>
  3103. </td>
  3104. </tr>
  3105. <tr>
  3106. <td class="name">
  3107. <strong>uv</strong>
  3108. </td>
  3109. <td class="description last">
  3110. <p>The UV node to be used in the texture sampling.</p>
  3111. <p>Default is <code>null</code>.</p>
  3112. </td>
  3113. </tr>
  3114. </tbody>
  3115. </table>
  3116. <dl class="details">
  3117. <dt class="tag-returns"><strong>Returns:</strong> The created SampleNode instance wrapped as a node object.</dt>
  3118. </dl>
  3119. </div>
  3120. <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>
  3121. <div class="method">
  3122. <div class="description">
  3123. <p>Returns a deterministic pseudo-random float in the interval <code>[0, 1]</code>.</p>
  3124. </div>
  3125. <table class="params">
  3126. <tbody>
  3127. <tr>
  3128. <td class="name">
  3129. <strong>s</strong>
  3130. </td>
  3131. <td class="description last">
  3132. <p>The integer seed.</p>
  3133. </td>
  3134. </tr>
  3135. </tbody>
  3136. </table>
  3137. <dl class="details">
  3138. <dt class="tag-returns"><strong>Returns:</strong> A random float.</dt>
  3139. </dl>
  3140. </div>
  3141. <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>
  3142. <div class="method">
  3143. <div class="description">
  3144. <p>Assumes 2 cameras that are parallel and share an X-axis, and that
  3145. the cameras' projection and world matrices have already been set.
  3146. And that near and far planes are identical for both cameras.
  3147. Visualization of this technique: https://computergraphics.stackexchange.com/a/4765</p>
  3148. </div>
  3149. <table class="params">
  3150. <tbody>
  3151. <tr>
  3152. <td class="name">
  3153. <strong>camera</strong>
  3154. </td>
  3155. <td class="description last">
  3156. <p>The camera to update.</p>
  3157. </td>
  3158. </tr>
  3159. <tr>
  3160. <td class="name">
  3161. <strong>cameraL</strong>
  3162. </td>
  3163. <td class="description last">
  3164. <p>The left camera.</p>
  3165. </td>
  3166. </tr>
  3167. <tr>
  3168. <td class="name">
  3169. <strong>cameraR</strong>
  3170. </td>
  3171. <td class="description last">
  3172. <p>The right camera.</p>
  3173. </td>
  3174. </tr>
  3175. </tbody>
  3176. </table>
  3177. </div>
  3178. <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>
  3179. <div class="method">
  3180. <div class="description">
  3181. <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>
  3182. defined by the given angles and order.</p>
  3183. <p>Rotations are applied to the axes in the order specified by order:
  3184. rotation by angle <code>a</code> is applied first, then by angle <code>b</code>, then by angle <code>c</code>.</p>
  3185. </div>
  3186. <table class="params">
  3187. <tbody>
  3188. <tr>
  3189. <td class="name">
  3190. <strong>q</strong>
  3191. </td>
  3192. <td class="description last">
  3193. <p>The quaternion to set.</p>
  3194. </td>
  3195. </tr>
  3196. <tr>
  3197. <td class="name">
  3198. <strong>a</strong>
  3199. </td>
  3200. <td class="description last">
  3201. <p>The rotation applied to the first axis, in radians.</p>
  3202. </td>
  3203. </tr>
  3204. <tr>
  3205. <td class="name">
  3206. <strong>b</strong>
  3207. </td>
  3208. <td class="description last">
  3209. <p>The rotation applied to the second axis, in radians.</p>
  3210. </td>
  3211. </tr>
  3212. <tr>
  3213. <td class="name">
  3214. <strong>c</strong>
  3215. </td>
  3216. <td class="description last">
  3217. <p>The rotation applied to the third axis, in radians.</p>
  3218. </td>
  3219. </tr>
  3220. <tr>
  3221. <td class="name">
  3222. <strong>order</strong>
  3223. </td>
  3224. <td class="description last">
  3225. <p>A string specifying the axes order.</p>
  3226. </td>
  3227. </tr>
  3228. </tbody>
  3229. </table>
  3230. </div>
  3231. <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>
  3232. <div class="method">
  3233. <div class="description">
  3234. <p>Shadow Render Object Function.</p>
  3235. </div>
  3236. <table class="params">
  3237. <tbody>
  3238. <tr>
  3239. <td class="name">
  3240. <strong>object</strong>
  3241. </td>
  3242. <td class="description last">
  3243. <p>The 3D object to render.</p>
  3244. </td>
  3245. </tr>
  3246. <tr>
  3247. <td class="name">
  3248. <strong>scene</strong>
  3249. </td>
  3250. <td class="description last">
  3251. <p>The scene containing the object.</p>
  3252. </td>
  3253. </tr>
  3254. <tr>
  3255. <td class="name">
  3256. <strong>_camera</strong>
  3257. </td>
  3258. <td class="description last">
  3259. <p>The camera used for rendering.</p>
  3260. </td>
  3261. </tr>
  3262. <tr>
  3263. <td class="name">
  3264. <strong>geometry</strong>
  3265. </td>
  3266. <td class="description last">
  3267. <p>The geometry of the object.</p>
  3268. </td>
  3269. </tr>
  3270. <tr>
  3271. <td class="name">
  3272. <strong>material</strong>
  3273. </td>
  3274. <td class="description last">
  3275. <p>The material of the object.</p>
  3276. </td>
  3277. </tr>
  3278. <tr>
  3279. <td class="name">
  3280. <strong>group</strong>
  3281. </td>
  3282. <td class="description last">
  3283. <p>The group the object belongs to.</p>
  3284. </td>
  3285. </tr>
  3286. <tr>
  3287. <td class="name">
  3288. <strong>params</strong>
  3289. </td>
  3290. <td class="description last">
  3291. <p>Additional parameters for rendering.</p>
  3292. </td>
  3293. </tr>
  3294. </tbody>
  3295. </table>
  3296. </div>
  3297. <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>
  3298. <div class="method">
  3299. <div class="description">
  3300. <p>A <a href="https://en.wikipedia.org/wiki/Smoothstep#Variations" target="_blank" rel="noopener">variation on smoothstep</a>
  3301. that has zero 1st and 2nd order derivatives at x=0 and x=1.</p>
  3302. </div>
  3303. <table class="params">
  3304. <tbody>
  3305. <tr>
  3306. <td class="name">
  3307. <strong>x</strong>
  3308. </td>
  3309. <td class="description last">
  3310. <p>The value to evaluate based on its position between min and max.</p>
  3311. </td>
  3312. </tr>
  3313. <tr>
  3314. <td class="name">
  3315. <strong>min</strong>
  3316. </td>
  3317. <td class="description last">
  3318. <p>The min value. Any x value below min will be <code>0</code>.</p>
  3319. </td>
  3320. </tr>
  3321. <tr>
  3322. <td class="name">
  3323. <strong>max</strong>
  3324. </td>
  3325. <td class="description last">
  3326. <p>The max value. Any x value above max will be <code>1</code>.</p>
  3327. </td>
  3328. </tr>
  3329. </tbody>
  3330. </table>
  3331. <dl class="details">
  3332. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  3333. </dl>
  3334. </div>
  3335. <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>
  3336. <div class="method">
  3337. <div class="description">
  3338. <p>Returns a value in the range <code>[0,1]</code> that represents the percentage that <code>x</code> has
  3339. moved between <code>min</code> and <code>max</code>, but smoothed or slowed down the closer <code>x</code> is to
  3340. the <code>min</code> and <code>max</code>.</p>
  3341. <p>See <a href="http://en.wikipedia.org/wiki/Smoothstep" target="_blank" rel="noopener">Smoothstep</a> for more details.</p>
  3342. </div>
  3343. <table class="params">
  3344. <tbody>
  3345. <tr>
  3346. <td class="name">
  3347. <strong>x</strong>
  3348. </td>
  3349. <td class="description last">
  3350. <p>The value to evaluate based on its position between min and max.</p>
  3351. </td>
  3352. </tr>
  3353. <tr>
  3354. <td class="name">
  3355. <strong>min</strong>
  3356. </td>
  3357. <td class="description last">
  3358. <p>The min value. Any x value below min will be <code>0</code>.</p>
  3359. </td>
  3360. </tr>
  3361. <tr>
  3362. <td class="name">
  3363. <strong>max</strong>
  3364. </td>
  3365. <td class="description last">
  3366. <p>The max value. Any x value above max will be <code>1</code>.</p>
  3367. </td>
  3368. </tr>
  3369. </tbody>
  3370. </table>
  3371. <dl class="details">
  3372. <dt class="tag-returns"><strong>Returns:</strong> The alternated value.</dt>
  3373. </dl>
  3374. </div>
  3375. <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>
  3376. <div class="method">
  3377. <div class="description">
  3378. <p>Sorts the given array by the previously computed order via <code>getKeyframeOrder()</code>.</p>
  3379. </div>
  3380. <table class="params">
  3381. <tbody>
  3382. <tr>
  3383. <td class="name">
  3384. <strong>values</strong>
  3385. </td>
  3386. <td class="description last">
  3387. <p>The values to sort.</p>
  3388. </td>
  3389. </tr>
  3390. <tr>
  3391. <td class="name">
  3392. <strong>stride</strong>
  3393. </td>
  3394. <td class="description last">
  3395. <p>The stride.</p>
  3396. </td>
  3397. </tr>
  3398. <tr>
  3399. <td class="name">
  3400. <strong>order</strong>
  3401. </td>
  3402. <td class="description last">
  3403. <p>The sort order.</p>
  3404. </td>
  3405. </tr>
  3406. </tbody>
  3407. </table>
  3408. <dl class="details">
  3409. <dt class="tag-returns"><strong>Returns:</strong> The sorted values.</dt>
  3410. </dl>
  3411. </div>
  3412. <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>
  3413. <div class="method">
  3414. <div class="description">
  3415. <p>Creates a new clip, containing only the segment of the original clip between the given frames.</p>
  3416. </div>
  3417. <table class="params">
  3418. <tbody>
  3419. <tr>
  3420. <td class="name">
  3421. <strong>sourceClip</strong>
  3422. </td>
  3423. <td class="description last">
  3424. <p>The values to sort.</p>
  3425. </td>
  3426. </tr>
  3427. <tr>
  3428. <td class="name">
  3429. <strong>name</strong>
  3430. </td>
  3431. <td class="description last">
  3432. <p>The name of the clip.</p>
  3433. </td>
  3434. </tr>
  3435. <tr>
  3436. <td class="name">
  3437. <strong>startFrame</strong>
  3438. </td>
  3439. <td class="description last">
  3440. <p>The start frame.</p>
  3441. </td>
  3442. </tr>
  3443. <tr>
  3444. <td class="name">
  3445. <strong>endFrame</strong>
  3446. </td>
  3447. <td class="description last">
  3448. <p>The end frame.</p>
  3449. </td>
  3450. </tr>
  3451. <tr>
  3452. <td class="name">
  3453. <strong>fps</strong>
  3454. </td>
  3455. <td class="description last">
  3456. <p>The FPS.</p>
  3457. <p>Default is <code>30</code>.</p>
  3458. </td>
  3459. </tr>
  3460. </tbody>
  3461. </table>
  3462. <dl class="details">
  3463. <dt class="tag-returns"><strong>Returns:</strong> The new sub clip.</dt>
  3464. </dl>
  3465. </div>
  3466. <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>
  3467. <div class="method">
  3468. <div class="description">
  3469. <p>Returns a half precision floating point value (FP16) from the given single
  3470. precision floating point value (FP32).</p>
  3471. </div>
  3472. <table class="params">
  3473. <tbody>
  3474. <tr>
  3475. <td class="name">
  3476. <strong>val</strong>
  3477. </td>
  3478. <td class="description last">
  3479. <p>A single precision floating point value.</p>
  3480. </td>
  3481. </tr>
  3482. </tbody>
  3483. </table>
  3484. <dl class="details">
  3485. <dt class="tag-returns"><strong>Returns:</strong> The FP16 value.</dt>
  3486. </dl>
  3487. </div>
  3488. <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>
  3489. <div class="method">
  3490. <div class="description">
  3491. <p>Updates the world matrices for the given camera based on the parent 3D object.</p>
  3492. </div>
  3493. <table class="params">
  3494. <tbody>
  3495. <tr>
  3496. <td class="name">
  3497. <strong>camera</strong>
  3498. </td>
  3499. <td class="description last">
  3500. <p>The camera to update.</p>
  3501. </td>
  3502. </tr>
  3503. <tr>
  3504. <td class="name">
  3505. <strong>parent</strong>
  3506. </td>
  3507. <td class="description last">
  3508. <p>The parent 3D object.</p>
  3509. </td>
  3510. </tr>
  3511. </tbody>
  3512. </table>
  3513. </div>
  3514. <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>
  3515. <div class="method">
  3516. <div class="description">
  3517. <p>Updates the given camera with the transformation of the XR camera and parent object.</p>
  3518. </div>
  3519. <table class="params">
  3520. <tbody>
  3521. <tr>
  3522. <td class="name">
  3523. <strong>camera</strong>
  3524. </td>
  3525. <td class="description last">
  3526. <p>The camera to update.</p>
  3527. </td>
  3528. </tr>
  3529. <tr>
  3530. <td class="name">
  3531. <strong>cameraXR</strong>
  3532. </td>
  3533. <td class="description last">
  3534. <p>The XR camera.</p>
  3535. </td>
  3536. </tr>
  3537. <tr>
  3538. <td class="name">
  3539. <strong>parent</strong>
  3540. </td>
  3541. <td class="description last">
  3542. <p>The parent 3D object.</p>
  3543. </td>
  3544. </tr>
  3545. </tbody>
  3546. </table>
  3547. </div>
  3548. <h2 class="subsection-title">Type Definitions</h2>
  3549. <div class="member">
  3550. <h3 class="name" id="ConstantsInterpolationSamplingMode" translate="no">.<a href="#ConstantsInterpolationSamplingMode">ConstantsInterpolationSamplingMode</a> </h3>
  3551. <div class="description">
  3552. <p>Represents the different interpolation sampling modes.</p>
  3553. </div>
  3554. <table class="props">
  3555. <tbody>
  3556. <tr>
  3557. <td class="name">
  3558. <strong>NORMAL</strong>
  3559. <br>
  3560. <span class="param-type">string</span>
  3561. </td>
  3562. <td class="description last">
  3563. <p>Normal sampling mode.</p>
  3564. </td>
  3565. </tr>
  3566. <tr>
  3567. <td class="name">
  3568. <strong>CENTROID</strong>
  3569. <br>
  3570. <span class="param-type">string</span>
  3571. </td>
  3572. <td class="description last">
  3573. <p>Centroid sampling mode.</p>
  3574. </td>
  3575. </tr>
  3576. <tr>
  3577. <td class="name">
  3578. <strong>SAMPLE</strong>
  3579. <br>
  3580. <span class="param-type">string</span>
  3581. </td>
  3582. <td class="description last">
  3583. <p>Sample-specific sampling mode.</p>
  3584. </td>
  3585. </tr>
  3586. <tr>
  3587. <td class="name">
  3588. <strong>FIRST</strong>
  3589. <br>
  3590. <span class="param-type">string</span>
  3591. </td>
  3592. <td class="description last">
  3593. <p>Flat interpolation using the first vertex.</p>
  3594. </td>
  3595. </tr>
  3596. <tr>
  3597. <td class="name">
  3598. <strong>EITHER</strong>
  3599. <br>
  3600. <span class="param-type">string</span>
  3601. </td>
  3602. <td class="description last">
  3603. <p>Flat interpolation using either vertex.</p>
  3604. </td>
  3605. </tr>
  3606. </tbody>
  3607. </table>
  3608. </div>
  3609. <div class="member">
  3610. <h3 class="name" id="ConstantsInterpolationSamplingType" translate="no">.<a href="#ConstantsInterpolationSamplingType">ConstantsInterpolationSamplingType</a> </h3>
  3611. <div class="description">
  3612. <p>Represents the different interpolation sampling types.</p>
  3613. </div>
  3614. <table class="props">
  3615. <tbody>
  3616. <tr>
  3617. <td class="name">
  3618. <strong>PERSPECTIVE</strong>
  3619. <br>
  3620. <span class="param-type">string</span>
  3621. </td>
  3622. <td class="description last">
  3623. <p>Perspective-correct interpolation.</p>
  3624. </td>
  3625. </tr>
  3626. <tr>
  3627. <td class="name">
  3628. <strong>LINEAR</strong>
  3629. <br>
  3630. <span class="param-type">string</span>
  3631. </td>
  3632. <td class="description last">
  3633. <p>Linear interpolation.</p>
  3634. </td>
  3635. </tr>
  3636. <tr>
  3637. <td class="name">
  3638. <strong>FLAT</strong>
  3639. <br>
  3640. <span class="param-type">string</span>
  3641. </td>
  3642. <td class="description last">
  3643. <p>Flat interpolation.</p>
  3644. </td>
  3645. </tr>
  3646. </tbody>
  3647. </table>
  3648. </div>
  3649. <div class="member">
  3650. <h3 class="name" id="ConstantsMouse" translate="no">.<a href="#ConstantsMouse">ConstantsMouse</a> </h3>
  3651. <div class="description">
  3652. <p>This type represents mouse buttons and interaction types in context of controls.</p>
  3653. </div>
  3654. <table class="props">
  3655. <tbody>
  3656. <tr>
  3657. <td class="name">
  3658. <strong>MIDDLE</strong>
  3659. <br>
  3660. <span class="param-type">number</span>
  3661. </td>
  3662. <td class="description last">
  3663. <p>The left mouse button.</p>
  3664. </td>
  3665. </tr>
  3666. <tr>
  3667. <td class="name">
  3668. <strong>LEFT</strong>
  3669. <br>
  3670. <span class="param-type">number</span>
  3671. </td>
  3672. <td class="description last">
  3673. <p>The middle mouse button.</p>
  3674. </td>
  3675. </tr>
  3676. <tr>
  3677. <td class="name">
  3678. <strong>RIGHT</strong>
  3679. <br>
  3680. <span class="param-type">number</span>
  3681. </td>
  3682. <td class="description last">
  3683. <p>The right mouse button.</p>
  3684. </td>
  3685. </tr>
  3686. <tr>
  3687. <td class="name">
  3688. <strong>ROTATE</strong>
  3689. <br>
  3690. <span class="param-type">number</span>
  3691. </td>
  3692. <td class="description last">
  3693. <p>A rotate interaction.</p>
  3694. </td>
  3695. </tr>
  3696. <tr>
  3697. <td class="name">
  3698. <strong>DOLLY</strong>
  3699. <br>
  3700. <span class="param-type">number</span>
  3701. </td>
  3702. <td class="description last">
  3703. <p>A dolly interaction.</p>
  3704. </td>
  3705. </tr>
  3706. <tr>
  3707. <td class="name">
  3708. <strong>PAN</strong>
  3709. <br>
  3710. <span class="param-type">number</span>
  3711. </td>
  3712. <td class="description last">
  3713. <p>A pan interaction.</p>
  3714. </td>
  3715. </tr>
  3716. </tbody>
  3717. </table>
  3718. </div>
  3719. <div class="member">
  3720. <h3 class="name" id="ConstantsTimestampQuery" translate="no">.<a href="#ConstantsTimestampQuery">ConstantsTimestampQuery</a> </h3>
  3721. <div class="description">
  3722. <p>This type represents the different timestamp query types.</p>
  3723. </div>
  3724. <table class="props">
  3725. <tbody>
  3726. <tr>
  3727. <td class="name">
  3728. <strong>COMPUTE</strong>
  3729. <br>
  3730. <span class="param-type">string</span>
  3731. </td>
  3732. <td class="description last">
  3733. <p>A <code>compute</code> timestamp query.</p>
  3734. </td>
  3735. </tr>
  3736. <tr>
  3737. <td class="name">
  3738. <strong>RENDER</strong>
  3739. <br>
  3740. <span class="param-type">string</span>
  3741. </td>
  3742. <td class="description last">
  3743. <p>A <code>render</code> timestamp query.</p>
  3744. </td>
  3745. </tr>
  3746. </tbody>
  3747. </table>
  3748. </div>
  3749. <div class="member">
  3750. <h3 class="name" id="ConstantsTouch" translate="no">.<a href="#ConstantsTouch">ConstantsTouch</a> </h3>
  3751. <div class="description">
  3752. <p>This type represents touch interaction types in context of controls.</p>
  3753. </div>
  3754. <table class="props">
  3755. <tbody>
  3756. <tr>
  3757. <td class="name">
  3758. <strong>ROTATE</strong>
  3759. <br>
  3760. <span class="param-type">number</span>
  3761. </td>
  3762. <td class="description last">
  3763. <p>A rotate interaction.</p>
  3764. </td>
  3765. </tr>
  3766. <tr>
  3767. <td class="name">
  3768. <strong>PAN</strong>
  3769. <br>
  3770. <span class="param-type">number</span>
  3771. </td>
  3772. <td class="description last">
  3773. <p>A pan interaction.</p>
  3774. </td>
  3775. </tr>
  3776. <tr>
  3777. <td class="name">
  3778. <strong>DOLLY_PAN</strong>
  3779. <br>
  3780. <span class="param-type">number</span>
  3781. </td>
  3782. <td class="description last">
  3783. <p>The dolly-pan interaction.</p>
  3784. </td>
  3785. </tr>
  3786. <tr>
  3787. <td class="name">
  3788. <strong>DOLLY_ROTATE</strong>
  3789. <br>
  3790. <span class="param-type">number</span>
  3791. </td>
  3792. <td class="description last">
  3793. <p>A dolly-rotate interaction.</p>
  3794. </td>
  3795. </tr>
  3796. </tbody>
  3797. </table>
  3798. </div>
  3799. <div class="member">
  3800. <h3 class="name" id="DebugConfig" translate="no">.<a href="#DebugConfig">DebugConfig</a> </h3>
  3801. <div class="description">
  3802. <p>Debug configuration.</p>
  3803. </div>
  3804. <table class="props">
  3805. <tbody>
  3806. <tr>
  3807. <td class="name">
  3808. <strong>checkShaderErrors</strong>
  3809. <br>
  3810. <span class="param-type">boolean</span>
  3811. </td>
  3812. <td class="description last">
  3813. <p>Whether shader errors should be checked or not.</p>
  3814. </td>
  3815. </tr>
  3816. <tr>
  3817. <td class="name">
  3818. <strong>onShaderError</strong>
  3819. <br>
  3820. <span class="param-type">function</span>
  3821. </td>
  3822. <td class="description last">
  3823. <p>A callback function that is executed when a shader error happens. Only supported with WebGL 2 right now.</p>
  3824. </td>
  3825. </tr>
  3826. <tr>
  3827. <td class="name">
  3828. <strong>getShaderAsync</strong>
  3829. <br>
  3830. <span class="param-type">function</span>
  3831. </td>
  3832. <td class="description last">
  3833. <p>Allows the get the raw shader code for the given scene, camera and 3D object.</p>
  3834. </td>
  3835. </tr>
  3836. </tbody>
  3837. </table>
  3838. </div>
  3839. <div class="member">
  3840. <h3 class="name" id="ShadowMapConfig" translate="no">.<a href="#ShadowMapConfig">ShadowMapConfig</a> </h3>
  3841. <div class="description">
  3842. <p>Shadow map configuration</p>
  3843. </div>
  3844. <table class="props">
  3845. <tbody>
  3846. <tr>
  3847. <td class="name">
  3848. <strong>enabled</strong>
  3849. <br>
  3850. <span class="param-type">boolean</span>
  3851. </td>
  3852. <td class="description last">
  3853. <p>Whether to globally enable shadows or not.</p>
  3854. </td>
  3855. </tr>
  3856. <tr>
  3857. <td class="name">
  3858. <strong>transmitted</strong>
  3859. <br>
  3860. <span class="param-type">boolean</span>
  3861. </td>
  3862. <td class="description last">
  3863. <p>Whether to enable light transmission through non-opaque materials.</p>
  3864. </td>
  3865. </tr>
  3866. <tr>
  3867. <td class="name">
  3868. <strong>type</strong>
  3869. <br>
  3870. <span class="param-type">number</span>
  3871. </td>
  3872. <td class="description last">
  3873. <p>The shadow map type.</p>
  3874. </td>
  3875. </tr>
  3876. </tbody>
  3877. </table>
  3878. </div>
  3879. <div class="member">
  3880. <h3 class="name" id="XRConfig" translate="no">.<a href="#XRConfig">XRConfig</a> </h3>
  3881. <div class="description">
  3882. <p>XR configuration.</p>
  3883. </div>
  3884. <table class="props">
  3885. <tbody>
  3886. <tr>
  3887. <td class="name">
  3888. <strong>enabled</strong>
  3889. <br>
  3890. <span class="param-type">boolean</span>
  3891. </td>
  3892. <td class="description last">
  3893. <p>Whether to globally enable XR or not.</p>
  3894. </td>
  3895. </tr>
  3896. </tbody>
  3897. </table>
  3898. </div>
  3899. <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>
  3900. <div class="method">
  3901. <div class="description">
  3902. <p>Animation loop parameter of <code>renderer.setAnimationLoop()</code>.</p>
  3903. </div>
  3904. <table class="params">
  3905. <tbody>
  3906. <tr>
  3907. <td class="name">
  3908. <strong>time</strong>
  3909. </td>
  3910. <td class="description last">
  3911. <p>A timestamp indicating the end time of the previous frame's rendering.</p>
  3912. </td>
  3913. </tr>
  3914. <tr>
  3915. <td class="name">
  3916. <strong>frame</strong>
  3917. </td>
  3918. <td class="description last">
  3919. <p>A reference to the current XR frame. Only relevant when using XR rendering.</p>
  3920. </td>
  3921. </tr>
  3922. </tbody>
  3923. </table>
  3924. </div>
  3925. <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>
  3926. <div class="method">
  3927. <div class="description">
  3928. <p>Callback for onError in loaders.</p>
  3929. </div>
  3930. <table class="params">
  3931. <tbody>
  3932. <tr>
  3933. <td class="name">
  3934. <strong>error</strong>
  3935. </td>
  3936. <td class="description last">
  3937. <p>The error which occurred during the loading process.</p>
  3938. </td>
  3939. </tr>
  3940. </tbody>
  3941. </table>
  3942. </div>
  3943. <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>
  3944. <div class="method">
  3945. <div class="description">
  3946. <p>Callback for onProgress in loaders.</p>
  3947. </div>
  3948. <table class="params">
  3949. <tbody>
  3950. <tr>
  3951. <td class="name">
  3952. <strong>event</strong>
  3953. </td>
  3954. <td class="description last">
  3955. <p>An instance of <code>ProgressEvent</code> that represents the current loading status.</p>
  3956. </td>
  3957. </tr>
  3958. </tbody>
  3959. </table>
  3960. </div>
  3961. <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>
  3962. <div class="method">
  3963. <div class="description">
  3964. <p>Callback for <a href="Renderer.html#setRenderObjectFunction">Renderer#setRenderObjectFunction</a>.</p>
  3965. </div>
  3966. <table class="params">
  3967. <tbody>
  3968. <tr>
  3969. <td class="name">
  3970. <strong>object</strong>
  3971. </td>
  3972. <td class="description last">
  3973. <p>The 3D object.</p>
  3974. </td>
  3975. </tr>
  3976. <tr>
  3977. <td class="name">
  3978. <strong>scene</strong>
  3979. </td>
  3980. <td class="description last">
  3981. <p>The scene the 3D object belongs to.</p>
  3982. </td>
  3983. </tr>
  3984. <tr>
  3985. <td class="name">
  3986. <strong>camera</strong>
  3987. </td>
  3988. <td class="description last">
  3989. <p>The camera the object should be rendered with.</p>
  3990. </td>
  3991. </tr>
  3992. <tr>
  3993. <td class="name">
  3994. <strong>geometry</strong>
  3995. </td>
  3996. <td class="description last">
  3997. <p>The object's geometry.</p>
  3998. </td>
  3999. </tr>
  4000. <tr>
  4001. <td class="name">
  4002. <strong>material</strong>
  4003. </td>
  4004. <td class="description last">
  4005. <p>The object's material.</p>
  4006. </td>
  4007. </tr>
  4008. <tr>
  4009. <td class="name">
  4010. <strong>group</strong>
  4011. </td>
  4012. <td class="description last">
  4013. <p>Only relevant for objects using multiple materials. This represents a group entry from the respective <code>BufferGeometry</code>.</p>
  4014. </td>
  4015. </tr>
  4016. <tr>
  4017. <td class="name">
  4018. <strong>lightsNode</strong>
  4019. </td>
  4020. <td class="description last">
  4021. <p>The current lights node.</p>
  4022. </td>
  4023. </tr>
  4024. <tr>
  4025. <td class="name">
  4026. <strong>clippingContext</strong>
  4027. </td>
  4028. <td class="description last">
  4029. <p>The clipping context.</p>
  4030. </td>
  4031. </tr>
  4032. <tr>
  4033. <td class="name">
  4034. <strong>passId</strong>
  4035. </td>
  4036. <td class="description last">
  4037. <p>An optional ID for identifying the pass.</p>
  4038. <p>Default is <code>null</code>.</p>
  4039. </td>
  4040. </tr>
  4041. </tbody>
  4042. </table>
  4043. </div>
  4044. <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>
  4045. <div class="method">
  4046. <div class="description">
  4047. <p>Callback for <a href="Node.html#traverse">Node#traverse</a>.</p>
  4048. </div>
  4049. <table class="params">
  4050. <tbody>
  4051. <tr>
  4052. <td class="name">
  4053. <strong>node</strong>
  4054. </td>
  4055. <td class="description last">
  4056. <p>The current node.</p>
  4057. </td>
  4058. </tr>
  4059. </tbody>
  4060. </table>
  4061. </div>
  4062. </article>
  4063. </section>
  4064. <script src="../scripts/linenumber.js"></script>
  4065. <script src="../scripts/page.js"></script>
  4066. </body>
  4067. </html>
粤ICP备19079148号