Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
ff4d488d
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,发现更多精彩内容 >>
提交
ff4d488d
编写于
7月 09, 2017
作者:
W
WestLangley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
material.shading ==> material.flatShading
上级
a0bc2bdf
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
19 deletion
+17
-19
examples/js/loaders/3MFLoader.js
examples/js/loaders/3MFLoader.js
+1
-1
examples/js/loaders/AMFLoader.js
examples/js/loaders/AMFLoader.js
+2
-2
examples/js/loaders/AssimpJSONLoader.js
examples/js/loaders/AssimpJSONLoader.js
+2
-4
examples/js/loaders/OBJLoader.js
examples/js/loaders/OBJLoader.js
+1
-1
examples/js/loaders/OBJLoader2.js
examples/js/loaders/OBJLoader2.js
+2
-2
examples/js/loaders/WWOBJLoader2.js
examples/js/loaders/WWOBJLoader2.js
+9
-9
未找到文件。
examples/js/loaders/3MFLoader.js
浏览文件 @
ff4d488d
...
...
@@ -479,7 +479,7 @@ THREE.ThreeMFLoader.prototype = {
geometry
.
computeBoundingSphere
();
var
materialOpts
=
{
shading
:
THREE
.
FlatShading
flatShading
:
true
};
if
(
meshData
[
'
colors
'
]
&&
0
<
meshData
[
'
colors
'
].
length
)
{
...
...
examples/js/loaders/AMFLoader.js
浏览文件 @
ff4d488d
...
...
@@ -167,7 +167,7 @@ THREE.AMFLoader.prototype = {
}
loadedMaterial
=
new
THREE
.
MeshPhongMaterial
(
{
shading
:
THREE
.
FlatShading
,
flatShading
:
true
,
color
:
new
THREE
.
Color
(
color
.
r
,
color
.
g
,
color
.
b
),
name
:
matName
}
);
...
...
@@ -412,7 +412,7 @@ THREE.AMFLoader.prototype = {
}
var
sceneObject
=
new
THREE
.
Group
();
var
defaultMaterial
=
new
THREE
.
MeshPhongMaterial
(
{
color
:
0xaaaaff
,
shading
:
THREE
.
FlatShading
}
);
var
defaultMaterial
=
new
THREE
.
MeshPhongMaterial
(
{
color
:
0xaaaaff
,
flatShading
:
true
}
);
sceneObject
.
name
=
amfName
;
sceneObject
.
userData
.
author
=
amfAuthor
;
...
...
examples/js/loaders/AssimpJSONLoader.js
浏览文件 @
ff4d488d
...
...
@@ -158,9 +158,7 @@ THREE.AssimpJSONLoader.prototype = {
var
scope
=
this
;
var
i
,
prop
,
has_textures
=
[],
init_props
=
{
shading
:
THREE
.
SmoothShading
};
init_props
=
{};
function
toColor
(
value_arr
)
{
...
...
@@ -261,7 +259,7 @@ THREE.AssimpJSONLoader.prototype = {
// aiShadingMode_Flat
if
(
prop
.
value
===
1
)
{
init_props
.
shading
=
THREE
.
FlatShading
;
init_props
.
flatShading
=
true
;
}
...
...
examples/js/loaders/OBJLoader.js
浏览文件 @
ff4d488d
...
...
@@ -696,7 +696,7 @@ THREE.OBJLoader = ( function () {
}
material
.
shading
=
sourceMaterial
.
smooth
?
THREE
.
SmoothShading
:
THREE
.
FlatShading
;
material
.
flatShading
=
sourceMaterial
.
smooth
?
false
:
true
;
createdMaterials
.
push
(
material
);
...
...
examples/js/loaders/OBJLoader2.js
浏览文件 @
ff4d488d
...
...
@@ -846,7 +846,7 @@ THREE.OBJLoader2 = (function () {
* @param {string} objectName Name of the mesh
* @param {string} groupName Name of the group
* @param {string} materialName Name of the material
* @param {number} smoothingGroup Normalized smoothingGroup (0:
THREE.FlatShading, 1: THREE.SmoothS
hading)
* @param {number} smoothingGroup Normalized smoothingGroup (0:
flat shading, 1: smooth s
hading)
*/
var
RawObjectDescription
=
(
function
()
{
...
...
@@ -1013,7 +1013,7 @@ THREE.OBJLoader2 = (function () {
materialClone
=
material
.
clone
();
materialClone
.
name
=
materialName
;
materialClone
.
shading
=
THREE
.
FlatShading
;
materialClone
.
flatShading
=
true
;
this
.
materials
[
materialName
]
=
name
;
}
...
...
examples/js/loaders/WWOBJLoader2.js
浏览文件 @
ff4d488d
/**
* @author Kai Salmen / https://kaisalmen.de
* Development repository: https://github.com/kaisalmen/WWOBJLoader
*/
'
use strict
'
;
/**
* @author Kai Salmen / https://kaisalmen.de
* Development repository: https://github.com/kaisalmen/WWOBJLoader
*/
'
use strict
'
;
if
(
THREE
.
OBJLoader2
===
undefined
)
{
THREE
.
OBJLoader2
=
{}
}
/**
...
...
@@ -435,7 +435,7 @@ THREE.OBJLoader2.WWOBJLoader2 = (function () {
materialClone
=
material
.
clone
();
materialClone
.
name
=
materialName
;
materialClone
.
shading
=
THREE
.
FlatShading
;
materialClone
.
flatShading
=
true
;
this
.
materials
[
materialName
]
=
name
;
}
...
...
@@ -1227,7 +1227,7 @@ THREE.OBJLoader2.WWOBJLoader2.LoadedMeshUserOverride = function ( disregardMesh,
material
:
Validator
.
verifyInput
(
material
,
null
)
};
};
/**
* Orchestrate loading of multiple OBJ files/data from an instruction queue with a configurable amount of workers (1-16).
* Workflow:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录