浏览代码

Add background property to Scene docs (#9817)

Michael Blix 8 年之前
父节点
当前提交
cad8c07feb
共有 1 个文件被更改,包括 13 次插入8 次删除
  1. 13 8
      docs/api/scenes/Scene.html

+ 13 - 8
docs/api/scenes/Scene.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<meta charset="utf-8" />
+		<meta charset="utf-8" />
 		<base href="../../" />
 		<script src="list.js"></script>
 		<script src="page.js"></script>
@@ -26,18 +26,23 @@
 		<h2>Properties</h2>
 
 		<h3>[property:Fog fog]</h3>
-		
+
 		<div>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</div>
-		
+
 		<h3>[property:Material overrideMaterial]</h3>
-		
+
 		<div>If not null, it will force everything in the scene to be rendered with that material. Default is null.</div>
-		
+
 		<h3>[property:boolean autoUpdate]</h3>
 		<div>
-		Default is true. If set, then the renderer checks every frame if the scene and its objects needs matrix updates. 
-		When it isn't, then you have to maintain all matrices in the scene yourself.  
-		</div> 
+		Default is true. If set, then the renderer checks every frame if the scene and its objects needs matrix updates.
+		When it isn't, then you have to maintain all matrices in the scene yourself.
+		</div>
+
+		<h3>[property:Object background]</h3>
+		<div>
+		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.
+		</div>
 
 		<h2>Methods</h2>