Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
47a4fdf4
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,发现更多精彩内容 >>
提交
47a4fdf4
编写于
5月 11, 2018
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
624b961b
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
636 addition
and
598 deletion
+636
-598
build/three.js
build/three.js
+52
-33
build/three.min.js
build/three.min.js
+532
-532
build/three.module.js
build/three.module.js
+52
-33
未找到文件。
build/three.js
浏览文件 @
47a4fdf4
...
...
@@ -15814,12 +15814,13 @@
function setValueT1( gl, v, renderer ) {
var cache = this.cache;
var unit = renderer.allocTextureUnit();
if (
this.
cache[ 0 ] !== unit ) {
if ( cache[ 0 ] !== unit ) {
gl.uniform1i( this.addr, unit );
this.
cache[ 0 ] = unit;
cache[ 0 ] = unit;
}
...
...
@@ -15829,12 +15830,13 @@
function setValueT6( gl, v, renderer ) {
var cache = this.cache;
var unit = renderer.allocTextureUnit();
if (
this.
cache[ 0 ] !== unit ) {
if ( cache[ 0 ] !== unit ) {
gl.uniform1i( this.addr, unit );
this.
cache[ 0 ] = unit;
cache[ 0 ] = unit;
}
...
...
@@ -15846,31 +15848,37 @@
function setValue2iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform2iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
function setValue3iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform3iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
function setValue4iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform4iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
...
...
@@ -15905,13 +15913,25 @@
function setValue1fv( gl, v ) {
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform1fv( this.addr, v );
copyArray( cache, v );
}
function setValue1iv( gl, v ) {
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform1iv( this.addr, v );
copyArray( cache, v );
}
// Array of vectors (flat or from THREE classes)
...
...
@@ -15958,10 +15978,17 @@
function setValueT1a( gl, v, renderer ) {
var n = v.length,
units = allocTexUnits( renderer, n );
var cache = this.cache;
var n = v.length;
var units = allocTexUnits( renderer, n );
if ( arraysEqual( cache, units ) === false ) {
gl.uniform1iv( this.addr, units );
gl.uniform1iv( this.addr, units );
copyArray( cache, units );
}
for ( var i = 0; i !== n; ++ i ) {
...
...
@@ -15973,10 +16000,17 @@
function setValueT6a( gl, v, renderer ) {
var n = v.length,
units = allocTexUnits( renderer, n );
var cache = this.cache;
var n = v.length;
var units = allocTexUnits( renderer, n );
if ( arraysEqual( cache, units ) === false ) {
gl.uniform1iv( this.addr, units );
gl.uniform1iv( this.addr, units );
copyArray( cache, units );
}
for ( var i = 0; i !== n; ++ i ) {
...
...
@@ -16030,6 +16064,7 @@
this.id = id;
this.addr = addr;
this.cache = [];
this.size = activeInfo.size;
this.setValue = getPureArraySetter( activeInfo.type );
...
...
@@ -19246,23 +19281,7 @@
function enableAttribute( attribute ) {
newAttributes[ attribute ] = 1;
if ( enabledAttributes[ attribute ] === 0 ) {
gl.enableVertexAttribArray( attribute );
enabledAttributes[ attribute ] = 1;
}
if ( attributeDivisors[ attribute ] !== 0 ) {
var extension = extensions.get( 'ANGLE_instanced_arrays' );
extension.vertexAttribDivisorANGLE( attribute, 0 );
attributeDivisors[ attribute ] = 0;
}
enableAttributeAndDivisor( attribute, 0 );
}
build/three.min.js
浏览文件 @
47a4fdf4
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
47a4fdf4
...
...
@@ -15808,12 +15808,13 @@ function setValue4fm( gl, v ) {
function setValueT1( gl, v, renderer ) {
var cache = this.cache;
var unit = renderer.allocTextureUnit();
if (
this.
cache[ 0 ] !== unit ) {
if ( cache[ 0 ] !== unit ) {
gl.uniform1i( this.addr, unit );
this.
cache[ 0 ] = unit;
cache[ 0 ] = unit;
}
...
...
@@ -15823,12 +15824,13 @@ function setValueT1( gl, v, renderer ) {
function setValueT6( gl, v, renderer ) {
var cache = this.cache;
var unit = renderer.allocTextureUnit();
if (
this.
cache[ 0 ] !== unit ) {
if ( cache[ 0 ] !== unit ) {
gl.uniform1i( this.addr, unit );
this.
cache[ 0 ] = unit;
cache[ 0 ] = unit;
}
...
...
@@ -15840,31 +15842,37 @@ function setValueT6( gl, v, renderer ) {
function setValue2iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform2iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
function setValue3iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform3iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
function setValue4iv( gl, v ) {
if ( arraysEqual( this.cache, v ) ) return;
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform4iv( this.addr, v );
copyArray(
this.
cache, v );
copyArray( cache, v );
}
...
...
@@ -15899,13 +15907,25 @@ function getSingularSetter( type ) {
function setValue1fv( gl, v ) {
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform1fv( this.addr, v );
copyArray( cache, v );
}
function setValue1iv( gl, v ) {
var cache = this.cache;
if ( arraysEqual( cache, v ) ) return;
gl.uniform1iv( this.addr, v );
copyArray( cache, v );
}
// Array of vectors (flat or from THREE classes)
...
...
@@ -15952,10 +15972,17 @@ function setValueM4a( gl, v ) {
function setValueT1a( gl, v, renderer ) {
var n = v.length,
units = allocTexUnits( renderer, n );
var cache = this.cache;
var n = v.length;
var units = allocTexUnits( renderer, n );
if ( arraysEqual( cache, units ) === false ) {
gl.uniform1iv( this.addr, units );
gl.uniform1iv( this.addr, units );
copyArray( cache, units );
}
for ( var i = 0; i !== n; ++ i ) {
...
...
@@ -15967,10 +15994,17 @@ function setValueT1a( gl, v, renderer ) {
function setValueT6a( gl, v, renderer ) {
var n = v.length,
units = allocTexUnits( renderer, n );
var cache = this.cache;
var n = v.length;
var units = allocTexUnits( renderer, n );
if ( arraysEqual( cache, units ) === false ) {
gl.uniform1iv( this.addr, units );
gl.uniform1iv( this.addr, units );
copyArray( cache, units );
}
for ( var i = 0; i !== n; ++ i ) {
...
...
@@ -16024,6 +16058,7 @@ function PureArrayUniform( id, activeInfo, addr ) {
this.id = id;
this.addr = addr;
this.cache = [];
this.size = activeInfo.size;
this.setValue = getPureArraySetter( activeInfo.type );
...
...
@@ -19240,23 +19275,7 @@ function WebGLState( gl, extensions, utils ) {
function enableAttribute( attribute ) {
newAttributes[ attribute ] = 1;
if ( enabledAttributes[ attribute ] === 0 ) {
gl.enableVertexAttribArray( attribute );
enabledAttributes[ attribute ] = 1;
}
if ( attributeDivisors[ attribute ] !== 0 ) {
var extension = extensions.get( 'ANGLE_instanced_arrays' );
extension.vertexAttribDivisorANGLE( attribute, 0 );
attributeDivisors[ attribute ] = 0;
}
enableAttributeAndDivisor( attribute, 0 );
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录