Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
7992d5c4
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,发现更多精彩内容 >>
提交
7992d5c4
编写于
4月 30, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Materials: Promoted fog.
上级
6d4c2133
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
12 addition
and
59 deletion
+12
-59
src/materials/LineBasicMaterial.js
src/materials/LineBasicMaterial.js
+0
-5
src/materials/LineDashedMaterial.js
src/materials/LineDashedMaterial.js
+0
-6
src/materials/Material.js
src/materials/Material.js
+2
-0
src/materials/MeshBasicMaterial.js
src/materials/MeshBasicMaterial.js
+1
-7
src/materials/MeshDepthMaterial.js
src/materials/MeshDepthMaterial.js
+2
-0
src/materials/MeshLambertMaterial.js
src/materials/MeshLambertMaterial.js
+1
-7
src/materials/MeshNormalMaterial.js
src/materials/MeshNormalMaterial.js
+1
-0
src/materials/MeshPhongMaterial.js
src/materials/MeshPhongMaterial.js
+1
-7
src/materials/MeshStandardMaterial.js
src/materials/MeshStandardMaterial.js
+1
-7
src/materials/PointsMaterial.js
src/materials/PointsMaterial.js
+1
-7
src/materials/ShaderMaterial.js
src/materials/ShaderMaterial.js
+1
-6
src/materials/SpriteMaterial.js
src/materials/SpriteMaterial.js
+1
-7
未找到文件。
src/materials/LineBasicMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -11,8 +11,6 @@
* linejoin: "round",
*
* vertexColors: <bool>
*
* fog: <bool>
* }
*/
...
...
@@ -30,7 +28,6 @@ THREE.LineBasicMaterial = function ( parameters ) {
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
fog
=
true
;
this
.
setValues
(
parameters
);
...
...
@@ -51,8 +48,6 @@ THREE.LineBasicMaterial.prototype.copy = function ( source ) {
this
.
vertexColors
=
source
.
vertexColors
;
this
.
fog
=
source
.
fog
;
return
this
;
};
src/materials/LineDashedMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -12,8 +12,6 @@
* gapSize: <float>,
*
* vertexColors: THREE.NoColors / THREE.FaceColors / THREE.VertexColors
*
* fog: <bool>
* }
*/
...
...
@@ -33,8 +31,6 @@ THREE.LineDashedMaterial = function ( parameters ) {
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
fog
=
true
;
this
.
setValues
(
parameters
);
};
...
...
@@ -56,8 +52,6 @@ THREE.LineDashedMaterial.prototype.copy = function ( source ) {
this
.
vertexColors
=
source
.
vertexColors
;
this
.
fog
=
source
.
fog
;
return
this
;
};
src/materials/Material.js
浏览文件 @
7992d5c4
...
...
@@ -12,6 +12,7 @@ THREE.Material = function () {
this
.
name
=
''
;
this
.
type
=
'
Material
'
;
this
.
fog
=
true
;
this
.
side
=
THREE
.
FrontSide
;
this
.
opacity
=
1
;
...
...
@@ -246,6 +247,7 @@ THREE.Material.prototype = {
this
.
name
=
source
.
name
;
this
.
fog
=
source
.
fog
;
this
.
side
=
source
.
side
;
this
.
opacity
=
source
.
opacity
;
...
...
src/materials/MeshBasicMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -29,9 +29,7 @@
* vertexColors: THREE.NoColors / THREE.VertexColors / THREE.FaceColors,
*
* skinning: <bool>,
* morphTargets: <bool>,
*
* fog: <bool>
* morphTargets: <bool>
* }
*/
...
...
@@ -57,8 +55,6 @@ THREE.MeshBasicMaterial = function ( parameters ) {
this
.
reflectivity
=
1
;
this
.
refractionRatio
=
0.98
;
this
.
fog
=
true
;
this
.
shading
=
THREE
.
SmoothShading
;
this
.
wireframe
=
false
;
...
...
@@ -98,8 +94,6 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
this
.
reflectivity
=
source
.
reflectivity
;
this
.
refractionRatio
=
source
.
refractionRatio
;
this
.
fog
=
source
.
fog
;
this
.
shading
=
source
.
shading
;
this
.
wireframe
=
source
.
wireframe
;
...
...
src/materials/MeshDepthMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -43,6 +43,8 @@ THREE.MeshDepthMaterial = function ( parameters ) {
this
.
wireframe
=
false
;
this
.
wireframeLinewidth
=
1
;
this
.
fog
=
false
;
this
.
setValues
(
parameters
);
};
...
...
src/materials/MeshLambertMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -34,9 +34,7 @@
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>,
*
* fog: <bool>
* morphNormals: <bool>
* }
*/
...
...
@@ -69,8 +67,6 @@ THREE.MeshLambertMaterial = function ( parameters ) {
this
.
reflectivity
=
1
;
this
.
refractionRatio
=
0.98
;
this
.
fog
=
true
;
this
.
wireframe
=
false
;
this
.
wireframeLinewidth
=
1
;
this
.
wireframeLinecap
=
'
round
'
;
...
...
@@ -116,8 +112,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
this
.
reflectivity
=
source
.
reflectivity
;
this
.
refractionRatio
=
source
.
refractionRatio
;
this
.
fog
=
source
.
fog
;
this
.
wireframe
=
source
.
wireframe
;
this
.
wireframeLinewidth
=
source
.
wireframeLinewidth
;
this
.
wireframeLinecap
=
source
.
wireframeLinecap
;
...
...
src/materials/MeshNormalMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -18,6 +18,7 @@ THREE.MeshNormalMaterial = function ( parameters ) {
this
.
wireframe
=
false
;
this
.
wireframeLinewidth
=
1
;
this
.
fog
=
false
;
this
.
morphTargets
=
false
;
this
.
setValues
(
parameters
);
...
...
src/materials/MeshPhongMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -48,9 +48,7 @@
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>,
*
* fog: <bool>
* morphNormals: <bool>
* }
*/
...
...
@@ -95,8 +93,6 @@ THREE.MeshPhongMaterial = function ( parameters ) {
this
.
reflectivity
=
1
;
this
.
refractionRatio
=
0.98
;
this
.
fog
=
true
;
this
.
shading
=
THREE
.
SmoothShading
;
this
.
wireframe
=
false
;
...
...
@@ -156,8 +152,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
this
.
reflectivity
=
source
.
reflectivity
;
this
.
refractionRatio
=
source
.
refractionRatio
;
this
.
fog
=
source
.
fog
;
this
.
shading
=
source
.
shading
;
this
.
wireframe
=
source
.
wireframe
;
...
...
src/materials/MeshStandardMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -49,9 +49,7 @@
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>,
*
* fog: <bool>
* morphNormals: <bool>
* }
*/
...
...
@@ -100,8 +98,6 @@ THREE.MeshStandardMaterial = function ( parameters ) {
this
.
refractionRatio
=
0.98
;
this
.
fog
=
true
;
this
.
shading
=
THREE
.
SmoothShading
;
this
.
wireframe
=
false
;
...
...
@@ -165,8 +161,6 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) {
this
.
refractionRatio
=
source
.
refractionRatio
;
this
.
fog
=
source
.
fog
;
this
.
shading
=
source
.
shading
;
this
.
wireframe
=
source
.
wireframe
;
...
...
src/materials/PointsMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -10,9 +10,7 @@
* size: <float>,
* sizeAttenuation: <bool>,
*
* vertexColors: <bool>,
*
* fog: <bool>
* vertexColors: <bool>
* }
*/
...
...
@@ -31,8 +29,6 @@ THREE.PointsMaterial = function ( parameters ) {
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
fog
=
true
;
this
.
setValues
(
parameters
);
};
...
...
@@ -53,8 +49,6 @@ THREE.PointsMaterial.prototype.copy = function ( source ) {
this
.
vertexColors
=
source
.
vertexColors
;
this
.
fog
=
source
.
fog
;
return
this
;
};
src/materials/ShaderMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -19,9 +19,7 @@
*
* skinning: <bool>,
* morphTargets: <bool>,
* morphNormals: <bool>,
*
* fog: <bool>
* morphNormals: <bool>
* }
*/
...
...
@@ -45,7 +43,6 @@ THREE.ShaderMaterial = function ( parameters ) {
this
.
wireframeLinewidth
=
1
;
this
.
fog
=
false
;
// set to use scene fog
this
.
lights
=
false
;
// set to use scene lights
this
.
clipping
=
false
;
// set to use user-defined clipping planes
...
...
@@ -106,8 +103,6 @@ THREE.ShaderMaterial.prototype.copy = function ( source ) {
this
.
wireframe
=
source
.
wireframe
;
this
.
wireframeLinewidth
=
source
.
wireframeLinewidth
;
this
.
fog
=
source
.
fog
;
this
.
lights
=
source
.
lights
;
this
.
clipping
=
source
.
clipping
;
...
...
src/materials/SpriteMaterial.js
浏览文件 @
7992d5c4
...
...
@@ -7,9 +7,7 @@
* map: new THREE.Texture( <Image> ),
*
* uvOffset: new THREE.Vector2(),
* uvScale: new THREE.Vector2(),
*
* fog: <bool>
* uvScale: new THREE.Vector2()
* }
*/
...
...
@@ -26,8 +24,6 @@ THREE.SpriteMaterial = function ( parameters ) {
this
.
fog
=
false
;
// set parameters
this
.
setValues
(
parameters
);
};
...
...
@@ -44,8 +40,6 @@ THREE.SpriteMaterial.prototype.copy = function ( source ) {
this
.
rotation
=
source
.
rotation
;
this
.
fog
=
source
.
fog
;
return
this
;
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录