Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
90bd8e03
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,发现更多精彩内容 >>
提交
90bd8e03
编写于
12月 10, 2014
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
14a98f92
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
250 addition
and
199 deletion
+250
-199
build/three.js
build/three.js
+68
-18
build/three.min.js
build/three.min.js
+182
-181
未找到文件。
build/three.js
浏览文件 @
90bd8e03
...
@@ -1561,6 +1561,19 @@ THREE.Vector2.prototype = {
...
@@ -1561,6 +1561,19 @@ THREE.Vector2.prototype = {
},
},
fromAttribute: function ( attribute, index, offset ) {
if ( offset === undefined ) offset = 0;
index = index * attribute.itemSize + offset;
this.x = attribute.array[ index ];
this.y = attribute.array[ index + 1 ];
return this;
},
clone: function () {
clone: function () {
return new THREE.Vector2( this.x, this.y );
return new THREE.Vector2( this.x, this.y );
...
@@ -2382,6 +2395,20 @@ THREE.Vector3.prototype = {
...
@@ -2382,6 +2395,20 @@ THREE.Vector3.prototype = {
},
},
fromAttribute: function ( attribute, index, offset ) {
if ( offset === undefined ) offset = 0;
index = index * attribute.itemSize + offset;
this.x = attribute.array[ index ];
this.y = attribute.array[ index + 1 ];
this.z = attribute.array[ index + 2 ];
return this;
},
clone: function () {
clone: function () {
return new THREE.Vector3( this.x, this.y, this.z );
return new THREE.Vector3( this.x, this.y, this.z );
...
@@ -3042,6 +3069,21 @@ THREE.Vector4.prototype = {
...
@@ -3042,6 +3069,21 @@ THREE.Vector4.prototype = {
},
},
fromAttribute: function ( attribute, index, offset ) {
if ( offset === undefined ) offset = 0;
index = index * attribute.itemSize + offset;
this.x = attribute.array[ index ];
this.y = attribute.array[ index + 1 ];
this.z = attribute.array[ index + 2 ];
this.w = attribute.array[ index + 3 ];
return this;
},
clone: function () {
clone: function () {
return new THREE.Vector4( this.x, this.y, this.z, this.w );
return new THREE.Vector4( this.x, this.y, this.z, this.w );
...
@@ -13993,6 +14035,7 @@ THREE.MeshFaceMaterial.prototype = {
...
@@ -13993,6 +14035,7 @@ THREE.MeshFaceMaterial.prototype = {
* map: new THREE.Texture( <Image> ),
* map: new THREE.Texture( <Image> ),
*
*
* size: <float>,
* size: <float>,
* sizeAttenuation: <bool>,
*
*
* blending: THREE.NormalBlending,
* blending: THREE.NormalBlending,
* depthTest: <bool>,
* depthTest: <bool>,
...
@@ -17976,6 +18019,8 @@ THREE.WebGLRenderer = function ( parameters ) {
...
@@ -17976,6 +18019,8 @@ THREE.WebGLRenderer = function ( parameters ) {
var _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElement( 'canvas' ),
var _canvas = parameters.canvas !== undefined ? parameters.canvas : document.createElement( 'canvas' ),
_context = parameters.context !== undefined ? parameters.context : null,
_context = parameters.context !== undefined ? parameters.context : null,
pixelRatio = 1,
_precision = parameters.precision !== undefined ? parameters.precision : 'highp',
_precision = parameters.precision !== undefined ? parameters.precision : 'highp',
_alpha = parameters.alpha !== undefined ? parameters.alpha : false,
_alpha = parameters.alpha !== undefined ? parameters.alpha : false,
...
@@ -18004,7 +18049,6 @@ THREE.WebGLRenderer = function ( parameters ) {
...
@@ -18004,7 +18049,6 @@ THREE.WebGLRenderer = function ( parameters ) {
this.domElement = _canvas;
this.domElement = _canvas;
this.context = null;
this.context = null;
this.devicePixelRatio = self.devicePixelRatio !== undefined ? self.devicePixelRatio : 1;
// clearing
// clearing
...
@@ -18426,10 +18470,22 @@ THREE.WebGLRenderer = function ( parameters ) {
...
@@ -18426,10 +18470,22 @@ THREE.WebGLRenderer = function ( parameters ) {
};
};
this.getPixelRatio = function () {
return pixelRatio;
};
this.setPixelRatio = function ( value ) {
pixelRatio = value;
};
this.setSize = function ( width, height, updateStyle ) {
this.setSize = function ( width, height, updateStyle ) {
_canvas.width = width *
this.deviceP
ixelRatio;
_canvas.width = width *
p
ixelRatio;
_canvas.height = height *
this.deviceP
ixelRatio;
_canvas.height = height *
p
ixelRatio;
if ( updateStyle !== false ) {
if ( updateStyle !== false ) {
...
@@ -18444,11 +18500,11 @@ THREE.WebGLRenderer = function ( parameters ) {
...
@@ -18444,11 +18500,11 @@ THREE.WebGLRenderer = function ( parameters ) {
this.setViewport = function ( x, y, width, height ) {
this.setViewport = function ( x, y, width, height ) {
_viewportX = x *
this.deviceP
ixelRatio;
_viewportX = x *
p
ixelRatio;
_viewportY = y *
this.deviceP
ixelRatio;
_viewportY = y *
p
ixelRatio;
_viewportWidth = width *
this.deviceP
ixelRatio;
_viewportWidth = width *
p
ixelRatio;
_viewportHeight = height *
this.deviceP
ixelRatio;
_viewportHeight = height *
p
ixelRatio;
_gl.viewport( _viewportX, _viewportY, _viewportWidth, _viewportHeight );
_gl.viewport( _viewportX, _viewportY, _viewportWidth, _viewportHeight );
...
@@ -18457,10 +18513,10 @@ THREE.WebGLRenderer = function ( parameters ) {
...
@@ -18457,10 +18513,10 @@ THREE.WebGLRenderer = function ( parameters ) {
this.setScissor = function ( x, y, width, height ) {
this.setScissor = function ( x, y, width, height ) {
_gl.scissor(
_gl.scissor(
x *
this.deviceP
ixelRatio,
x *
p
ixelRatio,
y *
this.deviceP
ixelRatio,
y *
p
ixelRatio,
width *
this.deviceP
ixelRatio,
width *
p
ixelRatio,
height *
this.deviceP
ixelRatio
height *
p
ixelRatio
);
);
};
};
...
@@ -27212,7 +27268,7 @@ THREE.AudioListener.prototype.updateMatrixWorld = ( function () {
...
@@ -27212,7 +27268,7 @@ THREE.AudioListener.prototype.updateMatrixWorld = ( function () {
var listener = this.context.listener;
var listener = this.context.listener;
var up = this.up;
var up = this.up;
this.matrixWorld.decompose( position, quaternion, scale );
this.matrixWorld.decompose( position, quaternion, scale );
orientation.set( 0, 0, -1 ).applyQuaternion( quaternion );
orientation.set( 0, 0, -1 ).applyQuaternion( quaternion );
...
@@ -29894,8 +29950,6 @@ THREE.Animation.prototype.reset = function () {
...
@@ -29894,8 +29950,6 @@ THREE.Animation.prototype.reset = function () {
var object = this.hierarchy[ h ];
var object = this.hierarchy[ h ];
object.matrixAutoUpdate = true;
if ( object.animationCache === undefined ) {
if ( object.animationCache === undefined ) {
object.animationCache = {
object.animationCache = {
...
@@ -30038,7 +30092,6 @@ THREE.Animation.prototype.update = (function(){
...
@@ -30038,7 +30092,6 @@ THREE.Animation.prototype.update = (function(){
} else {
} else {
this.stop();
this.stop();
return;
}
}
...
@@ -30078,9 +30131,6 @@ THREE.Animation.prototype.update = (function(){
...
@@ -30078,9 +30131,6 @@ THREE.Animation.prototype.update = (function(){
}
}
object.matrixAutoUpdate = true;
object.matrixWorldNeedsUpdate = true;
var scale = ( this.currentTime - prevKey.time ) / ( nextKey.time - prevKey.time );
var scale = ( this.currentTime - prevKey.time ) / ( nextKey.time - prevKey.time );
var prevXYZ = prevKey[ type ];
var prevXYZ = prevKey[ type ];
...
...
build/three.min.js
浏览文件 @
90bd8e03
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录