2
0

WebGL1Renderer.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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
  14. context. When upgrading an existing project to => r118, applications might
  15. break because of two reasons:
  16. </p>
  17. <ul>
  18. <li>Custom shader code needs to be GLSL 3.0 conform.</li>
  19. <li>WebGL 1 extension checks have to be changed.</li>
  20. </ul>
  21. <p>
  22. If you can't afford the time to upgrade your code but still want to use
  23. the latest version, you can use [name]. This version of the renderer will
  24. enforce a WebGL 1 rendering context.
  25. </p>
  26. <h2>Constructor</h2>
  27. <h3>[name]( [param:Object parameters] )</h3>
  28. <p>Creates a new [name].</p>
  29. <h2>Properties</h2>
  30. <p>See the base [page:WebGLRenderer] class for common properties.</p>
  31. <h3>[property:Boolean isWebGL1Renderer]</h3>
  32. <p>Read-only flag to check if a given object is of type [name].</p>
  33. <h2>Methods</h2>
  34. <p>See the base [page:WebGLRenderer] class for common methods.</p>
  35. <h2>Source</h2>
  36. <p>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </p>
  39. </body>
  40. </html>