ClippingGroup.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ClippingGroup - 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="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Group.html">Group</a> → </p>
  13. <h1 translate="no">ClippingGroup</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>In earlier three.js versions, clipping was defined globally
  17. on the renderer or on material level. This special version of
  18. <code>THREE.Group</code> allows to encode the clipping state into the scene
  19. graph. Meaning if you create an instance of this group, all
  20. descendant 3D objects will be affected by the respective clipping
  21. planes.</p>
  22. <p>Note: <code>ClippingGroup</code> can only be used with <code>WebGPURenderer</code>.</p></div>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h3 class="name name-method" id="ClippingGroup" translate="no">new <a href="#ClippingGroup">ClippingGroup</a><span class="signature">()</span> </h3>
  28. <div class="method">
  29. <div class="description">
  30. <p>Constructs a new clipping group.</p>
  31. </div>
  32. </div>
  33. </div>
  34. <h2 class="subsection-title">Properties</h2>
  35. <div class="member">
  36. <h3 class="name" id="clipIntersection" translate="no">.<a href="#clipIntersection">clipIntersection</a><span class="type-signature"> : boolean</span> </h3>
  37. <div class="description">
  38. <p>Whether the intersection of the clipping planes is used to clip objects, rather than their union.</p>
  39. <p>Default is <code>false</code>.</p>
  40. </div>
  41. </div>
  42. <div class="member">
  43. <h3 class="name" id="clipShadows" translate="no">.<a href="#clipShadows">clipShadows</a><span class="type-signature"> : boolean</span> </h3>
  44. <div class="description">
  45. <p>Whether shadows should be clipped or not.</p>
  46. <p>Default is <code>false</code>.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="clippingPlanes" translate="no">.<a href="#clippingPlanes">clippingPlanes</a><span class="type-signature"> : Array.&lt;<a href="Plane.html">Plane</a>></span> </h3>
  51. <div class="description">
  52. <p>An array with clipping planes.</p>
  53. </div>
  54. </div>
  55. <div class="member">
  56. <h3 class="name" id="enabled" translate="no">.<a href="#enabled">enabled</a><span class="type-signature"> : boolean</span> </h3>
  57. <div class="description">
  58. <p>Whether clipping should be enabled or not.</p>
  59. <p>Default is <code>true</code>.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <h3 class="name" id="isClippingGroup" translate="no">.<a href="#isClippingGroup">isClippingGroup</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  64. <div class="description">
  65. <p>This flag can be used for type testing.</p>
  66. <p>Default is <code>true</code>.</p>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Source</h2>
  70. <p>
  71. <a href="https://github.com/mrdoob/three.js/blob/master/src/objects/ClippingGroup.js" translate="no" target="_blank" rel="noopener">src/objects/ClippingGroup.js</a>
  72. </p>
  73. </article>
  74. </section>
  75. <script src="../scripts/linenumber.js"></script>
  76. <script src="../scripts/page.js"></script>
  77. </body>
  78. </html>
粤ICP备19079148号