1
0

BasicLightingModel.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BasicLightingModel - 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">BasicLightingModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the lighting model for unlit materials. The only light contribution
  17. is baked indirect lighting modulated with ambient occlusion and the material's
  18. diffuse color. Environment mapping is supported. Used in <a href="MeshBasicNodeMaterial.html">MeshBasicNodeMaterial</a>.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="BasicLightingModel" translate="no">new <a href="#BasicLightingModel">BasicLightingModel</a><span class="signature">()</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new basic lighting model.</p>
  27. </div>
  28. </div>
  29. </div>
  30. <h2 class="subsection-title">Methods</h2>
  31. <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>
  32. <div class="method">
  33. <div class="description">
  34. <p>Implements the environment mapping.</p>
  35. </div>
  36. <table class="params">
  37. <tbody>
  38. <tr>
  39. <td class="name">
  40. <strong>builder</strong>
  41. </td>
  42. <td class="description last">
  43. <p>The current node builder.</p>
  44. </td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. <dl class="details">
  49. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#finish">LightingModel#finish</a></dt>
  50. </dl>
  51. </div>
  52. <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>
  53. <div class="method">
  54. <div class="description">
  55. <p>Implements the baked indirect lighting with its modulation.</p>
  56. </div>
  57. <table class="params">
  58. <tbody>
  59. <tr>
  60. <td class="name">
  61. <strong>builder</strong>
  62. </td>
  63. <td class="description last">
  64. <p>The current node builder.</p>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. <dl class="details">
  70. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#indirect">LightingModel#indirect</a></dt>
  71. </dl>
  72. </div>
  73. <h2 class="subsection-title">Source</h2>
  74. <p>
  75. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/functions/BasicLightingModel.js" translate="no" target="_blank" rel="noopener">src/nodes/functions/BasicLightingModel.js</a>
  76. </p>
  77. </article>
  78. </section>
  79. <script src="../scripts/linenumber.js"></script>
  80. <script src="../scripts/page.js"></script>
  81. </body>
  82. </html>
粤ICP备19079148号