提交 416dcb8f 编写于 作者: M Mugen87

Docs: Added Scene.environment description.

上级 af25813b
......@@ -25,14 +25,6 @@
<h2>Properties</h2>
<h3>[property:Fog fog]</h3>
<p>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</p>
<h3>[property:Material overrideMaterial]</h3>
<p>If not null, it will force everything in the scene to be rendered with that material. Default is null.</p>
<h3>[property:boolean autoUpdate]</h3>
<p>
Default is true. If set, then the renderer checks every frame if the scene and its objects needs matrix updates.
......@@ -44,19 +36,33 @@
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 cubemap as a [page:CubeTexture] or [page:WebGLRenderTargetCube]. Default is null.
</p>
<h2>Methods</h2>
<h3>[method:Object toJSON]</h3>
<h3>[property:Texture environment]</h3>
<p>
meta -- object containing metadata such as textures or images for the scene.<br />
Convert the scene to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
If not null, this texture is set as the environment map for all physical materials in the scene.
However, it's not possible to overwrite an existing texture assigned to [page:MeshStandardMaterial.envmap]. Default is null.
</p>
<h3>[property:Fog fog]</h3>
<p>A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is null.</p>
<h3>[property:Material overrideMaterial]</h3>
<p>If not null, it will force everything in the scene to be rendered with that material. Default is null.</p>
<h2>Methods</h2>
<h3>[method:null dispose]()</h3>
<p>
Clears scene related data internally cached by [page:WebGLRenderer].
</p>
<h3>[method:Object toJSON]</h3>
<p>
meta -- object containing metadata such as textures or images for the scene.<br />
Convert the scene to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
</p>
<h2>Source</h2>
<p>
......
......@@ -26,15 +26,6 @@
<h2>属性</h2>
<h3>[property:Fog fog]</h3>
<p>一个[page:Fog fog]实例定义了影响场景中的每个物体的雾的类型。默认值为null。
</p>
<h3>[property:Material overrideMaterial]</h3>
<p>如果不为空,它将强制场景中的每个物体使用这里的材质来渲染。默认值为null。</p>
<h3>[property:boolean autoUpdate]</h3>
<p>
默认值为true,若设置了这个值,则渲染器会检查每一帧是否需要更新场景及其中物体的矩阵。
......@@ -47,19 +38,34 @@
可以设置一个用于的“clear”的[page:Color](颜色)、一个覆盖canvas的[page:Texture](纹理),或是一个[page:CubeTexture]。默认值为null。
</p>
<h2>方法</h2>
<h3>[method:JSON toJSON]</h3>
<h3>[property:Texture environment]</h3>
<p>
meta -- 包含有元数据的对象,例如场景中的的纹理或图片。
将scene对象转换为 three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format](three.js JSON 物体/场景格式)。
If not null, this texture is set as the environment map for all physical materials in the scene.
However, it's not possible to overwrite an existing texture assigned to [page:MeshStandardMaterial.envmap]. Default is null.
</p>
<h3>[property:Fog fog]</h3>
<p>一个[page:Fog fog]实例定义了影响场景中的每个物体的雾的类型。默认值为null。
</p>
<h3>[property:Material overrideMaterial]</h3>
<p>如果不为空,它将强制场景中的每个物体使用这里的材质来渲染。默认值为null。</p>
<h2>方法</h2>
<h3>[method:null dispose]()</h3>
<p>
清除[page:WebGLRenderer]内部所缓存的场景相关的数据。
</p>
<h3>[method:JSON toJSON]</h3>
<p>
meta -- 包含有元数据的对象,例如场景中的的纹理或图片。
将scene对象转换为 three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format](three.js JSON 物体/场景格式)。
</p>
<h2>源代码</h2>
<p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册