Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
8dcc2f7d
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,发现更多精彩内容 >>
提交
8dcc2f7d
编写于
10月 31, 2018
作者:
林
林炳权
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
上级
885c3f72
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
38 addition
and
38 deletion
+38
-38
editor/js/Sidebar.Geometry.CircleGeometry.js
editor/js/Sidebar.Geometry.CircleGeometry.js
+4
-4
editor/js/Sidebar.Material.js
editor/js/Sidebar.Material.js
+34
-34
未找到文件。
editor/js/Sidebar.Geometry.CircleGeometry.js
浏览文件 @
8dcc2f7d
...
@@ -18,7 +18,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
...
@@ -18,7 +18,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
var
radiusRow
=
new
UI
.
Row
();
var
radiusRow
=
new
UI
.
Row
();
var
radius
=
new
UI
.
Number
(
parameters
.
radius
).
onChange
(
update
);
var
radius
=
new
UI
.
Number
(
parameters
.
radius
).
onChange
(
update
);
radiusRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/radius
'
)
).
setWidth
(
'
90px
'
)
);
radiusRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/radius
'
)
).
setWidth
(
'
90px
'
)
);
radiusRow
.
add
(
radius
);
radiusRow
.
add
(
radius
);
container
.
add
(
radiusRow
);
container
.
add
(
radiusRow
);
...
@@ -28,7 +28,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
...
@@ -28,7 +28,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
var
segmentsRow
=
new
UI
.
Row
();
var
segmentsRow
=
new
UI
.
Row
();
var
segments
=
new
UI
.
Integer
(
parameters
.
segments
).
setRange
(
3
,
Infinity
).
onChange
(
update
);
var
segments
=
new
UI
.
Integer
(
parameters
.
segments
).
setRange
(
3
,
Infinity
).
onChange
(
update
);
segmentsRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/segments
'
)
).
setWidth
(
'
90px
'
)
);
segmentsRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/segments
'
)
).
setWidth
(
'
90px
'
)
);
segmentsRow
.
add
(
segments
);
segmentsRow
.
add
(
segments
);
container
.
add
(
segmentsRow
);
container
.
add
(
segmentsRow
);
...
@@ -38,7 +38,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
...
@@ -38,7 +38,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
var
thetaStartRow
=
new
UI
.
Row
();
var
thetaStartRow
=
new
UI
.
Row
();
var
thetaStart
=
new
UI
.
Number
(
parameters
.
thetaStart
*
THREE
.
Math
.
RAD2DEG
).
setStep
(
10
).
onChange
(
update
);
var
thetaStart
=
new
UI
.
Number
(
parameters
.
thetaStart
*
THREE
.
Math
.
RAD2DEG
).
setStep
(
10
).
onChange
(
update
);
thetaStartRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/thetastart
'
)
).
setWidth
(
'
90px
'
)
);
thetaStartRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/thetastart
'
)
).
setWidth
(
'
90px
'
)
);
thetaStartRow
.
add
(
thetaStart
);
thetaStartRow
.
add
(
thetaStart
);
container
.
add
(
thetaStartRow
);
container
.
add
(
thetaStartRow
);
...
@@ -48,7 +48,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
...
@@ -48,7 +48,7 @@ Sidebar.Geometry.CircleGeometry = function ( editor, object ) {
var
thetaLengthRow
=
new
UI
.
Row
();
var
thetaLengthRow
=
new
UI
.
Row
();
var
thetaLength
=
new
UI
.
Number
(
parameters
.
thetaLength
*
THREE
.
Math
.
RAD2DEG
).
setStep
(
10
).
onChange
(
update
);
var
thetaLength
=
new
UI
.
Number
(
parameters
.
thetaLength
*
THREE
.
Math
.
RAD2DEG
).
setStep
(
10
).
onChange
(
update
);
thetaLengthRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/thetalength
'
)
).
setWidth
(
'
90px
'
)
);
thetaLengthRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/geometry/circle_geometry/thetalength
'
)
).
setWidth
(
'
90px
'
)
);
thetaLengthRow
.
add
(
thetaLength
);
thetaLengthRow
.
add
(
thetaLength
);
container
.
add
(
thetaLengthRow
);
container
.
add
(
thetaLengthRow
);
...
...
editor/js/Sidebar.Material.js
浏览文件 @
8dcc2f7d
...
@@ -235,7 +235,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -235,7 +235,7 @@ Sidebar.Material = function ( editor ) {
var
materialClearCoatRoughnessRow
=
new
UI
.
Row
();
var
materialClearCoatRoughnessRow
=
new
UI
.
Row
();
var
materialClearCoatRoughness
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
var
materialClearCoatRoughness
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
materialClearCoatRoughnessRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/clearcoatroughness
'
)
).
setWidth
(
'
90px
'
)
);
materialClearCoatRoughnessRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/clearcoatroughness
'
)
).
setWidth
(
'
90px
'
)
);
materialClearCoatRoughnessRow
.
add
(
materialClearCoatRoughness
);
materialClearCoatRoughnessRow
.
add
(
materialClearCoatRoughness
);
container
.
add
(
materialClearCoatRoughnessRow
);
container
.
add
(
materialClearCoatRoughnessRow
);
...
@@ -245,13 +245,13 @@ Sidebar.Material = function ( editor ) {
...
@@ -245,13 +245,13 @@ Sidebar.Material = function ( editor ) {
var
materialVertexColorsRow
=
new
UI
.
Row
();
var
materialVertexColorsRow
=
new
UI
.
Row
();
var
materialVertexColors
=
new
UI
.
Select
().
setOptions
(
{
var
materialVertexColors
=
new
UI
.
Select
().
setOptions
(
{
0
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/no
'
),
0
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/no
'
),
1
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/face
'
),
1
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/face
'
),
2
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/vertex
'
)
2
:
strings
.
getKey
(
'
sidebar/material/vertexcolors/vertex
'
)
}
).
onChange
(
update
);
}
).
onChange
(
update
);
materialVertexColorsRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/vertexcolors
'
)
).
setWidth
(
'
90px
'
)
);
materialVertexColorsRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/vertexcolors
'
)
).
setWidth
(
'
90px
'
)
);
materialVertexColorsRow
.
add
(
materialVertexColors
);
materialVertexColorsRow
.
add
(
materialVertexColors
);
container
.
add
(
materialVertexColorsRow
);
container
.
add
(
materialVertexColorsRow
);
...
@@ -261,7 +261,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -261,7 +261,7 @@ Sidebar.Material = function ( editor ) {
var
materialSkinningRow
=
new
UI
.
Row
();
var
materialSkinningRow
=
new
UI
.
Row
();
var
materialSkinning
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialSkinning
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
materialSkinningRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/skinning
'
)
).
setWidth
(
'
90px
'
)
);
materialSkinningRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/skinning
'
)
).
setWidth
(
'
90px
'
)
);
materialSkinningRow
.
add
(
materialSkinning
);
materialSkinningRow
.
add
(
materialSkinning
);
container
.
add
(
materialSkinningRow
);
container
.
add
(
materialSkinningRow
);
...
@@ -272,7 +272,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -272,7 +272,7 @@ Sidebar.Material = function ( editor ) {
var
materialMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/map
'
)
).
setWidth
(
'
90px
'
)
);
materialMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/map
'
)
).
setWidth
(
'
90px
'
)
);
materialMapRow
.
add
(
materialMapEnabled
);
materialMapRow
.
add
(
materialMapEnabled
);
materialMapRow
.
add
(
materialMap
);
materialMapRow
.
add
(
materialMap
);
...
@@ -284,7 +284,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -284,7 +284,7 @@ Sidebar.Material = function ( editor ) {
var
materialAlphaMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialAlphaMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialAlphaMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialAlphaMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialAlphaMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/alphamap
'
)
).
setWidth
(
'
90px
'
)
);
materialAlphaMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/alphamap
'
)
).
setWidth
(
'
90px
'
)
);
materialAlphaMapRow
.
add
(
materialAlphaMapEnabled
);
materialAlphaMapRow
.
add
(
materialAlphaMapEnabled
);
materialAlphaMapRow
.
add
(
materialAlphaMap
);
materialAlphaMapRow
.
add
(
materialAlphaMap
);
...
@@ -297,7 +297,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -297,7 +297,7 @@ Sidebar.Material = function ( editor ) {
var
materialBumpMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialBumpMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialBumpScale
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
var
materialBumpScale
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
materialBumpMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/bumpmap
'
)
).
setWidth
(
'
90px
'
)
);
materialBumpMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/bumpmap
'
)
).
setWidth
(
'
90px
'
)
);
materialBumpMapRow
.
add
(
materialBumpMapEnabled
);
materialBumpMapRow
.
add
(
materialBumpMapEnabled
);
materialBumpMapRow
.
add
(
materialBumpMap
);
materialBumpMapRow
.
add
(
materialBumpMap
);
materialBumpMapRow
.
add
(
materialBumpScale
);
materialBumpMapRow
.
add
(
materialBumpScale
);
...
@@ -310,7 +310,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -310,7 +310,7 @@ Sidebar.Material = function ( editor ) {
var
materialNormalMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialNormalMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialNormalMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialNormalMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialNormalMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/normalmap
'
)
).
setWidth
(
'
90px
'
)
);
materialNormalMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/normalmap
'
)
).
setWidth
(
'
90px
'
)
);
materialNormalMapRow
.
add
(
materialNormalMapEnabled
);
materialNormalMapRow
.
add
(
materialNormalMapEnabled
);
materialNormalMapRow
.
add
(
materialNormalMap
);
materialNormalMapRow
.
add
(
materialNormalMap
);
...
@@ -323,7 +323,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -323,7 +323,7 @@ Sidebar.Material = function ( editor ) {
var
materialDisplacementMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialDisplacementMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialDisplacementScale
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
var
materialDisplacementScale
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
materialDisplacementMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/displacemap
'
)
).
setWidth
(
'
90px
'
)
);
materialDisplacementMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/displacemap
'
)
).
setWidth
(
'
90px
'
)
);
materialDisplacementMapRow
.
add
(
materialDisplacementMapEnabled
);
materialDisplacementMapRow
.
add
(
materialDisplacementMapEnabled
);
materialDisplacementMapRow
.
add
(
materialDisplacementMap
);
materialDisplacementMapRow
.
add
(
materialDisplacementMap
);
materialDisplacementMapRow
.
add
(
materialDisplacementScale
);
materialDisplacementMapRow
.
add
(
materialDisplacementScale
);
...
@@ -336,7 +336,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -336,7 +336,7 @@ Sidebar.Material = function ( editor ) {
var
materialRoughnessMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialRoughnessMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialRoughnessMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialRoughnessMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialRoughnessMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/roughmap
'
)
).
setWidth
(
'
90px
'
)
);
materialRoughnessMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/roughmap
'
)
).
setWidth
(
'
90px
'
)
);
materialRoughnessMapRow
.
add
(
materialRoughnessMapEnabled
);
materialRoughnessMapRow
.
add
(
materialRoughnessMapEnabled
);
materialRoughnessMapRow
.
add
(
materialRoughnessMap
);
materialRoughnessMapRow
.
add
(
materialRoughnessMap
);
...
@@ -348,7 +348,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -348,7 +348,7 @@ Sidebar.Material = function ( editor ) {
var
materialMetalnessMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialMetalnessMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialMetalnessMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialMetalnessMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialMetalnessMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/metalmap
'
)
).
setWidth
(
'
90px
'
)
);
materialMetalnessMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/metalmap
'
)
).
setWidth
(
'
90px
'
)
);
materialMetalnessMapRow
.
add
(
materialMetalnessMapEnabled
);
materialMetalnessMapRow
.
add
(
materialMetalnessMapEnabled
);
materialMetalnessMapRow
.
add
(
materialMetalnessMap
);
materialMetalnessMapRow
.
add
(
materialMetalnessMap
);
...
@@ -360,7 +360,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -360,7 +360,7 @@ Sidebar.Material = function ( editor ) {
var
materialSpecularMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialSpecularMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialSpecularMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialSpecularMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialSpecularMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/specularmap
'
)
).
setWidth
(
'
90px
'
)
);
materialSpecularMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/specularmap
'
)
).
setWidth
(
'
90px
'
)
);
materialSpecularMapRow
.
add
(
materialSpecularMapEnabled
);
materialSpecularMapRow
.
add
(
materialSpecularMapEnabled
);
materialSpecularMapRow
.
add
(
materialSpecularMap
);
materialSpecularMapRow
.
add
(
materialSpecularMap
);
...
@@ -373,7 +373,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -373,7 +373,7 @@ Sidebar.Material = function ( editor ) {
var
materialEnvMap
=
new
UI
.
Texture
(
THREE
.
SphericalReflectionMapping
).
onChange
(
update
);
var
materialEnvMap
=
new
UI
.
Texture
(
THREE
.
SphericalReflectionMapping
).
onChange
(
update
);
var
materialReflectivity
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
var
materialReflectivity
=
new
UI
.
Number
(
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
materialEnvMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/envmap
'
)
).
setWidth
(
'
90px
'
)
);
materialEnvMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/envmap
'
)
).
setWidth
(
'
90px
'
)
);
materialEnvMapRow
.
add
(
materialEnvMapEnabled
);
materialEnvMapRow
.
add
(
materialEnvMapEnabled
);
materialEnvMapRow
.
add
(
materialEnvMap
);
materialEnvMapRow
.
add
(
materialEnvMap
);
materialEnvMapRow
.
add
(
materialReflectivity
);
materialEnvMapRow
.
add
(
materialReflectivity
);
...
@@ -386,7 +386,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -386,7 +386,7 @@ Sidebar.Material = function ( editor ) {
var
materialLightMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialLightMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialLightMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialLightMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialLightMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/lightmap
'
)
).
setWidth
(
'
90px
'
)
);
materialLightMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/lightmap
'
)
).
setWidth
(
'
90px
'
)
);
materialLightMapRow
.
add
(
materialLightMapEnabled
);
materialLightMapRow
.
add
(
materialLightMapEnabled
);
materialLightMapRow
.
add
(
materialLightMap
);
materialLightMapRow
.
add
(
materialLightMap
);
...
@@ -399,7 +399,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -399,7 +399,7 @@ Sidebar.Material = function ( editor ) {
var
materialAOMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialAOMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialAOScale
=
new
UI
.
Number
(
1
).
setRange
(
0
,
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
var
materialAOScale
=
new
UI
.
Number
(
1
).
setRange
(
0
,
1
).
setWidth
(
'
30px
'
).
onChange
(
update
);
materialAOMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/aomap
'
)
).
setWidth
(
'
90px
'
)
);
materialAOMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/aomap
'
)
).
setWidth
(
'
90px
'
)
);
materialAOMapRow
.
add
(
materialAOMapEnabled
);
materialAOMapRow
.
add
(
materialAOMapEnabled
);
materialAOMapRow
.
add
(
materialAOMap
);
materialAOMapRow
.
add
(
materialAOMap
);
materialAOMapRow
.
add
(
materialAOScale
);
materialAOMapRow
.
add
(
materialAOScale
);
...
@@ -412,7 +412,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -412,7 +412,7 @@ Sidebar.Material = function ( editor ) {
var
materialEmissiveMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialEmissiveMapEnabled
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialEmissiveMap
=
new
UI
.
Texture
().
onChange
(
update
);
var
materialEmissiveMap
=
new
UI
.
Texture
().
onChange
(
update
);
materialEmissiveMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/emissivemap
'
)
).
setWidth
(
'
90px
'
)
);
materialEmissiveMapRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/emissivemap
'
)
).
setWidth
(
'
90px
'
)
);
materialEmissiveMapRow
.
add
(
materialEmissiveMapEnabled
);
materialEmissiveMapRow
.
add
(
materialEmissiveMapEnabled
);
materialEmissiveMapRow
.
add
(
materialEmissiveMap
);
materialEmissiveMapRow
.
add
(
materialEmissiveMap
);
...
@@ -423,13 +423,13 @@ Sidebar.Material = function ( editor ) {
...
@@ -423,13 +423,13 @@ Sidebar.Material = function ( editor ) {
var
materialSideRow
=
new
UI
.
Row
();
var
materialSideRow
=
new
UI
.
Row
();
var
materialSide
=
new
UI
.
Select
().
setOptions
(
{
var
materialSide
=
new
UI
.
Select
().
setOptions
(
{
0
:
strings
.
getKey
(
'
sidebar/material/side/front
'
),
0
:
strings
.
getKey
(
'
sidebar/material/side/front
'
),
1
:
strings
.
getKey
(
'
sidebar/material/side/back
'
),
1
:
strings
.
getKey
(
'
sidebar/material/side/back
'
),
2
:
strings
.
getKey
(
'
sidebar/material/side/double
'
)
2
:
strings
.
getKey
(
'
sidebar/material/side/double
'
)
}
).
setWidth
(
'
150px
'
).
setFontSize
(
'
12px
'
).
onChange
(
update
);
}
).
setWidth
(
'
150px
'
).
setFontSize
(
'
12px
'
).
onChange
(
update
);
materialSideRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/side
'
)
).
setWidth
(
'
90px
'
)
);
materialSideRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/side
'
)
).
setWidth
(
'
90px
'
)
);
materialSideRow
.
add
(
materialSide
);
materialSideRow
.
add
(
materialSide
);
container
.
add
(
materialSideRow
);
container
.
add
(
materialSideRow
);
...
@@ -439,7 +439,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -439,7 +439,7 @@ Sidebar.Material = function ( editor ) {
var
materialShadingRow
=
new
UI
.
Row
();
var
materialShadingRow
=
new
UI
.
Row
();
var
materialShading
=
new
UI
.
Checkbox
(
false
).
setLeft
(
'
100px
'
).
onChange
(
update
);
var
materialShading
=
new
UI
.
Checkbox
(
false
).
setLeft
(
'
100px
'
).
onChange
(
update
);
materialShadingRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/flatshaded
'
)
).
setWidth
(
'
90px
'
)
);
materialShadingRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/flatshaded
'
)
).
setWidth
(
'
90px
'
)
);
materialShadingRow
.
add
(
materialShading
);
materialShadingRow
.
add
(
materialShading
);
container
.
add
(
materialShadingRow
);
container
.
add
(
materialShadingRow
);
...
@@ -449,16 +449,16 @@ Sidebar.Material = function ( editor ) {
...
@@ -449,16 +449,16 @@ Sidebar.Material = function ( editor ) {
var
materialBlendingRow
=
new
UI
.
Row
();
var
materialBlendingRow
=
new
UI
.
Row
();
var
materialBlending
=
new
UI
.
Select
().
setOptions
(
{
var
materialBlending
=
new
UI
.
Select
().
setOptions
(
{
0
:
strings
.
getKey
(
'
sidebar/material/blending/no
'
),
0
:
strings
.
getKey
(
'
sidebar/material/blending/no
'
),
1
:
strings
.
getKey
(
'
sidebar/material/blending/normal
'
),
1
:
strings
.
getKey
(
'
sidebar/material/blending/normal
'
),
2
:
strings
.
getKey
(
'
sidebar/material/blending/additive
'
),
2
:
strings
.
getKey
(
'
sidebar/material/blending/additive
'
),
3
:
strings
.
getKey
(
'
sidebar/material/blending/subtractive
'
),
3
:
strings
.
getKey
(
'
sidebar/material/blending/subtractive
'
),
4
:
strings
.
getKey
(
'
sidebar/material/blending/multiply
'
),
4
:
strings
.
getKey
(
'
sidebar/material/blending/multiply
'
),
5
:
strings
.
getKey
(
'
sidebar/material/blending/custom
'
)
5
:
strings
.
getKey
(
'
sidebar/material/blending/custom
'
)
}
).
setWidth
(
'
150px
'
).
setFontSize
(
'
12px
'
).
onChange
(
update
);
}
).
setWidth
(
'
150px
'
).
setFontSize
(
'
12px
'
).
onChange
(
update
);
materialBlendingRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/blending
'
)
).
setWidth
(
'
90px
'
)
);
materialBlendingRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/blending
'
)
).
setWidth
(
'
90px
'
)
);
materialBlendingRow
.
add
(
materialBlending
);
materialBlendingRow
.
add
(
materialBlending
);
container
.
add
(
materialBlendingRow
);
container
.
add
(
materialBlendingRow
);
...
@@ -468,7 +468,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -468,7 +468,7 @@ Sidebar.Material = function ( editor ) {
var
materialOpacityRow
=
new
UI
.
Row
();
var
materialOpacityRow
=
new
UI
.
Row
();
var
materialOpacity
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
var
materialOpacity
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
materialOpacityRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/opacity
'
)
).
setWidth
(
'
90px
'
)
);
materialOpacityRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/opacity
'
)
).
setWidth
(
'
90px
'
)
);
materialOpacityRow
.
add
(
materialOpacity
);
materialOpacityRow
.
add
(
materialOpacity
);
container
.
add
(
materialOpacityRow
);
container
.
add
(
materialOpacityRow
);
...
@@ -478,7 +478,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -478,7 +478,7 @@ Sidebar.Material = function ( editor ) {
var
materialTransparentRow
=
new
UI
.
Row
();
var
materialTransparentRow
=
new
UI
.
Row
();
var
materialTransparent
=
new
UI
.
Checkbox
().
setLeft
(
'
100px
'
).
onChange
(
update
);
var
materialTransparent
=
new
UI
.
Checkbox
().
setLeft
(
'
100px
'
).
onChange
(
update
);
materialTransparentRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/transparent
'
)
).
setWidth
(
'
90px
'
)
);
materialTransparentRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/transparent
'
)
).
setWidth
(
'
90px
'
)
);
materialTransparentRow
.
add
(
materialTransparent
);
materialTransparentRow
.
add
(
materialTransparent
);
container
.
add
(
materialTransparentRow
);
container
.
add
(
materialTransparentRow
);
...
@@ -488,7 +488,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -488,7 +488,7 @@ Sidebar.Material = function ( editor ) {
var
materialAlphaTestRow
=
new
UI
.
Row
();
var
materialAlphaTestRow
=
new
UI
.
Row
();
var
materialAlphaTest
=
new
UI
.
Number
().
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
var
materialAlphaTest
=
new
UI
.
Number
().
setWidth
(
'
60px
'
).
setRange
(
0
,
1
).
onChange
(
update
);
materialAlphaTestRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/alphatest
'
)
).
setWidth
(
'
90px
'
)
);
materialAlphaTestRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/alphatest
'
)
).
setWidth
(
'
90px
'
)
);
materialAlphaTestRow
.
add
(
materialAlphaTest
);
materialAlphaTestRow
.
add
(
materialAlphaTest
);
container
.
add
(
materialAlphaTestRow
);
container
.
add
(
materialAlphaTestRow
);
...
@@ -499,7 +499,7 @@ Sidebar.Material = function ( editor ) {
...
@@ -499,7 +499,7 @@ Sidebar.Material = function ( editor ) {
var
materialWireframe
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialWireframe
=
new
UI
.
Checkbox
(
false
).
onChange
(
update
);
var
materialWireframeLinewidth
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
100
).
onChange
(
update
);
var
materialWireframeLinewidth
=
new
UI
.
Number
(
1
).
setWidth
(
'
60px
'
).
setRange
(
0
,
100
).
onChange
(
update
);
materialWireframeRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/wireframe
'
)
).
setWidth
(
'
90px
'
)
);
materialWireframeRow
.
add
(
new
UI
.
Text
(
strings
.
getKey
(
'
sidebar/material/wireframe
'
)
).
setWidth
(
'
90px
'
)
);
materialWireframeRow
.
add
(
materialWireframe
);
materialWireframeRow
.
add
(
materialWireframe
);
materialWireframeRow
.
add
(
materialWireframeLinewidth
);
materialWireframeRow
.
add
(
materialWireframeLinewidth
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录