Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
1e47bb43
T
three.js
项目概览
Ablesons
/
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,体验更适合开发者的 AI 搜索 >>
提交
1e47bb43
编写于
1月 27, 2014
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Lights, Fogs: Renamed hex to color in constructors.
上级
55c2c10a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
19 deletion
+19
-19
src/lights/AmbientLight.js
src/lights/AmbientLight.js
+2
-2
src/lights/AreaLight.js
src/lights/AreaLight.js
+2
-2
src/lights/DirectionalLight.js
src/lights/DirectionalLight.js
+2
-2
src/lights/HemisphereLight.js
src/lights/HemisphereLight.js
+3
-3
src/lights/Light.js
src/lights/Light.js
+2
-2
src/lights/PointLight.js
src/lights/PointLight.js
+2
-2
src/lights/SpotLight.js
src/lights/SpotLight.js
+2
-2
src/scenes/Fog.js
src/scenes/Fog.js
+2
-2
src/scenes/FogExp2.js
src/scenes/FogExp2.js
+2
-2
未找到文件。
src/lights/AmbientLight.js
浏览文件 @
1e47bb43
...
...
@@ -2,9 +2,9 @@
* @author mrdoob / http://mrdoob.com/
*/
THREE
.
AmbientLight
=
function
(
hex
)
{
THREE
.
AmbientLight
=
function
(
color
)
{
THREE
.
Light
.
call
(
this
,
hex
);
THREE
.
Light
.
call
(
this
,
color
);
};
...
...
src/lights/AreaLight.js
浏览文件 @
1e47bb43
...
...
@@ -3,9 +3,9 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
AreaLight
=
function
(
hex
,
intensity
)
{
THREE
.
AreaLight
=
function
(
color
,
intensity
)
{
THREE
.
Light
.
call
(
this
,
hex
);
THREE
.
Light
.
call
(
this
,
color
);
this
.
normal
=
new
THREE
.
Vector3
(
0
,
-
1
,
0
);
this
.
right
=
new
THREE
.
Vector3
(
1
,
0
,
0
);
...
...
src/lights/DirectionalLight.js
浏览文件 @
1e47bb43
...
...
@@ -3,9 +3,9 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
DirectionalLight
=
function
(
hex
,
intensity
)
{
THREE
.
DirectionalLight
=
function
(
color
,
intensity
)
{
THREE
.
Light
.
call
(
this
,
hex
);
THREE
.
Light
.
call
(
this
,
color
);
this
.
position
.
set
(
0
,
1
,
0
);
this
.
target
=
new
THREE
.
Object3D
();
...
...
src/lights/HemisphereLight.js
浏览文件 @
1e47bb43
...
...
@@ -2,13 +2,13 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
HemisphereLight
=
function
(
skyColor
Hex
,
groundColorHex
,
intensity
)
{
THREE
.
HemisphereLight
=
function
(
skyColor
,
groundColor
,
intensity
)
{
THREE
.
Light
.
call
(
this
,
skyColor
Hex
);
THREE
.
Light
.
call
(
this
,
skyColor
);
this
.
position
.
set
(
0
,
100
,
0
);
this
.
groundColor
=
new
THREE
.
Color
(
groundColor
Hex
);
this
.
groundColor
=
new
THREE
.
Color
(
groundColor
);
this
.
intensity
=
(
intensity
!==
undefined
)
?
intensity
:
1
;
};
...
...
src/lights/Light.js
浏览文件 @
1e47bb43
...
...
@@ -3,11 +3,11 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
Light
=
function
(
hex
)
{
THREE
.
Light
=
function
(
color
)
{
THREE
.
Object3D
.
call
(
this
);
this
.
color
=
new
THREE
.
Color
(
hex
);
this
.
color
=
new
THREE
.
Color
(
color
);
};
...
...
src/lights/PointLight.js
浏览文件 @
1e47bb43
...
...
@@ -2,9 +2,9 @@
* @author mrdoob / http://mrdoob.com/
*/
THREE
.
PointLight
=
function
(
hex
,
intensity
,
distance
)
{
THREE
.
PointLight
=
function
(
color
,
intensity
,
distance
)
{
THREE
.
Light
.
call
(
this
,
hex
);
THREE
.
Light
.
call
(
this
,
color
);
this
.
intensity
=
(
intensity
!==
undefined
)
?
intensity
:
1
;
this
.
distance
=
(
distance
!==
undefined
)
?
distance
:
0
;
...
...
src/lights/SpotLight.js
浏览文件 @
1e47bb43
...
...
@@ -2,9 +2,9 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
SpotLight
=
function
(
hex
,
intensity
,
distance
,
angle
,
exponent
)
{
THREE
.
SpotLight
=
function
(
color
,
intensity
,
distance
,
angle
,
exponent
)
{
THREE
.
Light
.
call
(
this
,
hex
);
THREE
.
Light
.
call
(
this
,
color
);
this
.
position
.
set
(
0
,
1
,
0
);
this
.
target
=
new
THREE
.
Object3D
();
...
...
src/scenes/Fog.js
浏览文件 @
1e47bb43
...
...
@@ -3,11 +3,11 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
Fog
=
function
(
hex
,
near
,
far
)
{
THREE
.
Fog
=
function
(
color
,
near
,
far
)
{
this
.
name
=
''
;
this
.
color
=
new
THREE
.
Color
(
hex
);
this
.
color
=
new
THREE
.
Color
(
color
);
this
.
near
=
(
near
!==
undefined
)
?
near
:
1
;
this
.
far
=
(
far
!==
undefined
)
?
far
:
1000
;
...
...
src/scenes/FogExp2.js
浏览文件 @
1e47bb43
...
...
@@ -3,11 +3,11 @@
* @author alteredq / http://alteredqualia.com/
*/
THREE
.
FogExp2
=
function
(
hex
,
density
)
{
THREE
.
FogExp2
=
function
(
color
,
density
)
{
this
.
name
=
''
;
this
.
color
=
new
THREE
.
Color
(
hex
);
this
.
color
=
new
THREE
.
Color
(
color
);
this
.
density
=
(
density
!==
undefined
)
?
density
:
0.00025
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录