Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
7fedf926
T
three.js
项目概览
车家大少爷
/
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,发现更多精彩内容 >>
提交
7fedf926
编写于
1月 06, 2018
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
6b7ee3e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
740 addition
and
769 deletion
+740
-769
build/three.js
build/three.js
+19
-33
build/three.min.js
build/three.min.js
+702
-703
build/three.module.js
build/three.module.js
+19
-33
未找到文件。
build/three.js
浏览文件 @
7fedf926
...
...
@@ -17452,7 +17452,7 @@
}
function
clear
() {
function
dispose
() {
updateList = {};
...
...
@@ -17461,7 +17461,7 @@
return {
update: update,
clear: clear
dispose: dispose
};
...
...
@@ -18489,7 +18489,7 @@
* @author mrdoob / http://mrdoob.com/
*/
function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) {
function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory
, infoRender
) {
var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof WebGL2RenderingContext );
var _videoTextures = {};
...
...
@@ -18684,6 +18684,8 @@
var textureProperties = properties.get( texture );
if ( texture.isVideoTexture ) updateVideoTexture( texture );
if ( texture.version > 0 && textureProperties.__version !== texture.version ) {
var image = texture.image;
...
...
@@ -18895,12 +18897,6 @@
textureProperties.__webglTexture = _gl.createTexture();
if ( texture.isVideoTexture ) {
_videoTextures[ texture.id ] = texture;
}
infoMemory.textures ++;
}
...
...
@@ -19282,11 +19278,17 @@
}
function updateVideoTextures() {
function updateVideoTexture( texture ) {
var id = texture.id;
var frame = infoRender.frame;
// Check the last frame we updated the VideoTexture
for ( var id in _videoTextures
) {
if ( _videoTextures[ id ] !== frame
) {
_videoTextures[ id ].update();
_videoTextures[ id ] = frame;
texture.update();
}
...
...
@@ -19297,7 +19299,6 @@
this.setTextureCubeDynamic = setTextureCubeDynamic;
this.setupRenderTarget = setupRenderTarget;
this.updateRenderTargetMipmap = updateRenderTargetMipmap;
this.updateVideoTextures = updateVideoTextures;
}
...
...
@@ -19331,7 +19332,7 @@
}
function
clear
() {
function
dispose
() {
properties = {};
...
...
@@ -19340,7 +19341,7 @@
return {
get: get,
remove: remove,
clear: clear
dispose: dispose
};
}
...
...
@@ -21478,7 +21479,7 @@
state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ) );
properties = new WebGLProperties();
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, _infoMemory );
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, _infoMemory
, _infoRender
);
attributes = new WebGLAttributes( _gl );
geometries = new WebGLGeometries( _gl, attributes, _infoMemory );
objects = new WebGLObjects( geometries, _infoRender );
...
...
@@ -21715,6 +21716,8 @@
_canvas.removeEventListener( 'webglcontextrestored', onContextRestore, false );
renderLists.dispose();
properties.dispose();
objects.dispose();
vr.dispose();
...
...
@@ -22335,10 +22338,6 @@
//
textures.updateVideoTextures();
//
if ( _clippingEnabled ) _clipping.beginShadows();
shadowMap.render( shadowsArray, scene, camera );
...
...
@@ -25154,19 +25153,6 @@
this.generateMipmaps = false;
// Set needsUpdate when first frame is ready
var scope = this;
function onLoaded() {
video.removeEventListener( 'loadeddata', onLoaded, false );
scope.needsUpdate = true;
}
video.addEventListener( 'loadeddata', onLoaded, false );
}
VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), {
build/three.min.js
浏览文件 @
7fedf926
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
build/three.module.js
浏览文件 @
7fedf926
...
...
@@ -17446,7 +17446,7 @@ function WebGLObjects( geometries, infoRender ) {
}
function
clear
() {
function
dispose
() {
updateList = {};
...
...
@@ -17455,7 +17455,7 @@ function WebGLObjects( geometries, infoRender ) {
return {
update: update,
clear: clear
dispose: dispose
};
...
...
@@ -18483,7 +18483,7 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
* @author mrdoob / http://mrdoob.com/
*/
function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) {
function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory
, infoRender
) {
var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof WebGL2RenderingContext );
var _videoTextures = {};
...
...
@@ -18678,6 +18678,8 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
var textureProperties = properties.get( texture );
if ( texture.isVideoTexture ) updateVideoTexture( texture );
if ( texture.version > 0 && textureProperties.__version !== texture.version ) {
var image = texture.image;
...
...
@@ -18889,12 +18891,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
textureProperties.__webglTexture = _gl.createTexture();
if ( texture.isVideoTexture ) {
_videoTextures[ texture.id ] = texture;
}
infoMemory.textures ++;
}
...
...
@@ -19276,11 +19272,17 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
}
function updateVideoTextures() {
function updateVideoTexture( texture ) {
var id = texture.id;
var frame = infoRender.frame;
// Check the last frame we updated the VideoTexture
for ( var id in _videoTextures
) {
if ( _videoTextures[ id ] !== frame
) {
_videoTextures[ id ].update();
_videoTextures[ id ] = frame;
texture.update();
}
...
...
@@ -19291,7 +19293,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
this.setTextureCubeDynamic = setTextureCubeDynamic;
this.setupRenderTarget = setupRenderTarget;
this.updateRenderTargetMipmap = updateRenderTargetMipmap;
this.updateVideoTextures = updateVideoTextures;
}
...
...
@@ -19325,7 +19326,7 @@ function WebGLProperties() {
}
function
clear
() {
function
dispose
() {
properties = {};
...
...
@@ -19334,7 +19335,7 @@ function WebGLProperties() {
return {
get: get,
remove: remove,
clear: clear
dispose: dispose
};
}
...
...
@@ -21472,7 +21473,7 @@ function WebGLRenderer( parameters ) {
state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ) );
properties = new WebGLProperties();
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, _infoMemory );
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, _infoMemory
, _infoRender
);
attributes = new WebGLAttributes( _gl );
geometries = new WebGLGeometries( _gl, attributes, _infoMemory );
objects = new WebGLObjects( geometries, _infoRender );
...
...
@@ -21709,6 +21710,8 @@ function WebGLRenderer( parameters ) {
_canvas.removeEventListener( 'webglcontextrestored', onContextRestore, false );
renderLists.dispose();
properties.dispose();
objects.dispose();
vr.dispose();
...
...
@@ -22329,10 +22332,6 @@ function WebGLRenderer( parameters ) {
//
textures.updateVideoTextures();
//
if ( _clippingEnabled ) _clipping.beginShadows();
shadowMap.render( shadowsArray, scene, camera );
...
...
@@ -25148,19 +25147,6 @@ function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, forma
this.generateMipmaps = false;
// Set needsUpdate when first frame is ready
var scope = this;
function onLoaded() {
video.removeEventListener( 'loadeddata', onLoaded, false );
scope.needsUpdate = true;
}
video.addEventListener( 'loadeddata', onLoaded, false );
}
VideoTexture.prototype = Object.assign( Object.create( Texture.prototype ), {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录