Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
e48fc94d
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 搜索 >>
提交
e48fc94d
编写于
3月 31, 2021
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
r127
上级
afccc97c
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
40 addition
and
16 deletion
+40
-16
build/three.js
build/three.js
+14
-6
build/three.min.js
build/three.min.js
+1
-1
build/three.module.js
build/three.module.js
+22
-6
editor/sw.js
editor/sw.js
+1
-1
package.json
package.json
+1
-1
src/constants.js
src/constants.js
+1
-1
未找到文件。
build/three.js
浏览文件 @
e48fc94d
...
...
@@ -9,7 +9,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
}(this, (function (exports) { 'use strict';
const REVISION = '127
dev
';
const REVISION = '127';
const MOUSE = {
LEFT: 0,
MIDDLE: 1,
...
...
@@ -303,6 +303,14 @@
mapLinear: function (x, a1, a2, b1, b2) {
return b1 + (x - a1) * (b2 - b1) / (a2 - a1);
},
// https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/inverse-lerp-a-super-useful-yet-often-overlooked-function-r5230/
inverseLerp: function (x, y, value) {
if (x !== y) {
return (value - x) / (y - x);
} else {
return 0;
}
},
// https://en.wikipedia.org/wiki/Linear_interpolation
lerp: function (x, y, t) {
return (1 - t) * x + t * y;
...
...
@@ -18389,10 +18397,10 @@
WebGL1Renderer.prototype.isWebGL1Renderer = true;
class FogExp2 {
constructor(color, density) {
constructor(color, density
= 0.00025
) {
this.name = '';
this.color = new Color(color);
this.density = density
!== undefined ? density : 0.00025
;
this.density = density;
}
clone() {
...
...
@@ -18414,11 +18422,11 @@
FogExp2.prototype.isFogExp2 = true;
class Fog {
constructor(color, near
, far
) {
constructor(color, near
= 1, far = 1000
) {
this.name = '';
this.color = new Color(color);
this.near = near
!== undefined ? near : 1
;
this.far = far
!== undefined ? far : 1000
;
this.near = near;
this.far = far;
}
clone() {
build/three.min.js
浏览文件 @
e48fc94d
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
e48fc94d
...
...
@@ -3,7 +3,7 @@
* Copyright 2010-2021 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const REVISION = '127
dev
';
const REVISION = '127';
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
const CullFaceNone = 0;
...
...
@@ -347,6 +347,22 @@ const MathUtils = {
},
// https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/inverse-lerp-a-super-useful-yet-often-overlooked-function-r5230/
inverseLerp: function ( x, y, value ) {
if ( x !== y ) {
return ( value - x ) / ( y - x );
} else {
return 0;
}
},
// https://en.wikipedia.org/wiki/Linear_interpolation
lerp: function ( x, y, t ) {
...
...
@@ -25275,12 +25291,12 @@ WebGL1Renderer.prototype.isWebGL1Renderer = true;
class FogExp2 {
constructor( color, density ) {
constructor( color, density
= 0.00025
) {
this.name = '';
this.color = new Color( color );
this.density =
( density !== undefined ) ? density : 0.00025
;
this.density =
density
;
}
...
...
@@ -25306,14 +25322,14 @@ FogExp2.prototype.isFogExp2 = true;
class Fog {
constructor( color, near
, far
) {
constructor( color, near
= 1, far = 1000
) {
this.name = '';
this.color = new Color( color );
this.near =
( near !== undefined ) ? near : 1
;
this.far =
( far !== undefined ) ? far : 1000
;
this.near =
near
;
this.far =
far
;
}
editor/sw.js
浏览文件 @
e48fc94d
const
cacheName
=
'
threejs-editor-r12
6
'
;
const
cacheName
=
'
threejs-editor-r12
7
'
;
const
assets
=
[
'
./
'
,
...
...
package.json
浏览文件 @
e48fc94d
{
"name"
:
"three"
,
"version"
:
"0.12
6
.0"
,
"version"
:
"0.12
7
.0"
,
"description"
:
"JavaScript 3D library"
,
"main"
:
"build/three.js"
,
"module"
:
"build/three.module.js"
,
...
...
src/constants.js
浏览文件 @
e48fc94d
export
const
REVISION
=
'
127
dev
'
;
export
const
REVISION
=
'
127
'
;
export
const
MOUSE
=
{
LEFT
:
0
,
MIDDLE
:
1
,
RIGHT
:
2
,
ROTATE
:
0
,
DOLLY
:
1
,
PAN
:
2
};
export
const
TOUCH
=
{
ROTATE
:
0
,
PAN
:
1
,
DOLLY_PAN
:
2
,
DOLLY_ROTATE
:
3
};
export
const
CullFaceNone
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录