提交 59aadfe8 编写于 作者: W WestLangley

rename parameter resolution to size

上级 2310a6b4
......@@ -24,9 +24,9 @@
<h2>Constructor</h2>
<h3>[name]([param:Number resolution], param:Object options])</h3>
<h3>[name]([param:Number size], param:Object options])</h3>
<p>
[page:Float resolution] - The resolution of the renderTarget. <br />
[page:Float size] - the size, in pixels. <br />
options - (optional) object that holds texture parameters for an auto-generated target
texture and depthBuffer/stencilBuffer booleans.
......
......@@ -24,9 +24,9 @@
<h2>构造器</h2>
<h3>[name]([param:Number resolution], [param:Object options])</h3>
<h3>[name]([param:Number size], [param:Object options])</h3>
<p>
[page:Float resolution] - The resolution of the renderTarget.<br />
[page:Float size] - the size, in pixels. <br />
options - (可选)一个保存着自动生成的目标纹理的纹理参数以及表示是否使用深度缓存/模板缓存的布尔值的对象。
有关纹理参数的说明,请参阅[page:Texture Texture]. 以下是合理选项:<br /><br />
......
......@@ -1796,7 +1796,7 @@ Object.defineProperties( WebGLShadowMap.prototype, {
export function WebGLRenderTargetCube( width, height, options ) {
console.warn( 'THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( resolution, options ).' );
console.warn( 'THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).' );
return new WebGLCubeRenderTarget( width, options );
}
......
......@@ -5,7 +5,7 @@ import { Texture } from './../textures/Texture';
export class WebGLCubeRenderTarget extends WebGLRenderTarget {
constructor(
resolution: number,
size: number,
options?: WebGLRenderTargetOptions
);
......
......@@ -12,17 +12,17 @@ import { CubeCamera } from '../cameras/CubeCamera.js';
* @author WestLangley / http://github.com/WestLangley
*/
function WebGLCubeRenderTarget( resolution, options, dummy ) {
function WebGLCubeRenderTarget( size, options, dummy ) {
if ( Number.isInteger( options ) ) {
console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( resolution, options )' );
console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )' );
options = dummy;
}
WebGLRenderTarget.call( this, resolution, resolution, options );
WebGLRenderTarget.call( this, size, size, options );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册