Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
3524fdca
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,发现更多精彩内容 >>
提交
3524fdca
编写于
4月 30, 2016
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Materials: Promoted lights.
上级
8fb84d74
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
14 addition
and
9 deletion
+14
-9
src/materials/LineBasicMaterial.js
src/materials/LineBasicMaterial.js
+1
-0
src/materials/LineDashedMaterial.js
src/materials/LineDashedMaterial.js
+2
-0
src/materials/Material.js
src/materials/Material.js
+2
-0
src/materials/MeshBasicMaterial.js
src/materials/MeshBasicMaterial.js
+2
-0
src/materials/MeshDepthMaterial.js
src/materials/MeshDepthMaterial.js
+1
-0
src/materials/MeshNormalMaterial.js
src/materials/MeshNormalMaterial.js
+1
-0
src/materials/PointsMaterial.js
src/materials/PointsMaterial.js
+2
-0
src/materials/ShaderMaterial.js
src/materials/ShaderMaterial.js
+0
-1
src/materials/SpriteMaterial.js
src/materials/SpriteMaterial.js
+1
-0
src/renderers/WebGLRenderer.js
src/renderers/WebGLRenderer.js
+2
-8
未找到文件。
src/materials/LineBasicMaterial.js
浏览文件 @
3524fdca
...
...
@@ -24,6 +24,7 @@ THREE.LineBasicMaterial = function ( parameters ) {
this
.
linecap
=
'
round
'
;
this
.
linejoin
=
'
round
'
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
...
...
src/materials/LineDashedMaterial.js
浏览文件 @
3524fdca
...
...
@@ -27,6 +27,8 @@ THREE.LineDashedMaterial = function ( parameters ) {
this
.
dashSize
=
3
;
this
.
gapSize
=
1
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
};
...
...
src/materials/Material.js
浏览文件 @
3524fdca
...
...
@@ -13,6 +13,7 @@ THREE.Material = function () {
this
.
type
=
'
Material
'
;
this
.
fog
=
true
;
this
.
lights
=
true
;
this
.
blending
=
THREE
.
NormalBlending
;
this
.
side
=
THREE
.
FrontSide
;
...
...
@@ -249,6 +250,7 @@ THREE.Material.prototype = {
this
.
name
=
source
.
name
;
this
.
fog
=
source
.
fog
;
this
.
lights
=
source
.
lights
;
this
.
blending
=
source
.
blending
;
this
.
side
=
source
.
side
;
...
...
src/materials/MeshBasicMaterial.js
浏览文件 @
3524fdca
...
...
@@ -61,6 +61,8 @@ THREE.MeshBasicMaterial = function ( parameters ) {
this
.
skinning
=
false
;
this
.
morphTargets
=
false
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
};
...
...
src/materials/MeshDepthMaterial.js
浏览文件 @
3524fdca
...
...
@@ -44,6 +44,7 @@ THREE.MeshDepthMaterial = function ( parameters ) {
this
.
wireframeLinewidth
=
1
;
this
.
fog
=
false
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
...
...
src/materials/MeshNormalMaterial.js
浏览文件 @
3524fdca
...
...
@@ -19,6 +19,7 @@ THREE.MeshNormalMaterial = function ( parameters ) {
this
.
wireframeLinewidth
=
1
;
this
.
fog
=
false
;
this
.
lights
=
false
;
this
.
morphTargets
=
false
;
this
.
setValues
(
parameters
);
...
...
src/materials/PointsMaterial.js
浏览文件 @
3524fdca
...
...
@@ -25,6 +25,8 @@ THREE.PointsMaterial = function ( parameters ) {
this
.
size
=
1
;
this
.
sizeAttenuation
=
true
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
};
...
...
src/materials/ShaderMaterial.js
浏览文件 @
3524fdca
...
...
@@ -41,7 +41,6 @@ THREE.ShaderMaterial = function ( parameters ) {
this
.
clipping
=
false
;
// set to use user-defined clipping planes
this
.
skinning
=
false
;
// set to use skinning attribute streams
this
.
morphTargets
=
false
;
// set to use morph targets
this
.
morphNormals
=
false
;
// set to use morph normals
...
...
src/materials/SpriteMaterial.js
浏览文件 @
3524fdca
...
...
@@ -23,6 +23,7 @@ THREE.SpriteMaterial = function ( parameters ) {
this
.
rotation
=
0
;
this
.
fog
=
false
;
this
.
lights
=
false
;
this
.
setValues
(
parameters
);
...
...
src/renderers/WebGLRenderer.js
浏览文件 @
3524fdca
...
...
@@ -1653,10 +1653,7 @@ THREE.WebGLRenderer = function ( parameters ) {
}
if
(
material
instanceof
THREE
.
MeshPhongMaterial
||
material
instanceof
THREE
.
MeshLambertMaterial
||
material
instanceof
THREE
.
MeshStandardMaterial
||
material
.
lights
)
{
if
(
material
.
lights
)
{
// store the light setup it was created for
...
...
@@ -1886,10 +1883,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if
(
refreshMaterial
)
{
if
(
material
instanceof
THREE
.
MeshPhongMaterial
||
material
instanceof
THREE
.
MeshLambertMaterial
||
material
instanceof
THREE
.
MeshStandardMaterial
||
material
.
lights
)
{
if
(
material
.
lights
)
{
// the current material requires lighting info
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录