PointLightShadow.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PointLightShadow - 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="LightShadow.html">LightShadow</a> → </p>
  13. <h1 translate="no">PointLightShadow</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the shadow configuration of point lights.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="PointLightShadow" translate="no">new <a href="#PointLightShadow">PointLightShadow</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new point light shadow.</p>
  25. </div>
  26. </div>
  27. </div>
  28. <h2 class="subsection-title">Properties</h2>
  29. <div class="member">
  30. <h3 class="name" id="isPointLightShadow" translate="no">.<a href="#isPointLightShadow">isPointLightShadow</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  31. <div class="description">
  32. <p>This flag can be used for type testing.</p>
  33. <p>Default is <code>true</code>.</p>
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Methods</h2>
  37. <h3 class="name name-method" id="updateMatrices" translate="no">.<a href="#updateMatrices">updateMatrices</a><span class="signature">( light : <span class="param-type"><a href="Light.html">Light</a></span>, faceIndex : <span class="param-type">number</span> )</span> </h3>
  38. <div class="method">
  39. <div class="description">
  40. <p>Update the matrices for the camera and shadow, used internally by the renderer.</p>
  41. </div>
  42. <table class="params">
  43. <tbody>
  44. <tr>
  45. <td class="name">
  46. <strong>light</strong>
  47. </td>
  48. <td class="description last">
  49. <p>The light for which the shadow is being rendered.</p>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="name">
  54. <strong>faceIndex</strong>
  55. </td>
  56. <td class="description last">
  57. <p>The cube face index (0-5).</p>
  58. <p>Default is <code>0</code>.</p>
  59. </td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. <dl class="details">
  64. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightShadow.html#updateMatrices">LightShadow#updateMatrices</a></dt>
  65. </dl>
  66. </div>
  67. <h2 class="subsection-title">Source</h2>
  68. <p>
  69. <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/PointLightShadow.js" translate="no" target="_blank" rel="noopener">src/lights/PointLightShadow.js</a>
  70. </p>
  71. </article>
  72. </section>
  73. <script src="../scripts/linenumber.js"></script>
  74. <script src="../scripts/page.js"></script>
  75. </body>
  76. </html>
粤ICP备19079148号