Scene.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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:Object3D] &rarr;
  11. <h1>[name]</h1>
  12. <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>
  13. <h2>Constructor</h2>
  14. <h3>[name]()</h3>
  15. <p>
  16. Create a new scene object.
  17. </p>
  18. <h2>Properties</h2>
  19. <h3>[property:Object background]</h3>
  20. <p>
  21. If not null, sets the background used when rendering the scene, and is always rendered first.
  22. Can be set to a [page:Color] which sets the clear color, a [page:Texture] covering the canvas, a cubemap as a [page:CubeTexture] or an equirectangular as a [page:Texture] . Default is null.
  23. </p>
  24. <h3>[property:Texture environment]</h3>
  25. <p>
  26. If not null, this texture is set as the environment map for all physical materials in the scene.
  27. However, it's not possible to overwrite an existing texture assigned to [page:MeshStandardMaterial.envMap]. Default is null.
  28. </p>
  29. <h3>[property:Fog fog]</h3>
  30. <p>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</p>
  31. <h3>[property:Boolean isScene]</h3>
  32. <p>
  33. Read-only flag to check if a given object is of type [name].
  34. </p>
  35. <h3>[property:Material overrideMaterial]</h3>
  36. <p>If not null, it will force everything in the scene to be rendered with that material. Default is null.</p>
  37. <h2>Methods</h2>
  38. <h3>[method:Object toJSON]( [param:Object meta] )</h3>
  39. <p>
  40. meta -- object containing metadata such as textures or images for the scene.<br />
  41. Convert the scene to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
  42. </p>
  43. <h2>Source</h2>
  44. <p>
  45. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  46. </p>
  47. </body>
  48. </html>