WebGL1Renderer.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:WebGLRenderer] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Since r118 [page:WebGLRenderer] automatically uses a WebGL 2 rendering context. When upgrading an existing project to
  14. => r118, applications might break because of two reasons:
  15. <ul>
  16. <li>Custom shader code needs to be GLSL 3.0 conform.</li>
  17. <li>WebGL 1 extension checks have to be changed.</li>
  18. </ul>
  19. If you can't afford the time to upgrade your code but still want to use the latest version, you can use [name]. This
  20. version of the renderer will enforce a WebGL 1 rendering context.
  21. </p>
  22. <h2>Constructor</h2>
  23. <h3>[name]( [param:Object parameters] )</h3>
  24. <p>
  25. Creates a new [name].
  26. </p>
  27. <h2>Properties</h2>
  28. <p>See the base [page:WebGLRenderer] class for common properties.</p>
  29. <h2>Methods</h2>
  30. <p>See the base [page:WebGLRenderer] class for common methods.</p>
  31. <h2>Source</h2>
  32. <p>
  33. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  34. </p>
  35. </body>
  36. </html>