Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
1e26eb05
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,发现更多精彩内容 >>
提交
1e26eb05
编写于
12月 10, 2015
作者:
S
SUNAG
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename *MaterialNode to *NodeMaterial
上级
1558f02a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
86 addition
and
52 deletion
+86
-52
examples/js/materials/nodes/NodeMaterial.js
examples/js/materials/nodes/NodeMaterial.js
+29
-29
examples/js/materials/nodes/inputs/ColorNode.js
examples/js/materials/nodes/inputs/ColorNode.js
+1
-1
examples/js/materials/nodes/inputs/Vector2Node.js
examples/js/materials/nodes/inputs/Vector2Node.js
+1
-1
examples/js/materials/nodes/inputs/Vector3Node.js
examples/js/materials/nodes/inputs/Vector3Node.js
+1
-1
examples/js/materials/nodes/inputs/Vector4Node.js
examples/js/materials/nodes/inputs/Vector4Node.js
+1
-1
examples/js/materials/nodes/interfaces/PhongNodeMaterial.js
examples/js/materials/nodes/interfaces/PhongNodeMaterial.js
+17
-0
examples/js/materials/nodes/interfaces/StandardNodeMaterial.js
...les/js/materials/nodes/interfaces/StandardNodeMaterial.js
+17
-0
examples/webgl_materials_nodes.html
examples/webgl_materials_nodes.html
+19
-19
未找到文件。
examples/js/materials/nodes/
MaterialNode
.js
→
examples/js/materials/nodes/
NodeMaterial
.js
浏览文件 @
1e26eb05
...
...
@@ -2,7 +2,7 @@
* @author sunag / http://www.sunag.com.br/
*/
THREE
.
MaterialNode
=
function
(
vertex
,
fragment
)
{
THREE
.
NodeMaterial
=
function
(
vertex
,
fragment
)
{
THREE
.
ShaderMaterial
.
call
(
this
);
...
...
@@ -11,10 +11,10 @@ THREE.MaterialNode = function( vertex, fragment ) {
};
THREE
.
MaterialNode
.
prototype
=
Object
.
create
(
THREE
.
ShaderMaterial
.
prototype
);
THREE
.
MaterialNode
.
prototype
.
constructor
=
THREE
.
MaterialNode
;
THREE
.
NodeMaterial
.
prototype
=
Object
.
create
(
THREE
.
ShaderMaterial
.
prototype
);
THREE
.
NodeMaterial
.
prototype
.
constructor
=
THREE
.
NodeMaterial
;
THREE
.
MaterialNode
.
Type
=
{
THREE
.
NodeMaterial
.
Type
=
{
t
:
'
sampler2D
'
,
tc
:
'
samplerCube
'
,
bv1
:
'
bool
'
,
...
...
@@ -26,7 +26,7 @@ THREE.MaterialNode.Type = {
v4
:
'
vec4
'
};
THREE
.
MaterialNode
.
GetShortcuts
=
function
(
prop
,
name
)
{
THREE
.
NodeMaterial
.
GetShortcuts
=
function
(
prop
,
name
)
{
return
{
get
:
function
()
{
return
this
[
prop
][
name
];
},
...
...
@@ -35,7 +35,7 @@ THREE.MaterialNode.GetShortcuts = function( prop, name ) {
};
THREE
.
MaterialNode
.
Shortcuts
=
function
(
proto
,
prop
,
list
)
{
THREE
.
NodeMaterial
.
Shortcuts
=
function
(
proto
,
prop
,
list
)
{
var
shortcuts
=
{};
...
...
@@ -51,7 +51,7 @@ THREE.MaterialNode.Shortcuts = function( proto, prop, list ) {
};
THREE
.
MaterialNode
.
prototype
.
updateAnimation
=
function
(
delta
)
{
THREE
.
NodeMaterial
.
prototype
.
updateAnimation
=
function
(
delta
)
{
for
(
var
i
=
0
;
i
<
this
.
requestUpdate
.
length
;
++
i
)
{
...
...
@@ -61,7 +61,7 @@ THREE.MaterialNode.prototype.updateAnimation = function( delta ) {
};
THREE
.
MaterialNode
.
prototype
.
build
=
function
()
{
THREE
.
NodeMaterial
.
prototype
.
build
=
function
()
{
var
vertex
,
fragment
;
...
...
@@ -214,19 +214,19 @@ THREE.MaterialNode.prototype.build = function() {
return
this
;
};
THREE
.
MaterialNode
.
prototype
.
define
=
function
(
name
,
value
)
{
THREE
.
NodeMaterial
.
prototype
.
define
=
function
(
name
,
value
)
{
this
.
defines
[
name
]
=
value
==
undefined
?
1
:
value
;
};
THREE
.
MaterialNode
.
prototype
.
isDefined
=
function
(
name
)
{
THREE
.
NodeMaterial
.
prototype
.
isDefined
=
function
(
name
)
{
return
this
.
defines
[
name
]
!=
undefined
;
};
THREE
.
MaterialNode
.
prototype
.
mergeUniform
=
function
(
uniforms
)
{
THREE
.
NodeMaterial
.
prototype
.
mergeUniform
=
function
(
uniforms
)
{
for
(
var
name
in
uniforms
)
{
...
...
@@ -236,7 +236,7 @@ THREE.MaterialNode.prototype.mergeUniform = function( uniforms ) {
};
THREE
.
MaterialNode
.
prototype
.
createUniform
=
function
(
value
,
type
,
needsUpdate
)
{
THREE
.
NodeMaterial
.
prototype
.
createUniform
=
function
(
value
,
type
,
needsUpdate
)
{
var
index
=
this
.
uniformList
.
length
;
...
...
@@ -253,7 +253,7 @@ THREE.MaterialNode.prototype.createUniform = function( value, type, needsUpdate
};
THREE
.
MaterialNode
.
prototype
.
getVertexTemp
=
function
(
uuid
,
type
)
{
THREE
.
NodeMaterial
.
prototype
.
getVertexTemp
=
function
(
uuid
,
type
)
{
if
(
!
this
.
vertexTemps
[
uuid
])
{
...
...
@@ -270,7 +270,7 @@ THREE.MaterialNode.prototype.getVertexTemp = function( uuid, type ) {
};
THREE
.
MaterialNode
.
prototype
.
getIncludes
=
function
(
incs
)
{
THREE
.
NodeMaterial
.
prototype
.
getIncludes
=
function
(
incs
)
{
function
sortByPosition
(
a
,
b
){
return
b
.
deps
-
a
.
deps
;
...
...
@@ -293,7 +293,7 @@ THREE.MaterialNode.prototype.getIncludes = function( incs ) {
}
}();
THREE
.
MaterialNode
.
prototype
.
getFragmentTemp
=
function
(
uuid
,
type
)
{
THREE
.
NodeMaterial
.
prototype
.
getFragmentTemp
=
function
(
uuid
,
type
)
{
if
(
!
this
.
fragmentTemps
[
uuid
])
{
...
...
@@ -310,37 +310,37 @@ THREE.MaterialNode.prototype.getFragmentTemp = function( uuid, type ) {
};
THREE
.
MaterialNode
.
prototype
.
addVertexPars
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addVertexPars
=
function
(
code
)
{
this
.
vertexPars
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
addFragmentPars
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addFragmentPars
=
function
(
code
)
{
this
.
fragmentPars
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
addVertexCode
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addVertexCode
=
function
(
code
)
{
this
.
vertexCode
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
addFragmentCode
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addFragmentCode
=
function
(
code
)
{
this
.
fragmentCode
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
addVertexNode
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addVertexNode
=
function
(
code
)
{
this
.
vertexNode
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
clearVertexNode
=
function
()
{
THREE
.
NodeMaterial
.
prototype
.
clearVertexNode
=
function
()
{
var
code
=
this
.
fragmentNode
;
...
...
@@ -350,13 +350,13 @@ THREE.MaterialNode.prototype.clearVertexNode = function() {
};
THREE
.
MaterialNode
.
prototype
.
addFragmentNode
=
function
(
code
)
{
THREE
.
NodeMaterial
.
prototype
.
addFragmentNode
=
function
(
code
)
{
this
.
fragmentNode
+=
code
+
'
\n
'
;
};
THREE
.
MaterialNode
.
prototype
.
clearFragmentNode
=
function
()
{
THREE
.
NodeMaterial
.
prototype
.
clearFragmentNode
=
function
()
{
var
code
=
this
.
fragmentNode
;
...
...
@@ -366,7 +366,7 @@ THREE.MaterialNode.prototype.clearFragmentNode = function() {
};
THREE
.
MaterialNode
.
prototype
.
getCodePars
=
function
(
pars
,
prefix
)
{
THREE
.
NodeMaterial
.
prototype
.
getCodePars
=
function
(
pars
,
prefix
)
{
prefix
=
prefix
||
''
;
...
...
@@ -380,7 +380,7 @@ THREE.MaterialNode.prototype.getCodePars = function( pars, prefix ) {
if
(
parsType
==
'
t
'
&&
parsValue
instanceof
THREE
.
CubeTexture
)
parsType
=
'
tc
'
;
var
type
=
THREE
.
MaterialNode
.
Type
[
parsType
];
var
type
=
THREE
.
NodeMaterial
.
Type
[
parsType
];
if
(
type
==
undefined
)
throw
new
Error
(
"
Node pars
"
+
parsType
+
"
not found.
"
);
...
...
@@ -391,7 +391,7 @@ THREE.MaterialNode.prototype.getCodePars = function( pars, prefix ) {
};
THREE
.
MaterialNode
.
prototype
.
getVertexUniform
=
function
(
value
,
type
,
needsUpdate
)
{
THREE
.
NodeMaterial
.
prototype
.
getVertexUniform
=
function
(
value
,
type
,
needsUpdate
)
{
var
uniform
=
this
.
createUniform
(
value
,
type
,
needsUpdate
);
...
...
@@ -404,7 +404,7 @@ THREE.MaterialNode.prototype.getVertexUniform = function( value, type, needsUpda
};
THREE
.
MaterialNode
.
prototype
.
getFragmentUniform
=
function
(
value
,
type
,
needsUpdate
)
{
THREE
.
NodeMaterial
.
prototype
.
getFragmentUniform
=
function
(
value
,
type
,
needsUpdate
)
{
var
uniform
=
this
.
createUniform
(
value
,
type
,
needsUpdate
);
...
...
@@ -417,13 +417,13 @@ THREE.MaterialNode.prototype.getFragmentUniform = function( value, type, needsUp
};
THREE
.
MaterialNode
.
prototype
.
getDataNode
=
function
(
uuid
)
{
THREE
.
NodeMaterial
.
prototype
.
getDataNode
=
function
(
uuid
)
{
return
this
.
nodeData
[
uuid
]
=
this
.
nodeData
[
uuid
]
||
{};
};
THREE
.
MaterialNode
.
prototype
.
include
=
function
(
shader
,
node
)
{
THREE
.
NodeMaterial
.
prototype
.
include
=
function
(
shader
,
node
)
{
var
includes
;
...
...
examples/js/materials/nodes/inputs/ColorNode.js
浏览文件 @
1e26eb05
...
...
@@ -13,4 +13,4 @@ THREE.ColorNode = function( color ) {
THREE
.
ColorNode
.
prototype
=
Object
.
create
(
THREE
.
InputNode
.
prototype
);
THREE
.
ColorNode
.
prototype
.
constructor
=
THREE
.
ColorNode
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
ColorNode
.
prototype
,
'
value
'
,
[
'
r
'
,
'
g
'
,
'
b
'
]
);
\ No newline at end of file
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
ColorNode
.
prototype
,
'
value
'
,
[
'
r
'
,
'
g
'
,
'
b
'
]
);
\ No newline at end of file
examples/js/materials/nodes/inputs/Vector2Node.js
浏览文件 @
1e26eb05
...
...
@@ -13,4 +13,4 @@ THREE.Vector2Node = function( x, y ) {
THREE
.
Vector2Node
.
prototype
=
Object
.
create
(
THREE
.
InputNode
.
prototype
);
THREE
.
Vector2Node
.
prototype
.
constructor
=
THREE
.
Vector2Node
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
Vector2Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
]
);
\ No newline at end of file
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
Vector2Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
]
);
\ No newline at end of file
examples/js/materials/nodes/inputs/Vector3Node.js
浏览文件 @
1e26eb05
...
...
@@ -14,4 +14,4 @@ THREE.Vector3Node = function( x, y, z ) {
THREE
.
Vector3Node
.
prototype
=
Object
.
create
(
THREE
.
InputNode
.
prototype
);
THREE
.
Vector3Node
.
prototype
.
constructor
=
THREE
.
Vector3Node
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
Vector3Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
,
'
z
'
]
);
\ No newline at end of file
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
Vector3Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
,
'
z
'
]
);
\ No newline at end of file
examples/js/materials/nodes/inputs/Vector4Node.js
浏览文件 @
1e26eb05
...
...
@@ -13,4 +13,4 @@ THREE.Vector4Node = function( x, y, z, w ) {
THREE
.
Vector4Node
.
prototype
=
Object
.
create
(
THREE
.
InputNode
.
prototype
);
THREE
.
Vector4Node
.
prototype
.
constructor
=
THREE
.
Vector4Node
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
Vector4Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
,
'
z
'
,
'
w
'
]
);
\ No newline at end of file
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
Vector4Node
.
prototype
,
'
value
'
,
[
'
x
'
,
'
y
'
,
'
z
'
,
'
w
'
]
);
\ No newline at end of file
examples/js/materials/nodes/interfaces/Phong
MaterialNode
.js
→
examples/js/materials/nodes/interfaces/Phong
NodeMaterial
.js
浏览文件 @
1e26eb05
...
...
@@ -2,16 +2,16 @@
* @author sunag / http://www.sunag.com.br/
*/
THREE
.
Phong
MaterialNode
=
function
()
{
THREE
.
Phong
NodeMaterial
=
function
()
{
this
.
node
=
new
THREE
.
PhongNode
();
THREE
.
MaterialNode
.
call
(
this
,
this
.
node
,
this
.
node
);
THREE
.
NodeMaterial
.
call
(
this
,
this
.
node
,
this
.
node
);
};
THREE
.
Phong
MaterialNode
.
prototype
=
Object
.
create
(
THREE
.
MaterialNode
.
prototype
);
THREE
.
Phong
MaterialNode
.
prototype
.
constructor
=
THREE
.
PhongMaterialNode
;
THREE
.
Phong
NodeMaterial
.
prototype
=
Object
.
create
(
THREE
.
NodeMaterial
.
prototype
);
THREE
.
Phong
NodeMaterial
.
prototype
.
constructor
=
THREE
.
PhongNodeMaterial
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
PhongMaterialNode
.
prototype
,
'
node
'
,
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
PhongNodeMaterial
.
prototype
,
'
node
'
,
[
'
color
'
,
'
alpha
'
,
'
specular
'
,
'
shininess
'
,
'
normal
'
,
'
normalScale
'
,
'
emissive
'
,
'
ambient
'
,
'
shadow
'
,
'
ao
'
,
'
environment
'
,
'
reflectivity
'
,
'
transform
'
]
);
\ No newline at end of file
examples/js/materials/nodes/interfaces/Standard
MaterialNode
.js
→
examples/js/materials/nodes/interfaces/Standard
NodeMaterial
.js
浏览文件 @
1e26eb05
...
...
@@ -2,16 +2,16 @@
* @author sunag / http://www.sunag.com.br/
*/
THREE
.
Standard
MaterialNode
=
function
()
{
THREE
.
Standard
NodeMaterial
=
function
()
{
this
.
node
=
new
THREE
.
StandardNode
();
THREE
.
MaterialNode
.
call
(
this
,
this
.
node
,
this
.
node
);
THREE
.
NodeMaterial
.
call
(
this
,
this
.
node
,
this
.
node
);
};
THREE
.
Standard
MaterialNode
.
prototype
=
Object
.
create
(
THREE
.
MaterialNode
.
prototype
);
THREE
.
Standard
MaterialNode
.
prototype
.
constructor
=
THREE
.
StandardMaterialNode
;
THREE
.
Standard
NodeMaterial
.
prototype
=
Object
.
create
(
THREE
.
NodeMaterial
.
prototype
);
THREE
.
Standard
NodeMaterial
.
prototype
.
constructor
=
THREE
.
StandardNodeMaterial
;
THREE
.
MaterialNode
.
Shortcuts
(
THREE
.
StandardMaterialNode
.
prototype
,
'
node
'
,
THREE
.
NodeMaterial
.
Shortcuts
(
THREE
.
StandardNodeMaterial
.
prototype
,
'
node
'
,
[
'
color
'
,
'
alpha
'
,
'
roughness
'
,
'
metalness
'
,
'
normal
'
,
'
normalScale
'
,
'
emissive
'
,
'
ambient
'
,
'
shadow
'
,
'
ao
'
,
'
environment
'
,
'
reflectivity
'
,
'
transform
'
]
);
\ No newline at end of file
examples/webgl_materials_nodes.html
浏览文件 @
1e26eb05
<!doctype html>
<html
lang=
"en"
>
<head>
<title>
WebGL
MaterialNode
</title>
<title>
WebGL
NodeMaterial
</title>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
<style>
...
...
@@ -39,13 +39,13 @@
<script
src=
"js/controls/OrbitControls.js"
></script>
<script
src=
"js/libs/dat.gui.min.js"
></script>
<!--
MaterialNode
Base -->
<!--
NodeMaterial
Base -->
<script
src=
"js/materials/nodes/GLNode.js"
></script>
<script
src=
"js/materials/nodes/BuilderNode.js"
></script>
<script
src=
"js/materials/nodes/RawNode.js"
></script>
<script
src=
"js/materials/nodes/TempNode.js"
></script>
<script
src=
"js/materials/nodes/InputNode.js"
></script>
<script
src=
"js/materials/nodes/
MaterialNode
.js"
></script>
<script
src=
"js/materials/nodes/
NodeMaterial
.js"
></script>
<script
src=
"js/materials/nodes/ConstNode.js"
></script>
<script
src=
"js/materials/nodes/FunctionNode.js"
></script>
<script
src=
"js/materials/nodes/FunctionCallNode.js"
></script>
...
...
@@ -83,9 +83,9 @@
<!-- Interfaces -->
<script
src=
"js/materials/nodes/interfaces/PhongNode.js"
></script>
<script
src=
"js/materials/nodes/interfaces/Phong
MaterialNode
.js"
></script>
<script
src=
"js/materials/nodes/interfaces/Phong
NodeMaterial
.js"
></script>
<script
src=
"js/materials/nodes/interfaces/StandardNode.js"
></script>
<script
src=
"js/materials/nodes/interfaces/Standard
MaterialNode
.js"
></script>
<script
src=
"js/materials/nodes/interfaces/Standard
NodeMaterial
.js"
></script>
<!-- Extras -->
<script
src=
"js/materials/nodes/extras/VelocityNode.js"
></script>
...
...
@@ -253,7 +253,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
//mtl.color = // albedo color
//mtl.alpha = // opacity (0 at 1)
...
...
@@ -285,7 +285,7 @@
// MATERIAL
mtl
=
new
THREE
.
Standard
MaterialNode
();
mtl
=
new
THREE
.
Standard
NodeMaterial
();
//mtl.color = // albedo color
//mtl.alpha = // opacity (0 at 1)
...
...
@@ -382,7 +382,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
time
=
new
THREE
.
TimeNode
();
var
speed
=
new
THREE
.
FloatNode
(
5
);
...
...
@@ -494,7 +494,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
intensity
=
1.3
;
var
power
=
new
THREE
.
FloatNode
(
3
);
...
...
@@ -580,7 +580,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
reflectance
=
new
THREE
.
FloatNode
(
1.3
);
var
power
=
new
THREE
.
FloatNode
(
1
);
...
...
@@ -634,7 +634,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
tex1
=
new
THREE
.
TextureNode
(
grass
);
var
tex2
=
new
THREE
.
TextureNode
(
brick
);
...
...
@@ -687,7 +687,7 @@
// MATERIAL
mtl
=
new
THREE
.
Standard
MaterialNode
();
mtl
=
new
THREE
.
Standard
NodeMaterial
();
var
tex
=
new
THREE
.
TextureNode
(
brick
);
var
sat
=
new
THREE
.
FloatNode
(
0
);
...
...
@@ -726,7 +726,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
top
=
new
THREE
.
TextureNode
(
grass
);
var
bottom
=
new
THREE
.
TextureNode
(
brick
);
...
...
@@ -775,7 +775,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
time
=
new
THREE
.
TimeNode
();
var
scale
=
new
THREE
.
FloatNode
(
2
);
...
...
@@ -861,7 +861,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
time
=
new
THREE
.
TimeNode
();
var
uv
=
new
THREE
.
UVNode
();
...
...
@@ -930,7 +930,7 @@
THREE
.
Math3Node
.
MIX
);
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
mtl
.
color
=
colors
;
// GUI
...
...
@@ -965,7 +965,7 @@
// MATERIAL
mtl
=
new
THREE
.
Standard
MaterialNode
();
mtl
=
new
THREE
.
Standard
NodeMaterial
();
var
hash2
=
new
THREE
.
FunctionNode
([
"
vec2 hash2(vec2 p) {
"
,
...
...
@@ -1136,7 +1136,7 @@
move
=
true
;
mtl
=
new
THREE
.
Standard
MaterialNode
();
mtl
=
new
THREE
.
Standard
NodeMaterial
();
var
scale
=
new
THREE
.
FloatNode
(
2
);
var
colorA
=
new
THREE
.
ColorNode
(
0xFF6633
);
...
...
@@ -1219,7 +1219,7 @@
// MATERIAL
mtl
=
new
THREE
.
Phong
MaterialNode
();
mtl
=
new
THREE
.
Phong
NodeMaterial
();
var
time
=
new
THREE
.
TimeNode
();
var
speed
=
new
THREE
.
FloatNode
(.
5
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录