PhysicalLightingModel.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PhysicalLightingModel - 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. <p class="inheritance" translate="no"><a href="LightingModel.html">LightingModel</a> → </p>
  13. <h1 translate="no">PhysicalLightingModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the lighting model for a PBR material.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="PhysicalLightingModel" translate="no">new <a href="#PhysicalLightingModel">PhysicalLightingModel</a><span class="signature">( clearcoat : <span class="param-type">boolean</span>, sheen : <span class="param-type">boolean</span>, iridescence : <span class="param-type">boolean</span>, anisotropy : <span class="param-type">boolean</span>, transmission : <span class="param-type">boolean</span>, dispersion : <span class="param-type">boolean</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new physical lighting model.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>clearcoat</strong>
  31. </td>
  32. <td class="description last">
  33. <p>Whether clearcoat is supported or not.</p>
  34. <p>Default is <code>false</code>.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>sheen</strong>
  40. </td>
  41. <td class="description last">
  42. <p>Whether sheen is supported or not.</p>
  43. <p>Default is <code>false</code>.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>iridescence</strong>
  49. </td>
  50. <td class="description last">
  51. <p>Whether iridescence is supported or not.</p>
  52. <p>Default is <code>false</code>.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>anisotropy</strong>
  58. </td>
  59. <td class="description last">
  60. <p>Whether anisotropy is supported or not.</p>
  61. <p>Default is <code>false</code>.</p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="name">
  66. <strong>transmission</strong>
  67. </td>
  68. <td class="description last">
  69. <p>Whether transmission is supported or not.</p>
  70. <p>Default is <code>false</code>.</p>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="name">
  75. <strong>dispersion</strong>
  76. </td>
  77. <td class="description last">
  78. <p>Whether dispersion is supported or not.</p>
  79. <p>Default is <code>false</code>.</p>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. <h2 class="subsection-title">Properties</h2>
  87. <div class="member">
  88. <h3 class="name" id="anisotropy" translate="no">.<a href="#anisotropy">anisotropy</a><span class="type-signature"> : boolean</span> </h3>
  89. <div class="description">
  90. <p>Whether anisotropy is supported or not.</p>
  91. <p>Default is <code>false</code>.</p>
  92. </div>
  93. </div>
  94. <div class="member">
  95. <h3 class="name" id="clearcoat" translate="no">.<a href="#clearcoat">clearcoat</a><span class="type-signature"> : boolean</span> </h3>
  96. <div class="description">
  97. <p>Whether clearcoat is supported or not.</p>
  98. <p>Default is <code>false</code>.</p>
  99. </div>
  100. </div>
  101. <div class="member">
  102. <h3 class="name" id="clearcoatRadiance" translate="no">.<a href="#clearcoatRadiance">clearcoatRadiance</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  103. <div class="description">
  104. <p>The clear coat radiance.</p>
  105. <p>Default is <code>null</code>.</p>
  106. </div>
  107. </div>
  108. <div class="member">
  109. <h3 class="name" id="clearcoatSpecularDirect" translate="no">.<a href="#clearcoatSpecularDirect">clearcoatSpecularDirect</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  110. <div class="description">
  111. <p>The clear coat specular direct.</p>
  112. <p>Default is <code>null</code>.</p>
  113. </div>
  114. </div>
  115. <div class="member">
  116. <h3 class="name" id="clearcoatSpecularIndirect" translate="no">.<a href="#clearcoatSpecularIndirect">clearcoatSpecularIndirect</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  117. <div class="description">
  118. <p>The clear coat specular indirect.</p>
  119. <p>Default is <code>null</code>.</p>
  120. </div>
  121. </div>
  122. <div class="member">
  123. <h3 class="name" id="dispersion" translate="no">.<a href="#dispersion">dispersion</a><span class="type-signature"> : boolean</span> </h3>
  124. <div class="description">
  125. <p>Whether dispersion is supported or not.</p>
  126. <p>Default is <code>false</code>.</p>
  127. </div>
  128. </div>
  129. <div class="member">
  130. <h3 class="name" id="iridescence" translate="no">.<a href="#iridescence">iridescence</a><span class="type-signature"> : boolean</span> </h3>
  131. <div class="description">
  132. <p>Whether iridescence is supported or not.</p>
  133. <p>Default is <code>false</code>.</p>
  134. </div>
  135. </div>
  136. <div class="member">
  137. <h3 class="name" id="iridescenceF0" translate="no">.<a href="#iridescenceF0">iridescenceF0</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  138. <div class="description">
  139. <p>The iridescence F0.</p>
  140. <p>Default is <code>null</code>.</p>
  141. </div>
  142. </div>
  143. <div class="member">
  144. <h3 class="name" id="iridescenceF0Dielectric" translate="no">.<a href="#iridescenceF0Dielectric">iridescenceF0Dielectric</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  145. <div class="description">
  146. <p>The iridescence F0 dielectric.</p>
  147. <p>Default is <code>null</code>.</p>
  148. </div>
  149. </div>
  150. <div class="member">
  151. <h3 class="name" id="iridescenceF0Metallic" translate="no">.<a href="#iridescenceF0Metallic">iridescenceF0Metallic</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  152. <div class="description">
  153. <p>The iridescence F0 metallic.</p>
  154. <p>Default is <code>null</code>.</p>
  155. </div>
  156. </div>
  157. <div class="member">
  158. <h3 class="name" id="iridescenceFresnel" translate="no">.<a href="#iridescenceFresnel">iridescenceFresnel</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  159. <div class="description">
  160. <p>The iridescence Fresnel.</p>
  161. <p>Default is <code>null</code>.</p>
  162. </div>
  163. </div>
  164. <div class="member">
  165. <h3 class="name" id="sheen" translate="no">.<a href="#sheen">sheen</a><span class="type-signature"> : boolean</span> </h3>
  166. <div class="description">
  167. <p>Whether sheen is supported or not.</p>
  168. <p>Default is <code>false</code>.</p>
  169. </div>
  170. </div>
  171. <div class="member">
  172. <h3 class="name" id="sheenSpecularDirect" translate="no">.<a href="#sheenSpecularDirect">sheenSpecularDirect</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  173. <div class="description">
  174. <p>The sheen specular direct.</p>
  175. <p>Default is <code>null</code>.</p>
  176. </div>
  177. </div>
  178. <div class="member">
  179. <h3 class="name" id="sheenSpecularIndirect" translate="no">.<a href="#sheenSpecularIndirect">sheenSpecularIndirect</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  180. <div class="description">
  181. <p>The sheen specular indirect.</p>
  182. <p>Default is <code>null</code>.</p>
  183. </div>
  184. </div>
  185. <div class="member">
  186. <h3 class="name" id="transmission" translate="no">.<a href="#transmission">transmission</a><span class="type-signature"> : boolean</span> </h3>
  187. <div class="description">
  188. <p>Whether transmission is supported or not.</p>
  189. <p>Default is <code>false</code>.</p>
  190. </div>
  191. </div>
  192. <h2 class="subsection-title">Methods</h2>
  193. <h3 class="name name-method" id="ambientOcclusion" translate="no">.<a href="#ambientOcclusion">ambientOcclusion</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  194. <div class="method">
  195. <div class="description">
  196. <p>Implements the ambient occlusion term.</p>
  197. </div>
  198. <table class="params">
  199. <tbody>
  200. <tr>
  201. <td class="name">
  202. <strong>builder</strong>
  203. </td>
  204. <td class="description last">
  205. <p>The current node builder.</p>
  206. </td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. <dl class="details">
  211. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#ambientOcclusion">LightingModel#ambientOcclusion</a></dt>
  212. </dl>
  213. </div>
  214. <h3 class="name name-method" id="direct" translate="no">.<a href="#direct">direct</a><span class="signature">( lightData : <span class="param-type">Object</span>, builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  215. <div class="method">
  216. <div class="description">
  217. <p>Implements the direct light.</p>
  218. </div>
  219. <table class="params">
  220. <tbody>
  221. <tr>
  222. <td class="name">
  223. <strong>lightData</strong>
  224. </td>
  225. <td class="description last">
  226. <p>The light data.</p>
  227. </td>
  228. </tr>
  229. <tr>
  230. <td class="name">
  231. <strong>builder</strong>
  232. </td>
  233. <td class="description last">
  234. <p>The current node builder.</p>
  235. </td>
  236. </tr>
  237. </tbody>
  238. </table>
  239. <dl class="details">
  240. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#direct">LightingModel#direct</a></dt>
  241. </dl>
  242. </div>
  243. <h3 class="name name-method" id="directRectArea" translate="no">.<a href="#directRectArea">directRectArea</a><span class="signature">( input : <span class="param-type">Object</span>, builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  244. <div class="method">
  245. <div class="description">
  246. <p>This method is intended for implementing the direct light term for
  247. rect area light nodes.</p>
  248. </div>
  249. <table class="params">
  250. <tbody>
  251. <tr>
  252. <td class="name">
  253. <strong>input</strong>
  254. </td>
  255. <td class="description last">
  256. <p>The input data.</p>
  257. </td>
  258. </tr>
  259. <tr>
  260. <td class="name">
  261. <strong>builder</strong>
  262. </td>
  263. <td class="description last">
  264. <p>The current node builder.</p>
  265. </td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. <dl class="details">
  270. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#directRectArea">LightingModel#directRectArea</a></dt>
  271. </dl>
  272. </div>
  273. <h3 class="name name-method" id="finish" translate="no">.<a href="#finish">finish</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  274. <div class="method">
  275. <div class="description">
  276. <p>Used for final lighting accumulations depending on the requested features.</p>
  277. </div>
  278. <table class="params">
  279. <tbody>
  280. <tr>
  281. <td class="name">
  282. <strong>builder</strong>
  283. </td>
  284. <td class="description last">
  285. <p>The current node builder.</p>
  286. </td>
  287. </tr>
  288. </tbody>
  289. </table>
  290. <dl class="details">
  291. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#finish">LightingModel#finish</a></dt>
  292. </dl>
  293. </div>
  294. <h3 class="name name-method" id="indirect" translate="no">.<a href="#indirect">indirect</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  295. <div class="method">
  296. <div class="description">
  297. <p>Implements the indirect lighting.</p>
  298. </div>
  299. <table class="params">
  300. <tbody>
  301. <tr>
  302. <td class="name">
  303. <strong>builder</strong>
  304. </td>
  305. <td class="description last">
  306. <p>The current node builder.</p>
  307. </td>
  308. </tr>
  309. </tbody>
  310. </table>
  311. <dl class="details">
  312. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#indirect">LightingModel#indirect</a></dt>
  313. </dl>
  314. </div>
  315. <h3 class="name name-method" id="indirectDiffuse" translate="no">.<a href="#indirectDiffuse">indirectDiffuse</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  316. <div class="method">
  317. <div class="description">
  318. <p>Implements the indirect diffuse term.</p>
  319. </div>
  320. <table class="params">
  321. <tbody>
  322. <tr>
  323. <td class="name">
  324. <strong>builder</strong>
  325. </td>
  326. <td class="description last">
  327. <p>The current node builder.</p>
  328. </td>
  329. </tr>
  330. </tbody>
  331. </table>
  332. </div>
  333. <h3 class="name name-method" id="indirectSpecular" translate="no">.<a href="#indirectSpecular">indirectSpecular</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  334. <div class="method">
  335. <div class="description">
  336. <p>Implements the indirect specular term.</p>
  337. </div>
  338. <table class="params">
  339. <tbody>
  340. <tr>
  341. <td class="name">
  342. <strong>builder</strong>
  343. </td>
  344. <td class="description last">
  345. <p>The current node builder.</p>
  346. </td>
  347. </tr>
  348. </tbody>
  349. </table>
  350. </div>
  351. <h3 class="name name-method" id="start" translate="no">.<a href="#start">start</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  352. <div class="method">
  353. <div class="description">
  354. <p>Depending on what features are requested, the method prepares certain node variables
  355. which are later used for lighting computations.</p>
  356. </div>
  357. <table class="params">
  358. <tbody>
  359. <tr>
  360. <td class="name">
  361. <strong>builder</strong>
  362. </td>
  363. <td class="description last">
  364. <p>The current node builder.</p>
  365. </td>
  366. </tr>
  367. </tbody>
  368. </table>
  369. <dl class="details">
  370. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#start">LightingModel#start</a></dt>
  371. </dl>
  372. </div>
  373. <h2 class="subsection-title">Source</h2>
  374. <p>
  375. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/functions/PhysicalLightingModel.js" translate="no" target="_blank" rel="noopener">src/nodes/functions/PhysicalLightingModel.js</a>
  376. </p>
  377. </article>
  378. </section>
  379. <script src="../scripts/linenumber.js"></script>
  380. <script src="../scripts/page.js"></script>
  381. </body>
  382. </html>
粤ICP备19079148号