Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
c7d06c02
T
three.js
项目概览
fktz008
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
c7d06c02
编写于
3月 03, 2022
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
r138 (bis) (bis) (bis)
上级
52eda737
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
30 deletion
+15
-30
build/three.cjs
build/three.cjs
+4
-9
build/three.js
build/three.js
+4
-9
build/three.min.js
build/three.min.js
+1
-1
build/three.module.js
build/three.module.js
+5
-10
package.json
package.json
+1
-1
未找到文件。
build/three.cjs
浏览文件 @
c7d06c02
...
@@ -1869,6 +1869,7 @@ class Texture extends EventDispatcher {
...
@@ -1869,6 +1869,7 @@ class Texture extends EventDispatcher {
this.unpackAlignment = source.unpackAlignment;
this.unpackAlignment = source.unpackAlignment;
this.encoding = source.encoding;
this.encoding = source.encoding;
this.userData = JSON.parse(JSON.stringify(source.userData));
this.userData = JSON.parse(JSON.stringify(source.userData));
this.needsUpdate = true;
return this;
return this;
}
}
...
@@ -2635,6 +2636,7 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
...
@@ -2635,6 +2636,7 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
for (let i = 0; i < count; i++) {
for (let i = 0; i < count; i++) {
this.texture[i] = texture.clone();
this.texture[i] = texture.clone();
this.texture[i].isRenderTargetTexture = true;
}
}
}
}
...
@@ -16801,7 +16803,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
...
@@ -16801,7 +16803,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
const textureProperties = properties.get(texture);
const textureProperties = properties.get(texture);
if (texture.isVideoTexture) updateVideoTexture(texture);
if (texture.isVideoTexture) updateVideoTexture(texture);
if (texture.version > 0 && textureProperties.__version !== texture.version) {
if (texture.
isRenderTargetTexture === false && texture.
version > 0 && textureProperties.__version !== texture.version) {
const image = texture.image;
const image = texture.image;
if (image === null) {
if (image === null) {
...
@@ -20342,12 +20344,6 @@ function WebGLRenderer(parameters = {}) {
...
@@ -20342,12 +20344,6 @@ function WebGLRenderer(parameters = {}) {
uniforms.spotLightShadows.needsUpdate = value;
uniforms.spotLightShadows.needsUpdate = value;
uniforms.rectAreaLights.needsUpdate = value;
uniforms.rectAreaLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.directionalShadowMap.needsUpdate = value;
uniforms.directionalShadowMatrix.needsUpdate = value;
uniforms.spotShadowMap.needsUpdate = value;
uniforms.spotShadowMatrix.needsUpdate = value;
uniforms.pointShadowMap.needsUpdate = value;
uniforms.pointShadowMatrix.needsUpdate = value;
}
}
function materialNeedsLights(material) {
function materialNeedsLights(material) {
...
@@ -20380,8 +20376,7 @@ function WebGLRenderer(parameters = {}) {
...
@@ -20380,8 +20376,7 @@ function WebGLRenderer(parameters = {}) {
// are midframe flushes and an external depth buffer. Disable use of the extension.
// are midframe flushes and an external depth buffer. Disable use of the extension.
if (extensions.has('WEBGL_multisampled_render_to_texture') === true) {
if (extensions.has('WEBGL_multisampled_render_to_texture') === true) {
console.warn('THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided');
console.warn('THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided');
renderTarget.useRenderToTexture = false;
renderTargetProperties.__useRenderToTexture = false;
renderTarget.useRenderbuffer = true;
}
}
}
}
}
}
build/three.js
浏览文件 @
c7d06c02
...
@@ -1871,6 +1871,7 @@
...
@@ -1871,6 +1871,7 @@
this.unpackAlignment = source.unpackAlignment;
this.unpackAlignment = source.unpackAlignment;
this.encoding = source.encoding;
this.encoding = source.encoding;
this.userData = JSON.parse(JSON.stringify(source.userData));
this.userData = JSON.parse(JSON.stringify(source.userData));
this.needsUpdate = true;
return this;
return this;
}
}
...
@@ -2637,6 +2638,7 @@
...
@@ -2637,6 +2638,7 @@
for (let i = 0; i < count; i++) {
for (let i = 0; i < count; i++) {
this.texture[i] = texture.clone();
this.texture[i] = texture.clone();
this.texture[i].isRenderTargetTexture = true;
}
}
}
}
...
@@ -16803,7 +16805,7 @@
...
@@ -16803,7 +16805,7 @@
const textureProperties = properties.get(texture);
const textureProperties = properties.get(texture);
if (texture.isVideoTexture) updateVideoTexture(texture);
if (texture.isVideoTexture) updateVideoTexture(texture);
if (texture.version > 0 && textureProperties.__version !== texture.version) {
if (texture.
isRenderTargetTexture === false && texture.
version > 0 && textureProperties.__version !== texture.version) {
const image = texture.image;
const image = texture.image;
if (image === null) {
if (image === null) {
...
@@ -20344,12 +20346,6 @@
...
@@ -20344,12 +20346,6 @@
uniforms.spotLightShadows.needsUpdate = value;
uniforms.spotLightShadows.needsUpdate = value;
uniforms.rectAreaLights.needsUpdate = value;
uniforms.rectAreaLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.directionalShadowMap.needsUpdate = value;
uniforms.directionalShadowMatrix.needsUpdate = value;
uniforms.spotShadowMap.needsUpdate = value;
uniforms.spotShadowMatrix.needsUpdate = value;
uniforms.pointShadowMap.needsUpdate = value;
uniforms.pointShadowMatrix.needsUpdate = value;
}
}
function materialNeedsLights(material) {
function materialNeedsLights(material) {
...
@@ -20382,8 +20378,7 @@
...
@@ -20382,8 +20378,7 @@
// are midframe flushes and an external depth buffer. Disable use of the extension.
// are midframe flushes and an external depth buffer. Disable use of the extension.
if (extensions.has('WEBGL_multisampled_render_to_texture') === true) {
if (extensions.has('WEBGL_multisampled_render_to_texture') === true) {
console.warn('THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided');
console.warn('THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided');
renderTarget.useRenderToTexture = false;
renderTargetProperties.__useRenderToTexture = false;
renderTarget.useRenderbuffer = true;
}
}
}
}
}
}
build/three.min.js
浏览文件 @
c7d06c02
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
c7d06c02
...
@@ -2312,6 +2312,8 @@ class Texture extends EventDispatcher {
...
@@ -2312,6 +2312,8 @@ class Texture extends EventDispatcher {
this.userData = JSON.parse( JSON.stringify( source.userData ) );
this.userData = JSON.parse( JSON.stringify( source.userData ) );
this.needsUpdate = true;
return this;
return this;
}
}
...
@@ -3345,6 +3347,7 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
...
@@ -3345,6 +3347,7 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
for ( let i = 0; i < count; i ++ ) {
for ( let i = 0; i < count; i ++ ) {
this.texture[ i ] = texture.clone();
this.texture[ i ] = texture.clone();
this.texture[ i ].isRenderTargetTexture = true;
}
}
...
@@ -22607,7 +22610,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
...
@@ -22607,7 +22610,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( texture.isVideoTexture ) updateVideoTexture( texture );
if ( texture.isVideoTexture ) updateVideoTexture( texture );
if ( texture.version > 0 && textureProperties.__version !== texture.version ) {
if ( texture.
isRenderTargetTexture === false && texture.
version > 0 && textureProperties.__version !== texture.version ) {
const image = texture.image;
const image = texture.image;
...
@@ -27788,13 +27791,6 @@ function WebGLRenderer( parameters = {} ) {
...
@@ -27788,13 +27791,6 @@ function WebGLRenderer( parameters = {} ) {
uniforms.rectAreaLights.needsUpdate = value;
uniforms.rectAreaLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.hemisphereLights.needsUpdate = value;
uniforms.directionalShadowMap.needsUpdate = value;
uniforms.directionalShadowMatrix.needsUpdate = value;
uniforms.spotShadowMap.needsUpdate = value;
uniforms.spotShadowMatrix.needsUpdate = value;
uniforms.pointShadowMap.needsUpdate = value;
uniforms.pointShadowMatrix.needsUpdate = value;
}
}
function materialNeedsLights( material ) {
function materialNeedsLights( material ) {
...
@@ -27842,8 +27838,7 @@ function WebGLRenderer( parameters = {} ) {
...
@@ -27842,8 +27838,7 @@ function WebGLRenderer( parameters = {} ) {
if ( extensions.has( 'WEBGL_multisampled_render_to_texture' ) === true ) {
if ( extensions.has( 'WEBGL_multisampled_render_to_texture' ) === true ) {
console.warn( 'THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided' );
console.warn( 'THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided' );
renderTarget.useRenderToTexture = false;
renderTargetProperties.__useRenderToTexture = false;
renderTarget.useRenderbuffer = true;
}
}
package.json
浏览文件 @
c7d06c02
{
{
"name"
:
"three"
,
"name"
:
"three"
,
"version"
:
"0.138.
2
"
,
"version"
:
"0.138.
3
"
,
"description"
:
"JavaScript 3D library"
,
"description"
:
"JavaScript 3D library"
,
"type"
:
"module"
,
"type"
:
"module"
,
"main"
:
"./build/three.js"
,
"main"
:
"./build/three.js"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录