Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
0400493a
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,发现更多精彩内容 >>
提交
0400493a
编写于
4月 30, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Materials: Promoted vertexColors.
上级
7992d5c4
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
11 addition
and
58 deletion
+11
-58
src/materials/LineBasicMaterial.js
src/materials/LineBasicMaterial.js
+1
-7
src/materials/LineDashedMaterial.js
src/materials/LineDashedMaterial.js
+1
-7
src/materials/Material.js
src/materials/Material.js
+8
-7
src/materials/MeshBasicMaterial.js
src/materials/MeshBasicMaterial.js
+0
-6
src/materials/MeshLambertMaterial.js
src/materials/MeshLambertMaterial.js
+0
-6
src/materials/MeshPhongMaterial.js
src/materials/MeshPhongMaterial.js
+0
-6
src/materials/MeshStandardMaterial.js
src/materials/MeshStandardMaterial.js
+0
-6
src/materials/PointsMaterial.js
src/materials/PointsMaterial.js
+1
-7
src/materials/ShaderMaterial.js
src/materials/ShaderMaterial.js
+0
-6
未找到文件。
src/materials/LineBasicMaterial.js
浏览文件 @
0400493a
...
...
@@ -8,9 +8,7 @@
*
* linewidth: <float>,
* linecap: "round",
* linejoin: "round",
*
* vertexColors: <bool>
* linejoin: "round"
* }
*/
...
...
@@ -26,8 +24,6 @@ THREE.LineBasicMaterial = function ( parameters ) {
this
.
linecap
=
'
round
'
;
this
.
linejoin
=
'
round
'
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
setValues
(
parameters
);
...
...
@@ -46,8 +42,6 @@ THREE.LineBasicMaterial.prototype.copy = function ( source ) {
this
.
linecap
=
source
.
linecap
;
this
.
linejoin
=
source
.
linejoin
;
this
.
vertexColors
=
source
.
vertexColors
;
return
this
;
};
src/materials/LineDashedMaterial.js
浏览文件 @
0400493a
...
...
@@ -9,9 +9,7 @@
*
* scale: <float>,
* dashSize: <float>,
* gapSize: <float>,
*
* vertexColors: THREE.NoColors / THREE.FaceColors / THREE.VertexColors
* gapSize: <float>
* }
*/
...
...
@@ -29,8 +27,6 @@ THREE.LineDashedMaterial = function ( parameters ) {
this
.
dashSize
=
3
;
this
.
gapSize
=
1
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
setValues
(
parameters
);
};
...
...
@@ -50,8 +46,6 @@ THREE.LineDashedMaterial.prototype.copy = function ( source ) {
this
.
dashSize
=
source
.
dashSize
;
this
.
gapSize
=
source
.
gapSize
;
this
.
vertexColors
=
source
.
vertexColors
;
return
this
;
};
src/materials/Material.js
浏览文件 @
0400493a
...
...
@@ -13,13 +13,14 @@ THREE.Material = function () {
this
.
type
=
'
Material
'
;
this
.
fog
=
true
;
this
.
blending
=
THREE
.
NormalBlending
;
this
.
side
=
THREE
.
FrontSide
;
this
.
vertexColors
=
THREE
.
NoColors
;
// THREE.NoColors, THREE.VertexColors, THREE.FaceColors
this
.
opacity
=
1
;
this
.
transparent
=
false
;
this
.
blending
=
THREE
.
NormalBlending
;
this
.
blendSrc
=
THREE
.
SrcAlphaFactor
;
this
.
blendDst
=
THREE
.
OneMinusSrcAlphaFactor
;
this
.
blendEquation
=
THREE
.
AddEquation
;
...
...
@@ -192,11 +193,10 @@ THREE.Material.prototype = {
if
(
this
.
size
!==
undefined
)
data
.
size
=
this
.
size
;
if
(
this
.
sizeAttenuation
!==
undefined
)
data
.
sizeAttenuation
=
this
.
sizeAttenuation
;
if
(
this
.
vertexColors
!==
undefined
&&
this
.
vertexColors
!==
THREE
.
NoColors
)
data
.
vertexColors
=
this
.
vertexColors
;
if
(
this
.
shading
!==
undefined
&&
this
.
shading
!==
THREE
.
SmoothShading
)
data
.
shading
=
this
.
shading
;
if
(
this
.
blending
!==
THREE
.
NormalBlending
)
data
.
blending
=
this
.
blending
;
if
(
this
.
shading
!==
undefined
&&
this
.
shading
!==
THREE
.
SmoothShading
)
data
.
shading
=
this
.
shading
;
if
(
this
.
side
!==
THREE
.
FrontSide
)
data
.
side
=
this
.
side
;
if
(
this
.
vertexColors
!==
THREE
.
NoColors
)
data
.
vertexColors
=
this
.
vertexColors
;
if
(
this
.
opacity
<
1
)
data
.
opacity
=
this
.
opacity
;
if
(
this
.
transparent
===
true
)
data
.
transparent
=
this
.
transparent
;
...
...
@@ -248,13 +248,14 @@ THREE.Material.prototype = {
this
.
name
=
source
.
name
;
this
.
fog
=
source
.
fog
;
this
.
blending
=
source
.
blending
;
this
.
side
=
source
.
side
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
opacity
=
source
.
opacity
;
this
.
transparent
=
source
.
transparent
;
this
.
blending
=
source
.
blending
;
this
.
blendSrc
=
source
.
blendSrc
;
this
.
blendDst
=
source
.
blendDst
;
this
.
blendEquation
=
source
.
blendEquation
;
...
...
src/materials/MeshBasicMaterial.js
浏览文件 @
0400493a
...
...
@@ -26,8 +26,6 @@
* wireframe: <boolean>,
* wireframeLinewidth: <float>,
*
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>
* }
...
...
@@ -62,8 +60,6 @@ THREE.MeshBasicMaterial = function ( parameters ) {
this
.
wireframeLinecap
=
'
round
'
;
this
.
wireframeLinejoin
=
'
round
'
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
skinning
=
false
;
this
.
morphTargets
=
false
;
...
...
@@ -101,8 +97,6 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
this
.
wireframeLinecap
=
source
.
wireframeLinecap
;
this
.
wireframeLinejoin
=
source
.
wireframeLinejoin
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
skinning
=
source
.
skinning
;
this
.
morphTargets
=
source
.
morphTargets
;
...
...
src/materials/MeshLambertMaterial.js
浏览文件 @
0400493a
...
...
@@ -30,8 +30,6 @@
* wireframe: <boolean>,
* wireframeLinewidth: <float>,
*
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>
...
...
@@ -72,8 +70,6 @@ THREE.MeshLambertMaterial = function ( parameters ) {
this
.
wireframeLinecap
=
'
round
'
;
this
.
wireframeLinejoin
=
'
round
'
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
skinning
=
false
;
this
.
morphTargets
=
false
;
this
.
morphNormals
=
false
;
...
...
@@ -117,8 +113,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
this
.
wireframeLinecap
=
source
.
wireframeLinecap
;
this
.
wireframeLinejoin
=
source
.
wireframeLinejoin
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
skinning
=
source
.
skinning
;
this
.
morphTargets
=
source
.
morphTargets
;
this
.
morphNormals
=
source
.
morphNormals
;
...
...
src/materials/MeshPhongMaterial.js
浏览文件 @
0400493a
...
...
@@ -44,8 +44,6 @@
* wireframe: <boolean>,
* wireframeLinewidth: <float>,
*
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>
...
...
@@ -100,8 +98,6 @@ THREE.MeshPhongMaterial = function ( parameters ) {
this
.
wireframeLinecap
=
'
round
'
;
this
.
wireframeLinejoin
=
'
round
'
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
skinning
=
false
;
this
.
morphTargets
=
false
;
this
.
morphNormals
=
false
;
...
...
@@ -159,8 +155,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
this
.
wireframeLinecap
=
source
.
wireframeLinecap
;
this
.
wireframeLinejoin
=
source
.
wireframeLinejoin
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
skinning
=
source
.
skinning
;
this
.
morphTargets
=
source
.
morphTargets
;
this
.
morphNormals
=
source
.
morphNormals
;
...
...
src/materials/MeshStandardMaterial.js
浏览文件 @
0400493a
...
...
@@ -45,8 +45,6 @@
* wireframe: <boolean>,
* wireframeLinewidth: <float>,
*
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>
...
...
@@ -105,8 +103,6 @@ THREE.MeshStandardMaterial = function ( parameters ) {
this
.
wireframeLinecap
=
'
round
'
;
this
.
wireframeLinejoin
=
'
round
'
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
skinning
=
false
;
this
.
morphTargets
=
false
;
this
.
morphNormals
=
false
;
...
...
@@ -168,8 +164,6 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) {
this
.
wireframeLinecap
=
source
.
wireframeLinecap
;
this
.
wireframeLinejoin
=
source
.
wireframeLinejoin
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
skinning
=
source
.
skinning
;
this
.
morphTargets
=
source
.
morphTargets
;
this
.
morphNormals
=
source
.
morphNormals
;
...
...
src/materials/PointsMaterial.js
浏览文件 @
0400493a
...
...
@@ -8,9 +8,7 @@
* map: new THREE.Texture( <Image> ),
*
* size: <float>,
* sizeAttenuation: <bool>,
*
* vertexColors: <bool>
* sizeAttenuation: <bool>
* }
*/
...
...
@@ -27,8 +25,6 @@ THREE.PointsMaterial = function ( parameters ) {
this
.
size
=
1
;
this
.
sizeAttenuation
=
true
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
setValues
(
parameters
);
};
...
...
@@ -47,8 +43,6 @@ THREE.PointsMaterial.prototype.copy = function ( source ) {
this
.
size
=
source
.
size
;
this
.
sizeAttenuation
=
source
.
sizeAttenuation
;
this
.
vertexColors
=
source
.
vertexColors
;
return
this
;
};
src/materials/ShaderMaterial.js
浏览文件 @
0400493a
...
...
@@ -15,8 +15,6 @@
*
* lights: <bool>,
*
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>
...
...
@@ -46,8 +44,6 @@ THREE.ShaderMaterial = function ( parameters ) {
this
.
lights
=
false
;
// set to use scene lights
this
.
clipping
=
false
;
// set to use user-defined clipping planes
this
.
vertexColors
=
THREE
.
NoColors
;
// set to use "color" attribute stream
this
.
skinning
=
false
;
// set to use skinning attribute streams
this
.
morphTargets
=
false
;
// set to use morph targets
...
...
@@ -106,8 +102,6 @@ THREE.ShaderMaterial.prototype.copy = function ( source ) {
this
.
lights
=
source
.
lights
;
this
.
clipping
=
source
.
clipping
;
this
.
vertexColors
=
source
.
vertexColors
;
this
.
skinning
=
source
.
skinning
;
this
.
morphTargets
=
source
.
morphTargets
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录