Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
43d2f36b
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,发现更多精彩内容 >>
提交
43d2f36b
编写于
12月 23, 2015
作者:
S
SUNAG
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup static and dynamic variables order
上级
6b7dc5df
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
31 addition
and
32 deletion
+31
-32
examples/js/nodes/ConstNode.js
examples/js/nodes/ConstNode.js
+3
-3
examples/js/nodes/accessors/CameraNode.js
examples/js/nodes/accessors/CameraNode.js
+3
-3
examples/js/nodes/accessors/ColorsNode.js
examples/js/nodes/accessors/ColorsNode.js
+3
-3
examples/js/nodes/accessors/NormalNode.js
examples/js/nodes/accessors/NormalNode.js
+3
-3
examples/js/nodes/accessors/PositionNode.js
examples/js/nodes/accessors/PositionNode.js
+3
-3
examples/js/nodes/accessors/UVNode.js
examples/js/nodes/accessors/UVNode.js
+3
-3
examples/js/nodes/math/Math1Node.js
examples/js/nodes/math/Math1Node.js
+3
-3
examples/js/nodes/math/Math2Node.js
examples/js/nodes/math/Math2Node.js
+3
-3
examples/js/nodes/math/Math3Node.js
examples/js/nodes/math/Math3Node.js
+3
-3
examples/js/nodes/math/OperatorNode.js
examples/js/nodes/math/OperatorNode.js
+4
-5
未找到文件。
examples/js/nodes/ConstNode.js
浏览文件 @
43d2f36b
...
...
@@ -10,9 +10,6 @@ THREE.ConstNode = function( name, useDefine ) {
};
THREE
.
ConstNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
ConstNode
.
prototype
.
constructor
=
THREE
.
ConstNode
;
THREE
.
ConstNode
.
PI
=
'
PI
'
;
THREE
.
ConstNode
.
PI2
=
'
PI2
'
;
THREE
.
ConstNode
.
RECIPROCAL_PI
=
'
RECIPROCAL_PI
'
;
...
...
@@ -20,6 +17,9 @@ THREE.ConstNode.RECIPROCAL_PI2 = 'RECIPROCAL_PI2';
THREE
.
ConstNode
.
LOG2
=
'
LOG2
'
;
THREE
.
ConstNode
.
EPSILON
=
'
EPSILON
'
;
THREE
.
ConstNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
ConstNode
.
prototype
.
constructor
=
THREE
.
ConstNode
;
THREE
.
ConstNode
.
prototype
.
parse
=
function
(
src
,
useDefine
)
{
var
name
,
type
;
...
...
examples/js/nodes/accessors/CameraNode.js
浏览文件 @
43d2f36b
...
...
@@ -11,12 +11,12 @@ THREE.CameraNode = function( scope, camera ) {
};
THREE
.
CameraNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
CameraNode
.
prototype
.
constructor
=
THREE
.
CameraNode
;
THREE
.
CameraNode
.
POSITION
=
'
position
'
;
THREE
.
CameraNode
.
DEPTH
=
'
depth
'
;
THREE
.
CameraNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
CameraNode
.
prototype
.
constructor
=
THREE
.
CameraNode
;
THREE
.
CameraNode
.
prototype
.
setCamera
=
function
(
camera
)
{
this
.
camera
=
camera
;
...
...
examples/js/nodes/accessors/ColorsNode.js
浏览文件 @
43d2f36b
...
...
@@ -10,12 +10,12 @@ THREE.ColorsNode = function( index ) {
};
THREE
.
ColorsNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
ColorsNode
.
prototype
.
constructor
=
THREE
.
ColorsNode
;
THREE
.
ColorsNode
.
vertexDict
=
[
'
color
'
,
'
color2
'
];
THREE
.
ColorsNode
.
fragmentDict
=
[
'
vColor
'
,
'
vColor2
'
];
THREE
.
ColorsNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
ColorsNode
.
prototype
.
constructor
=
THREE
.
ColorsNode
;
THREE
.
ColorsNode
.
prototype
.
generate
=
function
(
builder
,
output
)
{
var
material
=
builder
.
material
;
...
...
examples/js/nodes/accessors/NormalNode.js
浏览文件 @
43d2f36b
...
...
@@ -10,13 +10,13 @@ THREE.NormalNode = function( scope ) {
};
THREE
.
NormalNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
NormalNode
.
prototype
.
constructor
=
THREE
.
NormalNode
;
THREE
.
NormalNode
.
LOCAL
=
'
local
'
;
THREE
.
NormalNode
.
WORLD
=
'
world
'
;
THREE
.
NormalNode
.
VIEW
=
'
view
'
;
THREE
.
NormalNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
NormalNode
.
prototype
.
constructor
=
THREE
.
NormalNode
;
THREE
.
NormalNode
.
prototype
.
isShared
=
function
(
builder
)
{
switch
(
this
.
scope
)
{
...
...
examples/js/nodes/accessors/PositionNode.js
浏览文件 @
43d2f36b
...
...
@@ -10,14 +10,14 @@ THREE.PositionNode = function( scope ) {
};
THREE
.
PositionNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
PositionNode
.
prototype
.
constructor
=
THREE
.
PositionNode
;
THREE
.
PositionNode
.
LOCAL
=
'
local
'
;
THREE
.
PositionNode
.
WORLD
=
'
world
'
;
THREE
.
PositionNode
.
VIEW
=
'
view
'
;
THREE
.
PositionNode
.
PROJECTION
=
'
projection
'
;
THREE
.
PositionNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
PositionNode
.
prototype
.
constructor
=
THREE
.
PositionNode
;
THREE
.
PositionNode
.
prototype
.
getType
=
function
(
builder
)
{
switch
(
this
.
scope
)
{
...
...
examples/js/nodes/accessors/UVNode.js
浏览文件 @
43d2f36b
...
...
@@ -10,12 +10,12 @@ THREE.UVNode = function( index ) {
};
THREE
.
UVNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
UVNode
.
prototype
.
constructor
=
THREE
.
UVNode
;
THREE
.
UVNode
.
vertexDict
=
[
'
uv
'
,
'
uv2
'
];
THREE
.
UVNode
.
fragmentDict
=
[
'
vUv
'
,
'
vUv2
'
];
THREE
.
UVNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
UVNode
.
prototype
.
constructor
=
THREE
.
UVNode
;
THREE
.
UVNode
.
prototype
.
generate
=
function
(
builder
,
output
)
{
var
material
=
builder
.
material
;
...
...
examples/js/nodes/math/Math1Node.js
浏览文件 @
43d2f36b
...
...
@@ -12,9 +12,6 @@ THREE.Math1Node = function( a, method ) {
};
THREE
.
Math1Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math1Node
.
prototype
.
constructor
=
THREE
.
Math1Node
;
THREE
.
Math1Node
.
RAD
=
'
radians
'
;
THREE
.
Math1Node
.
DEG
=
'
degrees
'
;
THREE
.
Math1Node
.
EXP
=
'
exp
'
;
...
...
@@ -39,6 +36,9 @@ THREE.Math1Node.LENGTH = 'length';
THREE
.
Math1Node
.
NEGATE
=
'
negate
'
;
THREE
.
Math1Node
.
INVERT
=
'
invert
'
;
THREE
.
Math1Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math1Node
.
prototype
.
constructor
=
THREE
.
Math1Node
;
THREE
.
Math1Node
.
prototype
.
getType
=
function
(
builder
)
{
switch
(
this
.
method
)
{
...
...
examples/js/nodes/math/Math2Node.js
浏览文件 @
43d2f36b
...
...
@@ -13,9 +13,6 @@ THREE.Math2Node = function( a, b, method ) {
};
THREE
.
Math2Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math2Node
.
prototype
.
constructor
=
THREE
.
Math2Node
;
THREE
.
Math2Node
.
MIN
=
'
min
'
;
THREE
.
Math2Node
.
MAX
=
'
max
'
;
THREE
.
Math2Node
.
MOD
=
'
mod
'
;
...
...
@@ -26,6 +23,9 @@ THREE.Math2Node.DOT = 'dot';
THREE
.
Math2Node
.
CROSS
=
'
cross
'
;
THREE
.
Math2Node
.
POW
=
'
pow
'
;
THREE
.
Math2Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math2Node
.
prototype
.
constructor
=
THREE
.
Math2Node
;
THREE
.
Math2Node
.
prototype
.
getInputType
=
function
(
builder
)
{
// use the greater length vector
...
...
examples/js/nodes/math/Math3Node.js
浏览文件 @
43d2f36b
...
...
@@ -14,14 +14,14 @@ THREE.Math3Node = function( a, b, c, method ) {
};
THREE
.
Math3Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math3Node
.
prototype
.
constructor
=
THREE
.
Math3Node
;
THREE
.
Math3Node
.
MIX
=
'
mix
'
;
THREE
.
Math3Node
.
REFRACT
=
'
refract
'
;
THREE
.
Math3Node
.
SMOOTHSTEP
=
'
smoothstep
'
;
THREE
.
Math3Node
.
FACEFORWARD
=
'
faceforward
'
;
THREE
.
Math3Node
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
Math3Node
.
prototype
.
constructor
=
THREE
.
Math3Node
;
THREE
.
Math3Node
.
prototype
.
getType
=
function
(
builder
)
{
var
a
=
builder
.
getFormatLength
(
this
.
a
.
getType
(
builder
)
);
...
...
examples/js/nodes/math/OperatorNode.js
浏览文件 @
43d2f36b
...
...
@@ -6,21 +6,20 @@ THREE.OperatorNode = function( a, b, op ) {
THREE
.
TempNode
.
call
(
this
);
this
.
op
=
op
||
THREE
.
OperatorNode
.
ADD
;
this
.
a
=
a
;
this
.
b
=
b
;
this
.
op
=
op
||
THREE
.
OperatorNode
.
ADD
;
};
THREE
.
OperatorNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
OperatorNode
.
prototype
.
constructor
=
THREE
.
OperatorNode
;
THREE
.
OperatorNode
.
ADD
=
'
+
'
;
THREE
.
OperatorNode
.
SUB
=
'
-
'
;
THREE
.
OperatorNode
.
MUL
=
'
*
'
;
THREE
.
OperatorNode
.
DIV
=
'
/
'
;
THREE
.
OperatorNode
.
prototype
=
Object
.
create
(
THREE
.
TempNode
.
prototype
);
THREE
.
OperatorNode
.
prototype
.
constructor
=
THREE
.
OperatorNode
;
THREE
.
OperatorNode
.
prototype
.
getType
=
function
(
builder
)
{
// use the greater length vector
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录