Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
9c2974d6
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,发现更多精彩内容 >>
提交
9c2974d6
编写于
1月 16, 2020
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
b068a63d
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
191 addition
and
158 deletion
+191
-158
build/three.js
build/three.js
+39
-22
build/three.min.js
build/three.min.js
+113
-114
build/three.module.js
build/three.module.js
+39
-22
未找到文件。
build/three.js
浏览文件 @
9c2974d6
...
...
@@ -3861,6 +3861,12 @@
},
setFromMatrix3Column: function ( m, index ) {
return this.fromArray( m.elements, index * 3 );
},
equals: function ( v ) {
return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) );
...
...
@@ -13804,7 +13810,7 @@
options = options || { format: RGBFormat, magFilter: LinearFilter, minFilter: LinearFilter };
this.renderTarget = new WebGLCubeRenderTarget( cubeResolution,
cubeResolution,
options );
this.renderTarget = new WebGLCubeRenderTarget( cubeResolution, options );
this.renderTarget.texture.name = "CubeCamera";
this.update = function ( renderer, scene ) {
...
...
@@ -13870,9 +13876,17 @@
* @author WestLangley / http://github.com/WestLangley
*/
function WebGLCubeRenderTarget(
width, height, options
) {
function WebGLCubeRenderTarget(
size, options, dummy
) {
WebGLRenderTarget.call( this, width, height, options );
if ( Number.isInteger( options ) ) {
console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )' );
options = dummy;
}
WebGLRenderTarget.call( this, size, size, options );
}
...
...
@@ -15397,6 +15411,7 @@
// so we can recompile the material accordingly.
var currentBackground = null;
var currentBackgroundVersion = 0;
var currentTonemapping = null;
function render( renderList, scene, camera, forceClear ) {
...
...
@@ -15483,12 +15498,14 @@
boxMesh.material.uniforms.flipEnvMap.value = texture.isCubeTexture ? - 1 : 1;
if ( currentBackground !== background ||
currentBackgroundVersion !== texture.version ) {
currentBackgroundVersion !== texture.version ||
currentTonemapping !== renderer.toneMapping ) {
boxMesh.material.needsUpdate = true;
currentBackground = background;
currentBackgroundVersion = texture.version;
currentTonemapping = renderer.toneMapping;
}
...
...
@@ -15541,12 +15558,14 @@
planeMesh.material.uniforms.uvTransform.value.copy( background.matrix );
if ( currentBackground !== background ||
currentBackgroundVersion !== background.version ) {
currentBackgroundVersion !== background.version ||
currentTonemapping !== renderer.toneMapping ) {
planeMesh.material.needsUpdate = true;
currentBackground = background;
currentBackgroundVersion = background.version;
currentTonemapping = renderer.toneMapping;
}
...
...
@@ -18692,9 +18711,9 @@
extensionDrawbuffers: material.extensions && material.extensions.drawbuffers,
extensionShaderTextureLOD: material.extensions && material.extensions.shaderTextureLOD,
renderExtensionFragDepth: extensions.get( 'EXT_frag_depth' ) !== undefined,
renderExtensionDrawBuffers: extensions.get( 'WEBGL_draw_buffers' ) !== undefined,
renderExtensionShaderTextureLod: extensions.get( 'EXT_shader_texture_lod' ) !== undefined,
render
er
ExtensionFragDepth: extensions.get( 'EXT_frag_depth' ) !== undefined,
render
er
ExtensionDrawBuffers: extensions.get( 'WEBGL_draw_buffers' ) !== undefined,
render
er
ExtensionShaderTextureLod: extensions.get( 'EXT_shader_texture_lod' ) !== undefined,
onBeforeCompile: material.onBeforeCompile
...
...
@@ -24970,35 +24989,33 @@
if ( materialProperties.program === undefined ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( material.fog && materialProperties.fog !== fog ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.environment !== environment ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.needsLights && ( materialProperties.lightsStateVersion !== lights.state.version ) ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.numClippingPlanes !== undefined &&
( materialProperties.numClippingPlanes !== _clipping.numPlanes ||
materialProperties.numIntersection !== _clipping.numIntersection ) ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.outputEncoding !== _this.outputEncoding ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
}
}
if ( material.version !== materialProperties.__version ) {
} else {
initMaterial( material, scene, object );
materialProperties.__version = material.version;
...
...
@@ -28203,7 +28220,7 @@
* @author Mugen87 / https://github.com/Mugen87
*
* Parametric Surfaces Geometry
* based on the brilliant article by @prideout http
://prideout.net/blog/?p=44
* based on the brilliant article by @prideout http
s://prideout.net/blog/old/blog/index.html@p=44.html
*/
// ParametricGeometry
...
...
@@ -47928,8 +47945,8 @@
function DynamicBufferAttribute( array, itemSize ) {
console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().set
Dynamic( tru
e ) instead.' );
return new BufferAttribute( array, itemSize ).set
Dynamic( tru
e );
console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().set
Usage( THREE.DynamicDrawUsag
e ) instead.' );
return new BufferAttribute( array, itemSize ).set
Usage( DynamicDrawUsag
e );
}
...
...
@@ -49546,8 +49563,8 @@
function WebGLRenderTargetCube( width, height, options ) {
console.warn( 'THREE.WebGLRenderTargetCube
has been renamed to WebGLCubeRenderTarget
.' );
return new WebGLCubeRenderTarget( width,
height,
options );
console.warn( 'THREE.WebGLRenderTargetCube
( width, height, options ) is now WebGLCubeRenderTarget( size, options )
.' );
return new WebGLCubeRenderTarget( width, options );
}
build/three.min.js
浏览文件 @
9c2974d6
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
9c2974d6
...
...
@@ -3855,6 +3855,12 @@ Object.assign( Vector3.prototype, {
},
setFromMatrix3Column: function ( m, index ) {
return this.fromArray( m.elements, index * 3 );
},
equals: function ( v ) {
return ( ( v.x === this.x ) && ( v.y === this.y ) && ( v.z === this.z ) );
...
...
@@ -13790,7 +13796,7 @@ function CubeCamera( near, far, cubeResolution, options ) {
options = options || { format: RGBFormat, magFilter: LinearFilter, minFilter: LinearFilter };
this.renderTarget = new WebGLCubeRenderTarget( cubeResolution,
cubeResolution,
options );
this.renderTarget = new WebGLCubeRenderTarget( cubeResolution, options );
this.renderTarget.texture.name = "CubeCamera";
this.update = function ( renderer, scene ) {
...
...
@@ -13856,9 +13862,17 @@ CubeCamera.prototype.constructor = CubeCamera;
* @author WestLangley / http://github.com/WestLangley
*/
function WebGLCubeRenderTarget(
width, height, options
) {
function WebGLCubeRenderTarget(
size, options, dummy
) {
WebGLRenderTarget.call( this, width, height, options );
if ( Number.isInteger( options ) ) {
console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )' );
options = dummy;
}
WebGLRenderTarget.call( this, size, size, options );
}
...
...
@@ -15384,6 +15398,7 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
// so we can recompile the material accordingly.
var currentBackground = null;
var currentBackgroundVersion = 0;
var currentTonemapping = null;
function render( renderList, scene, camera, forceClear ) {
...
...
@@ -15470,12 +15485,14 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
boxMesh.material.uniforms.flipEnvMap.value = texture.isCubeTexture ? - 1 : 1;
if ( currentBackground !== background ||
currentBackgroundVersion !== texture.version ) {
currentBackgroundVersion !== texture.version ||
currentTonemapping !== renderer.toneMapping ) {
boxMesh.material.needsUpdate = true;
currentBackground = background;
currentBackgroundVersion = texture.version;
currentTonemapping = renderer.toneMapping;
}
...
...
@@ -15528,12 +15545,14 @@ function WebGLBackground( renderer, state, objects, premultipliedAlpha ) {
planeMesh.material.uniforms.uvTransform.value.copy( background.matrix );
if ( currentBackground !== background ||
currentBackgroundVersion !== background.version ) {
currentBackgroundVersion !== background.version ||
currentTonemapping !== renderer.toneMapping ) {
planeMesh.material.needsUpdate = true;
currentBackground = background;
currentBackgroundVersion = background.version;
currentTonemapping = renderer.toneMapping;
}
...
...
@@ -18679,9 +18698,9 @@ function WebGLPrograms( renderer, extensions, capabilities ) {
extensionDrawbuffers: material.extensions && material.extensions.drawbuffers,
extensionShaderTextureLOD: material.extensions && material.extensions.shaderTextureLOD,
renderExtensionFragDepth: extensions.get( 'EXT_frag_depth' ) !== undefined,
renderExtensionDrawBuffers: extensions.get( 'WEBGL_draw_buffers' ) !== undefined,
renderExtensionShaderTextureLod: extensions.get( 'EXT_shader_texture_lod' ) !== undefined,
render
er
ExtensionFragDepth: extensions.get( 'EXT_frag_depth' ) !== undefined,
render
er
ExtensionDrawBuffers: extensions.get( 'WEBGL_draw_buffers' ) !== undefined,
render
er
ExtensionShaderTextureLod: extensions.get( 'EXT_shader_texture_lod' ) !== undefined,
onBeforeCompile: material.onBeforeCompile
...
...
@@ -24962,35 +24981,33 @@ function WebGLRenderer( parameters ) {
if ( materialProperties.program === undefined ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( material.fog && materialProperties.fog !== fog ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.environment !== environment ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.needsLights && ( materialProperties.lightsStateVersion !== lights.state.version ) ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.numClippingPlanes !== undefined &&
( materialProperties.numClippingPlanes !== _clipping.numPlanes ||
materialProperties.numIntersection !== _clipping.numIntersection ) ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
} else if ( materialProperties.outputEncoding !== _this.outputEncoding ) {
material.needsUpdate = true
;
initMaterial( material, scene, object )
;
}
}
if ( material.version !== materialProperties.__version ) {
} else {
initMaterial( material, scene, object );
materialProperties.__version = material.version;
...
...
@@ -28195,7 +28212,7 @@ WireframeGeometry.prototype.constructor = WireframeGeometry;
* @author Mugen87 / https://github.com/Mugen87
*
* Parametric Surfaces Geometry
* based on the brilliant article by @prideout http
://prideout.net/blog/?p=44
* based on the brilliant article by @prideout http
s://prideout.net/blog/old/blog/index.html@p=44.html
*/
// ParametricGeometry
...
...
@@ -48078,8 +48095,8 @@ function Vertex( x, y, z ) {
function DynamicBufferAttribute( array, itemSize ) {
console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().set
Dynamic( tru
e ) instead.' );
return new BufferAttribute( array, itemSize ).set
Dynamic( tru
e );
console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().set
Usage( THREE.DynamicDrawUsag
e ) instead.' );
return new BufferAttribute( array, itemSize ).set
Usage( DynamicDrawUsag
e );
}
...
...
@@ -49696,8 +49713,8 @@ Object.defineProperties( WebGLShadowMap.prototype, {
function WebGLRenderTargetCube( width, height, options ) {
console.warn( 'THREE.WebGLRenderTargetCube
has been renamed to WebGLCubeRenderTarget
.' );
return new WebGLCubeRenderTarget( width,
height,
options );
console.warn( 'THREE.WebGLRenderTargetCube
( width, height, options ) is now WebGLCubeRenderTarget( size, options )
.' );
return new WebGLCubeRenderTarget( width, options );
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录