Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
276652c8
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,发现更多精彩内容 >>
提交
276652c8
编写于
9月 21, 2020
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
86b43b4c
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
87 addition
and
41 deletion
+87
-41
build/three.js
build/three.js
+43
-20
build/three.min.js
build/three.min.js
+1
-1
build/three.module.js
build/three.module.js
+43
-20
未找到文件。
build/three.js
浏览文件 @
276652c8
...
...
@@ -23452,7 +23452,7 @@
if ( controller ) {
controller.dispatchEvent( { type: event.type } );
controller.dispatchEvent( { type: event.type
, data: event.inputSource
} );
}
...
...
@@ -28073,13 +28073,13 @@
var vEnd = new Vector3();
var interSegment = new Vector3();
var interRay = new Vector3();
var step =
( this && this.isLineSegments )
? 2 : 1;
var step =
this.isLineSegments
? 2 : 1;
if ( geometry.isBufferGeometry ) {
var index = geometry.index;
var attributes = geometry.attributes;
var position
s = attributes.position.array
;
var position
Attribute = attributes.position
;
if ( index !== null ) {
...
...
@@ -28090,8 +28090,8 @@
var a = indices[ i ];
var b = indices[ i + 1 ];
vStart.from
Array( positions, a * 3
);
vEnd.from
Array( positions, b * 3
);
vStart.from
BufferAttribute( positionAttribute, a
);
vEnd.from
BufferAttribute( positionAttribute, b
);
var distSq = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment );
...
...
@@ -28120,10 +28120,10 @@
} else {
for ( var i$1 = 0, l$1 = position
s.length / 3
- 1; i$1 < l$1; i$1 += step ) {
for ( var i$1 = 0, l$1 = position
Attribute.count
- 1; i$1 < l$1; i$1 += step ) {
vStart.from
Array( positions, 3 *
i$1 );
vEnd.from
Array( positions, 3 * i$1 + 3
);
vStart.from
BufferAttribute( positionAttribute,
i$1 );
vEnd.from
BufferAttribute( positionAttribute, i$1 + 1
);
var distSq$1 = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment );
...
...
@@ -28444,7 +28444,7 @@
var index = geometry.index;
var attributes = geometry.attributes;
var position
s = attributes.position.array
;
var position
Attribute = attributes.position
;
if ( index !== null ) {
...
...
@@ -28454,7 +28454,7 @@
var a = indices[ i ];
_position$1.from
Array( positions, a * 3
);
_position$1.from
BufferAttribute( positionAttribute, a
);
testPoint( _position$1, a, localThresholdSq, matrixWorld, raycaster, intersects, this );
...
...
@@ -28462,9 +28462,9 @@
} else {
for ( var i$1 = 0, l = position
s.length / 3
; i$1 < l; i$1 ++ ) {
for ( var i$1 = 0, l = position
Attribute.count
; i$1 < l; i$1 ++ ) {
_position$1.from
Array( positions, i$1 * 3
);
_position$1.from
BufferAttribute( positionAttribute, i$1
);
testPoint( _position$1, i$1, localThresholdSq, matrixWorld, raycaster, intersects, this );
...
...
@@ -33342,6 +33342,7 @@
* clearcoatNormalMap: new THREE.Texture( <Image> ),
*
* reflectivity: <float>,
* ior: <float>,
*
* sheen: <Color>,
*
...
...
@@ -33372,6 +33373,19 @@
this.reflectivity = 0.5; // maps to F0 = 0.04
Object.defineProperty( this, 'ior', {
get: function () {
return ( 1 + 0.4 * this.reflectivity ) / ( 1 - 0.4 * this.reflectivity );
},
set: function ( ior ) {
this.reflectivity = MathUtils.clamp( 2.5 * ( ior - 1 ) / ( ior + 1 ), 0, 1 );
}
} );
this.sheen = null; // null will disable sheen bsdf
this.transmission = 0.0;
...
...
@@ -36203,6 +36217,7 @@
this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
this.crossOrigin = 'anonymous';
this.withCredentials = false;
this.path = '';
this.resourcePath = '';
this.requestHeader = {};
...
...
@@ -36234,6 +36249,13 @@
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
},
setPath: function ( path ) {
this.path = path;
...
...
@@ -36542,13 +36564,6 @@
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
},
setMimeType: function ( value ) {
this.mimeType = value;
...
...
@@ -36575,6 +36590,7 @@
var loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -36648,6 +36664,7 @@
loader.setPath( this.path );
loader.setResponseType( 'arraybuffer' );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( scope.withCredentials );
var loaded = 0;
...
...
@@ -36906,6 +36923,7 @@
loader.setResponseType( 'arraybuffer' );
loader.setRequestHeader( this.requestHeader );
loader.setPath( this.path );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
var texData = scope.parse( buffer );
...
...
@@ -40004,6 +40022,7 @@
var loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -40428,6 +40447,7 @@
var loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -40643,9 +40663,10 @@
var path = ( this.path === '' ) ? LoaderUtils.extractUrlBase( url ) : this.path;
this.resourcePath = this.resourcePath || path;
var loader = new FileLoader(
scope
.manager );
var loader = new FileLoader(
this
.manager );
loader.setPath( this.path );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( this.withCredentials );
loader.load( url, function ( text ) {
var json = null;
...
...
@@ -42122,6 +42143,7 @@
var loader = new FileLoader( this.manager );
loader.setPath( this.path );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
var json;
...
...
@@ -42195,6 +42217,7 @@
loader.setResponseType( 'arraybuffer' );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
try {
build/three.min.js
浏览文件 @
276652c8
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
276652c8
...
...
@@ -23514,7 +23514,7 @@ function WebXRManager( renderer, gl ) {
if ( controller ) {
controller.dispatchEvent( { type: event.type } );
controller.dispatchEvent( { type: event.type
, data: event.inputSource
} );
}
...
...
@@ -28141,13 +28141,13 @@ Line.prototype = Object.assign( Object.create( Object3D.prototype ), {
const vEnd = new Vector3();
const interSegment = new Vector3();
const interRay = new Vector3();
const step =
( this && this.isLineSegments )
? 2 : 1;
const step =
this.isLineSegments
? 2 : 1;
if ( geometry.isBufferGeometry ) {
const index = geometry.index;
const attributes = geometry.attributes;
const position
s = attributes.position.array
;
const position
Attribute = attributes.position
;
if ( index !== null ) {
...
...
@@ -28158,8 +28158,8 @@ Line.prototype = Object.assign( Object.create( Object3D.prototype ), {
const a = indices[ i ];
const b = indices[ i + 1 ];
vStart.from
Array( positions, a * 3
);
vEnd.from
Array( positions, b * 3
);
vStart.from
BufferAttribute( positionAttribute, a
);
vEnd.from
BufferAttribute( positionAttribute, b
);
const distSq = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment );
...
...
@@ -28188,10 +28188,10 @@ Line.prototype = Object.assign( Object.create( Object3D.prototype ), {
} else {
for ( let i = 0, l = position
s.length / 3
- 1; i < l; i += step ) {
for ( let i = 0, l = position
Attribute.count
- 1; i < l; i += step ) {
vStart.from
Array( positions, 3 *
i );
vEnd.from
Array( positions, 3 * i + 3
);
vStart.from
BufferAttribute( positionAttribute,
i );
vEnd.from
BufferAttribute( positionAttribute, i + 1
);
const distSq = _ray$1.distanceSqToSegment( vStart, vEnd, interRay, interSegment );
...
...
@@ -28512,7 +28512,7 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
const index = geometry.index;
const attributes = geometry.attributes;
const position
s = attributes.position.array
;
const position
Attribute = attributes.position
;
if ( index !== null ) {
...
...
@@ -28522,7 +28522,7 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
const a = indices[ i ];
_position$1.from
Array( positions, a * 3
);
_position$1.from
BufferAttribute( positionAttribute, a
);
testPoint( _position$1, a, localThresholdSq, matrixWorld, raycaster, intersects, this );
...
...
@@ -28530,9 +28530,9 @@ Points.prototype = Object.assign( Object.create( Object3D.prototype ), {
} else {
for ( let i = 0, l = position
s.length / 3
; i < l; i ++ ) {
for ( let i = 0, l = position
Attribute.count
; i < l; i ++ ) {
_position$1.from
Array( positions, i * 3
);
_position$1.from
BufferAttribute( positionAttribute, i
);
testPoint( _position$1, i, localThresholdSq, matrixWorld, raycaster, intersects, this );
...
...
@@ -33442,6 +33442,7 @@ MeshStandardMaterial.prototype.copy = function ( source ) {
* clearcoatNormalMap: new THREE.Texture( <Image> ),
*
* reflectivity: <float>,
* ior: <float>,
*
* sheen: <Color>,
*
...
...
@@ -33472,6 +33473,19 @@ function MeshPhysicalMaterial( parameters ) {
this.reflectivity = 0.5; // maps to F0 = 0.04
Object.defineProperty( this, 'ior', {
get: function () {
return ( 1 + 0.4 * this.reflectivity ) / ( 1 - 0.4 * this.reflectivity );
},
set: function ( ior ) {
this.reflectivity = MathUtils.clamp( 2.5 * ( ior - 1 ) / ( ior + 1 ), 0, 1 );
}
} );
this.sheen = null; // null will disable sheen bsdf
this.transmission = 0.0;
...
...
@@ -36301,6 +36315,7 @@ function Loader( manager ) {
this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
this.crossOrigin = 'anonymous';
this.withCredentials = false;
this.path = '';
this.resourcePath = '';
this.requestHeader = {};
...
...
@@ -36332,6 +36347,13 @@ Object.assign( Loader.prototype, {
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
},
setPath: function ( path ) {
this.path = path;
...
...
@@ -36640,13 +36662,6 @@ FileLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
},
setMimeType: function ( value ) {
this.mimeType = value;
...
...
@@ -36673,6 +36688,7 @@ AnimationLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
const loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -36746,6 +36762,7 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
loader.setPath( this.path );
loader.setResponseType( 'arraybuffer' );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( scope.withCredentials );
let loaded = 0;
...
...
@@ -37004,6 +37021,7 @@ DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ),
loader.setResponseType( 'arraybuffer' );
loader.setRequestHeader( this.requestHeader );
loader.setPath( this.path );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
const texData = scope.parse( buffer );
...
...
@@ -40106,6 +40124,7 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
const loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -40530,6 +40549,7 @@ BufferGeometryLoader.prototype = Object.assign( Object.create( Loader.prototype
const loader = new FileLoader( scope.manager );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
try {
...
...
@@ -40744,9 +40764,10 @@ class ObjectLoader extends Loader {
const path = ( this.path === '' ) ? LoaderUtils.extractUrlBase( url ) : this.path;
this.resourcePath = this.resourcePath || path;
const loader = new FileLoader(
scope
.manager );
const loader = new FileLoader(
this
.manager );
loader.setPath( this.path );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( this.withCredentials );
loader.load( url, function ( text ) {
let json = null;
...
...
@@ -42225,6 +42246,7 @@ FontLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
const loader = new FileLoader( this.manager );
loader.setPath( this.path );
loader.setRequestHeader( this.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( text ) {
let json;
...
...
@@ -42298,6 +42320,7 @@ AudioLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
loader.setResponseType( 'arraybuffer' );
loader.setPath( scope.path );
loader.setRequestHeader( scope.requestHeader );
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
try {
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录