Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
a0a3ebd3
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,体验更适合开发者的 AI 搜索 >>
提交
a0a3ebd3
编写于
10月 26, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
c4438b7e
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
660 addition
and
601 deletion
+660
-601
build/three.js
build/three.js
+41
-12
build/three.min.js
build/three.min.js
+578
-577
build/three.module.js
build/three.module.js
+41
-12
未找到文件。
build/three.js
浏览文件 @
a0a3ebd3
...
...
@@ -3027,13 +3027,7 @@
}
var x = this.x, y = this.y, z = this.z;
this.x = y * v.z - z * v.y;
this.y = z * v.x - x * v.z;
this.z = x * v.y - y * v.x;
return this;
return this.crossVectors( this, v );
},
...
...
@@ -6235,7 +6229,7 @@
var tonemapping_fragment = "#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n";
var tonemapping_pars_fragment = "
#define saturate(a) clamp( a, 0.0, 1.0 )\n
uniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n";
var tonemapping_pars_fragment = "uniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n";
var uv_pars_fragment = "#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif";
...
...
@@ -25046,6 +25040,8 @@
function update() {
var video = scope.image;
if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
scope.needsUpdate = true;
...
...
@@ -35241,6 +35237,8 @@
function Curve() {
this.type = 'Curve';
this.arcLengthDivisions = 200;
}
...
...
@@ -35586,6 +35584,8 @@
Curve.call( this );
this.type = 'LineCurve';
this.v1 = v1;
this.v2 = v2;
...
...
@@ -35645,8 +35645,9 @@
Curve.call( this );
this.
curves = []
;
this.
type = 'CurvePath'
;
this.curves = [];
this.autoClose = false; // Automatically closes the path
}
...
...
@@ -35834,6 +35835,8 @@
Curve.call( this );
this.type = 'EllipseCurve';
this.aX = aX;
this.aY = aY;
...
...
@@ -35920,6 +35923,8 @@
Curve.call( this );
this.type = 'SplineCurve';
this.points = ( points === undefined ) ? [] : points;
}
...
...
@@ -35957,6 +35962,8 @@
Curve.call( this );
this.type = 'CubicBezierCurve';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -35988,6 +35995,8 @@
Curve.call( this );
this.type = 'QuadraticBezierCurve';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -36142,6 +36151,9 @@
function Path( points ) {
CurvePath.call( this );
this.type = 'Path';
this.currentPoint = new Vector2();
if ( points ) {
...
...
@@ -36170,6 +36182,8 @@
Path.apply( this, arguments );
this.type = 'Shape';
this.holes = [];
}
...
...
@@ -36220,6 +36234,8 @@
function ShapePath() {
this.type = 'ShapePath';
this.subPaths = [];
this.currentPath = null;
...
...
@@ -36495,6 +36511,8 @@
function Font( data ) {
this.type = 'Font';
this.data = data;
}
...
...
@@ -42533,10 +42551,13 @@
Curve.call( this );
this.type = 'CatmullRomCurve3';
if ( points.length < 2 ) console.warn( 'THREE.CatmullRomCurve3: Points array needs at least two entries.' );
this.points = points || [];
this.closed = false;
this.curveType = 'centripetal';
}
...
...
@@ -42596,10 +42617,10 @@
}
if ( this.
type === undefined || this.type === 'centripetal' || this.t
ype === 'chordal' ) {
if ( this.
curveType === 'centripetal' || this.curveT
ype === 'chordal' ) {
// init Centripetal / Chordal Catmull-Rom
var pow = this.
t
ype === 'chordal' ? 0.5 : 0.25;
var pow = this.
curveT
ype === 'chordal' ? 0.5 : 0.25;
var dt0 = Math.pow( p0.distanceToSquared( p1 ), pow );
var dt1 = Math.pow( p1.distanceToSquared( p2 ), pow );
var dt2 = Math.pow( p2.distanceToSquared( p3 ), pow );
...
...
@@ -42613,7 +42634,7 @@
py.initNonuniformCatmullRom( p0.y, p1.y, p2.y, p3.y, dt0, dt1, dt2 );
pz.initNonuniformCatmullRom( p0.z, p1.z, p2.z, p3.z, dt0, dt1, dt2 );
} else if ( this.
t
ype === 'catmullrom' ) {
} else if ( this.
curveT
ype === 'catmullrom' ) {
var tension = this.tension !== undefined ? this.tension : 0.5;
px.initCatmullRom( p0.x, p1.x, p2.x, p3.x, tension );
...
...
@@ -42636,6 +42657,8 @@
Curve.call( this );
this.type = 'CubicBezierCurve3';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42668,6 +42691,8 @@
Curve.call( this );
this.type = 'QuadraticBezierCurve3';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42699,6 +42724,8 @@
Curve.call( this );
this.type = 'LineCurve3';
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42740,6 +42767,8 @@
EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );
this.type = 'ArcCurve';
}
ArcCurve.prototype = Object.create( EllipseCurve.prototype );
build/three.min.js
浏览文件 @
a0a3ebd3
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
a0a3ebd3
...
...
@@ -3021,13 +3021,7 @@ Object.assign( Vector3.prototype, {
}
var x = this.x, y = this.y, z = this.z;
this.x = y * v.z - z * v.y;
this.y = z * v.x - x * v.z;
this.z = x * v.y - y * v.x;
return this;
return this.crossVectors( this, v );
},
...
...
@@ -6229,7 +6223,7 @@ var specularmap_pars_fragment = "#ifdef USE_SPECULARMAP\n\tuniform sampler2D spe
var tonemapping_fragment = "#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n";
var tonemapping_pars_fragment = "
#define saturate(a) clamp( a, 0.0, 1.0 )\n
uniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n";
var tonemapping_pars_fragment = "uniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n";
var uv_pars_fragment = "#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif";
...
...
@@ -25040,6 +25034,8 @@ function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, forma
function update() {
var video = scope.image;
if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
scope.needsUpdate = true;
...
...
@@ -35235,6 +35231,8 @@ function CubicBezier( t, p0, p1, p2, p3 ) {
function Curve() {
this.type = 'Curve';
this.arcLengthDivisions = 200;
}
...
...
@@ -35580,6 +35578,8 @@ function LineCurve( v1, v2 ) {
Curve.call( this );
this.type = 'LineCurve';
this.v1 = v1;
this.v2 = v2;
...
...
@@ -35639,8 +35639,9 @@ function CurvePath() {
Curve.call( this );
this.
curves = []
;
this.
type = 'CurvePath'
;
this.curves = [];
this.autoClose = false; // Automatically closes the path
}
...
...
@@ -35828,6 +35829,8 @@ function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockw
Curve.call( this );
this.type = 'EllipseCurve';
this.aX = aX;
this.aY = aY;
...
...
@@ -35914,6 +35917,8 @@ function SplineCurve( points /* array of Vector2 */ ) {
Curve.call( this );
this.type = 'SplineCurve';
this.points = ( points === undefined ) ? [] : points;
}
...
...
@@ -35951,6 +35956,8 @@ function CubicBezierCurve( v0, v1, v2, v3 ) {
Curve.call( this );
this.type = 'CubicBezierCurve';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -35982,6 +35989,8 @@ function QuadraticBezierCurve( v0, v1, v2 ) {
Curve.call( this );
this.type = 'QuadraticBezierCurve';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -36136,6 +36145,9 @@ var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
function Path( points ) {
CurvePath.call( this );
this.type = 'Path';
this.currentPoint = new Vector2();
if ( points ) {
...
...
@@ -36164,6 +36176,8 @@ function Shape() {
Path.apply( this, arguments );
this.type = 'Shape';
this.holes = [];
}
...
...
@@ -36214,6 +36228,8 @@ Shape.prototype = Object.assign( Object.create( PathPrototype ), {
function ShapePath() {
this.type = 'ShapePath';
this.subPaths = [];
this.currentPath = null;
...
...
@@ -36489,6 +36505,8 @@ Object.assign( ShapePath.prototype, {
function Font( data ) {
this.type = 'Font';
this.data = data;
}
...
...
@@ -42527,10 +42545,13 @@ function CatmullRomCurve3( points ) {
Curve.call( this );
this.type = 'CatmullRomCurve3';
if ( points.length < 2 ) console.warn( 'THREE.CatmullRomCurve3: Points array needs at least two entries.' );
this.points = points || [];
this.closed = false;
this.curveType = 'centripetal';
}
...
...
@@ -42590,10 +42611,10 @@ CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget ) {
}
if ( this.
type === undefined || this.type === 'centripetal' || this.t
ype === 'chordal' ) {
if ( this.
curveType === 'centripetal' || this.curveT
ype === 'chordal' ) {
// init Centripetal / Chordal Catmull-Rom
var pow = this.
t
ype === 'chordal' ? 0.5 : 0.25;
var pow = this.
curveT
ype === 'chordal' ? 0.5 : 0.25;
var dt0 = Math.pow( p0.distanceToSquared( p1 ), pow );
var dt1 = Math.pow( p1.distanceToSquared( p2 ), pow );
var dt2 = Math.pow( p2.distanceToSquared( p3 ), pow );
...
...
@@ -42607,7 +42628,7 @@ CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget ) {
py.initNonuniformCatmullRom( p0.y, p1.y, p2.y, p3.y, dt0, dt1, dt2 );
pz.initNonuniformCatmullRom( p0.z, p1.z, p2.z, p3.z, dt0, dt1, dt2 );
} else if ( this.
t
ype === 'catmullrom' ) {
} else if ( this.
curveT
ype === 'catmullrom' ) {
var tension = this.tension !== undefined ? this.tension : 0.5;
px.initCatmullRom( p0.x, p1.x, p2.x, p3.x, tension );
...
...
@@ -42630,6 +42651,8 @@ function CubicBezierCurve3( v0, v1, v2, v3 ) {
Curve.call( this );
this.type = 'CubicBezierCurve3';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42662,6 +42685,8 @@ function QuadraticBezierCurve3( v0, v1, v2 ) {
Curve.call( this );
this.type = 'QuadraticBezierCurve3';
this.v0 = v0;
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42693,6 +42718,8 @@ function LineCurve3( v1, v2 ) {
Curve.call( this );
this.type = 'LineCurve3';
this.v1 = v1;
this.v2 = v2;
...
...
@@ -42734,6 +42761,8 @@ function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) {
EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );
this.type = 'ArcCurve';
}
ArcCurve.prototype = Object.create( EllipseCurve.prototype );
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录