GLSLNodeFunction.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>GLSLNodeFunction - 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="NodeFunction.html">NodeFunction</a> → </p>
  13. <h1 translate="no">GLSLNodeFunction</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class represents a GLSL node function.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="GLSLNodeFunction" translate="no">new <a href="#GLSLNodeFunction">GLSLNodeFunction</a><span class="signature">( source : <span class="param-type">string</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new GLSL node function.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>source</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The GLSL source.</p>
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Methods</h2>
  41. <h3 class="name name-method" id="getCode" translate="no">.<a href="#getCode">getCode</a><span class="signature">( name : <span class="param-type">string</span> )</span><span class="type-signature"> : string</span> </h3>
  42. <div class="method">
  43. <div class="description">
  44. <p>This method returns the GLSL code of the node function.</p>
  45. </div>
  46. <table class="params">
  47. <tbody>
  48. <tr>
  49. <td class="name">
  50. <strong>name</strong>
  51. </td>
  52. <td class="description last">
  53. <p>The function's name.</p>
  54. <p>Default is <code>this.name</code>.</p>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. <dl class="details">
  60. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeFunction.html#getCode">NodeFunction#getCode</a></dt>
  61. </dl>
  62. <dl class="details">
  63. <dt class="tag-returns"><strong>Returns:</strong> The shader code.</dt>
  64. </dl>
  65. </div>
  66. <h2 class="subsection-title">Source</h2>
  67. <p>
  68. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/parsers/GLSLNodeFunction.js" translate="no" target="_blank" rel="noopener">src/nodes/parsers/GLSLNodeFunction.js</a>
  69. </p>
  70. </article>
  71. </section>
  72. <script src="../scripts/linenumber.js"></script>
  73. <script src="../scripts/page.js"></script>
  74. </body>
  75. </html>
粤ICP备19079148号