RawShaderMaterial.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>RawShaderMaterial - 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="Material.html">Material</a> → <a href="ShaderMaterial.html">ShaderMaterial</a> → </p>
  13. <h1 translate="no">RawShaderMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class works just like <a href="ShaderMaterial.html">ShaderMaterial</a>, except that definitions
  17. of built-in uniforms and attributes are not automatically prepended to the
  18. GLSL shader code.</p>
  19. <p><code>RawShaderMaterial</code> can only be used with <a href="WebGLRenderer.html">WebGLRenderer</a>.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="RawShaderMaterial" translate="no">new <a href="#RawShaderMaterial">RawShaderMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new raw shader material.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name">
  33. <strong>parameters</strong>
  34. </td>
  35. <td class="description last">
  36. <p>An object with one or more properties
  37. defining the material's appearance. Any property of the material
  38. (including any property from inherited materials) can be passed
  39. in here. Color values can be passed any type of value accepted
  40. by <a href="Color.html#set">Color#set</a>.</p>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. <h2 class="subsection-title">Properties</h2>
  48. <div class="member">
  49. <h3 class="name" id="isRawShaderMaterial" translate="no">.<a href="#isRawShaderMaterial">isRawShaderMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  50. <div class="description">
  51. <p>This flag can be used for type testing.</p>
  52. <p>Default is <code>true</code>.</p>
  53. </div>
  54. </div>
  55. <h2 class="subsection-title">Source</h2>
  56. <p>
  57. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/RawShaderMaterial.js" translate="no" target="_blank" rel="noopener">src/materials/RawShaderMaterial.js</a>
  58. </p>
  59. </article>
  60. </section>
  61. <script src="../scripts/linenumber.js"></script>
  62. <script src="../scripts/page.js"></script>
  63. </body>
  64. </html>
粤ICP备19079148号