Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
444ea840
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
444ea840
编写于
12月 15, 2015
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
5e2ee5c6
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
111 addition
and
66 deletion
+111
-66
build/three.js
build/three.js
+69
-25
build/three.min.js
build/three.min.js
+42
-41
未找到文件。
build/three.js
浏览文件 @
444ea840
...
...
@@ -3449,7 +3449,7 @@ THREE.Euler.prototype = {
clone: function () {
return new this.constructor( this._x, this._y, this._z, this._order);
return new this.constructor( this._x, this._y, this._z, this._order
);
},
...
...
@@ -3846,7 +3846,7 @@ THREE.Box2.prototype = {
for ( var i = 0, il = points.length; i < il; i ++ ) {
this.expandByPoint( points[ i ] )
this.expandByPoint( points[ i ] )
;
}
...
...
@@ -7004,6 +7004,46 @@ THREE.Math = {
};
// File:src/math/Rectangle.js
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.Rectangle = function ( x, y, width, height ) {
this.set( x, y, width, height );
};
THREE.Rectangle.prototype = {
constructor: THREE.Rectangle,
set: function ( x, y, width, height ) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
return this;
},
copy: function ( source ) {
this.x = source.x;
this.y = source.y;
this.width = source.width;
this.height = source.height;
return this;
}
};
// File:src/math/Spline.js
/**
...
...
@@ -24940,10 +24980,8 @@ THREE.WebGLRenderer = function ( parameters ) {
_usedTextureUnits = 0,
_viewportX = 0,
_viewportY = 0,
_viewportWidth = _canvas.width,
_viewportHeight = _canvas.height,
_viewport = new THREE.Rectangle( 0, 0, _canvas.width, _canvas.height ),
_currentWidth = 0,
_currentHeight = 0,
...
...
@@ -25092,7 +25130,7 @@ THREE.WebGLRenderer = function ( parameters ) {
state.init();
_gl.viewport( _viewport
X, _viewportY, _viewportWidth, _viewportH
eight );
_gl.viewport( _viewport
.x, _viewport.y, _viewport.width, _viewport.h
eight );
glClearColor( _clearColor.r, _clearColor.g, _clearColor.b, _clearAlpha );
...
...
@@ -25226,11 +25264,13 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( _currentRenderTarget === null ) {
_viewportX =
x *= pixelRatio;
_viewportY =
y *= pixelRatio;
x *= pixelRatio;
y *= pixelRatio;
_viewportWidth = width *= pixelRatio;
_viewportHeight = height *= pixelRatio;
width *= pixelRatio;
height *= pixelRatio;
_viewport.set( x, y, width, height );
}
...
...
@@ -28233,7 +28273,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
var isCube = ( renderTarget instanceof THREE.WebGLRenderTargetCube );
var framebuffer,
width, height, vx, vy
;
var framebuffer,
viewport
;
if ( renderTarget ) {
...
...
@@ -28249,28 +28289,20 @@ THREE.WebGLRenderer = function ( parameters ) {
}
width = renderTarget.width;
height = renderTarget.height;
vx = 0;
vy = 0;
viewport = renderTarget.viewport;
} else {
framebuffer = null;
width = _viewportWidth;
height = _viewportHeight;
vx = _viewportX;
vy = _viewportY;
viewport = _viewport;
}
if ( framebuffer !== _currentFramebuffer ) {
_gl.bindFramebuffer( _gl.FRAMEBUFFER, framebuffer );
_gl.viewport( v
x, vy, width,
height );
_gl.viewport( v
iewport.x, viewport.y, viewport.width, viewport.
height );
_currentFramebuffer = framebuffer;
...
...
@@ -28283,8 +28315,8 @@ THREE.WebGLRenderer = function ( parameters ) {
}
_currentWidth = width;
_currentHeight = height;
_currentWidth =
viewport.
width;
_currentHeight =
viewport.
height;
};
...
...
@@ -28500,6 +28532,8 @@ THREE.WebGLRenderTarget = function ( width, height, options ) {
this.width = width;
this.height = height;
this.viewport = new THREE.Rectangle( 0, 0, width, height );
options = options || {};
if ( options.minFilter === undefined ) options.minFilter = THREE.LinearFilter;
...
...
@@ -28526,6 +28560,14 @@ THREE.WebGLRenderTarget.prototype = {
}
this.viewport.set( 0, 0, width, height );
},
setViewport: function ( x, y, width, height ) {
this.viewport.set( x, y, width, height );
},
clone: function () {
...
...
@@ -28539,6 +28581,8 @@ THREE.WebGLRenderTarget.prototype = {
this.width = source.width;
this.height = source.height;
this.viewport.copy( source.viewport );
this.texture = source.texture.clone();
this.depthBuffer = source.depthBuffer;
...
...
build/three.min.js
浏览文件 @
444ea840
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录