Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
11b8b250
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,体验更适合开发者的 AI 搜索 >>
提交
11b8b250
编写于
12月 18, 2015
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
6b23f530
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
82 addition
and
73 deletion
+82
-73
build/three.js
build/three.js
+27
-17
build/three.min.js
build/three.min.js
+55
-56
未找到文件。
build/three.js
浏览文件 @
11b8b250
...
...
@@ -3887,7 +3887,7 @@ THREE.Box2.prototype = {
},
e
mpty: function () {
isE
mpty: function () {
// this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes
...
...
@@ -4171,7 +4171,7 @@ THREE.Box3.prototype = {
},
e
mpty: function () {
isE
mpty: function () {
// this is a more robust check for empty than ( volume <= 0 ) because volume can get positive with two negative axes
...
...
@@ -4304,7 +4304,7 @@ THREE.Box3.prototype = {
var min, max;
if( plane.normal.x > 0 ) {
if
( plane.normal.x > 0 ) {
min = plane.normal.x * this.min.x;
max = plane.normal.x * this.max.x;
...
...
@@ -4316,7 +4316,7 @@ THREE.Box3.prototype = {
}
if( plane.normal.y > 0 ) {
if
( plane.normal.y > 0 ) {
min += plane.normal.y * this.min.y;
max += plane.normal.y * this.max.y;
...
...
@@ -4328,7 +4328,7 @@ THREE.Box3.prototype = {
}
if( plane.normal.z > 0 ) {
if
( plane.normal.z > 0 ) {
min += plane.normal.z * this.min.z;
max += plane.normal.z * this.max.z;
...
...
@@ -30904,15 +30904,20 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
this.setBlending = function ( blending, blendEquation, blendSrc, blendDst, blendEquationAlpha, blendSrcAlpha, blendDstAlpha ) {
if ( blending
!== current
Blending ) {
if ( blending
=== THREE.No
Blending ) {
if ( blending === THREE.NoBlending ) {
this.disable( gl.BLEND );
} else {
this.disable( gl.BLEND );
this.enable( gl.BLEND );
}
if ( blending !== currentBlending ) {
} else
if ( blending === THREE.AdditiveBlending ) {
if ( blending === THREE.AdditiveBlending ) {
this.enable( gl.BLEND );
gl.blendEquation( gl.FUNC_ADD );
gl.blendFunc( gl.SRC_ALPHA, gl.ONE );
...
...
@@ -30920,7 +30925,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
// TODO: Find blendFuncSeparate() combination
this.enable( gl.BLEND );
gl.blendEquation( gl.FUNC_ADD );
gl.blendFunc( gl.ZERO, gl.ONE_MINUS_SRC_COLOR );
...
...
@@ -30928,17 +30932,11 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
// TODO: Find blendFuncSeparate() combination
this.enable( gl.BLEND );
gl.blendEquation( gl.FUNC_ADD );
gl.blendFunc( gl.ZERO, gl.SRC_COLOR );
} else if ( blending === THREE.CustomBlending ) {
this.enable( gl.BLEND );
} else {
this.enable( gl.BLEND );
gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
gl.blendFuncSeparate( gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA );
...
...
@@ -32121,6 +32119,12 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
*/
Object.defineProperties( THREE.Box2.prototype, {
empty: {
value: function () {
console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
return this.isEmpty();
}
},
isIntersectionBox: {
value: function ( box ) {
console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
...
...
@@ -32130,6 +32134,12 @@ Object.defineProperties( THREE.Box2.prototype, {
} );
Object.defineProperties( THREE.Box3.prototype, {
empty: {
value: function () {
console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
return this.isEmpty();
}
},
isIntersectionBox: {
value: function ( box ) {
console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
...
...
build/three.min.js
浏览文件 @
11b8b250
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录