Scene.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:Object3D] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">Scenes allow you to set up what and where is to be rendered by three.js. This is where you place objects, lights and cameras.</p>
  14. <h2>Constructor</h2>
  15. <h3>[name]()</h3>
  16. <p>
  17. Create a new scene object.
  18. </p>
  19. <h2>Properties</h2>
  20. <h3>[property:Fog fog]</h3>
  21. <p>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</p>
  22. <h3>[property:Material overrideMaterial]</h3>
  23. <p>If not null, it will force everything in the scene to be rendered with that material. Default is null.</p>
  24. <h3>[property:boolean autoUpdate]</h3>
  25. <p>
  26. Default is true. If set, then the renderer checks every frame if the scene and its objects needs matrix updates.
  27. When it isn't, then you have to maintain all matrices in the scene yourself.
  28. </p>
  29. <h3>[property:Object background]</h3>
  30. <p>
  31. If not null, sets the background used when rendering the scene, and is always rendered first. Can be set to a [page:Color] which sets the clear color, a [page:Texture] covering the canvas, or a [page:CubeTexture]. Default is null.
  32. </p>
  33. <h2>Methods</h2>
  34. <h3>[method:JSON toJSON]</h3>
  35. <p>
  36. Return the scene data in JSON format.
  37. </p>
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>