WebGL1Renderer.html 1.2 KB

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