thingorigin2.0
正在准备搜索索引...
src/ts/TLight
TLight
类 TLight
自定义光源的基类,用于
索引
构造函数
constructor
属性
t
Scene
Ambient
Light
Directional
Light
Hemisphere
Light
Point
Light
Rect
Area
Light
Spot
Light
访问器
light
List
方法
add
Ambient
Light
add
Directional
Light
add
Light
add
Point
Light
clear
del
Light
get
Light
has
Light
on
Resize
构造函数
constructor
new
TLight
(
tScene
:
TScene
)
:
TLight
参数
tScene
:
TScene
返回
TLight
属性
t
Scene
tScene
:
TScene
静态
Ambient
Light
AmbientLight
:
number
= 0
静态
Directional
Light
DirectionalLight
:
number
= 1
静态
Hemisphere
Light
HemisphereLight
:
number
= 2
静态
Point
Light
PointLight
:
number
= 3
静态
Rect
Area
Light
RectAreaLight
:
number
= 4
静态
Spot
Light
SpotLight
:
number
= 5
访问器
light
List
get
lightList
()
:
Light
<
LightShadow
<
Camera
>
>
[]
获取光源列表
返回
Light
<
LightShadow
<
Camera
>
>
[]
方法
add
Ambient
Light
addAmbientLight
(
name
:
string
,
color
?:
string
|
number
|
Color
,
intensity
?:
number
,
)
:
any
添加环境光
参数
name
:
string
可选
color
:
string
|
number
|
Color
可选
intensity
:
number
返回
any
add
Directional
Light
addDirectionalLight
(
name
:
string
,
color
?:
string
|
number
|
Color
,
intensity
?:
number
,
lightConfig
?:
{
position
:
{
x
:
number
;
y
:
number
;
z
:
number
}
}
,
)
:
DirectionalLight
添加平行光
参数
name
:
string
可选
color
:
string
|
number
|
Color
可选
intensity
:
number
lightConfig
:
{
position
:
{
x
:
number
;
y
:
number
;
z
:
number
}
}
= ...
返回
DirectionalLight
add
Light
addLight
(
id
:
string
,
light
:
Light
)
:
void
添加光源
参数
id
:
string
光源的位移标识符
light
:
Light
光源
返回
void
add
Point
Light
addPointLight
(
color
?:
string
|
number
|
Color
,
intensity
?:
number
,
distance
?:
number
,
decay
?:
number
,
)
:
void
添加点光源
参数
可选
color
:
string
|
number
|
Color
可选
intensity
:
number
可选
distance
:
number
可选
decay
:
number
返回
void
clear
clear
()
:
void
清空所有光源
返回
void
del
Light
delLight
(
id
:
string
)
:
void
删除光源
参数
id
:
string
返回
void
get
Light
getLight
(
id
:
string
)
:
Light
获取光源
参数
id
:
string
返回
Light
has
Light
hasLight
(
id
:
string
)
:
boolean
根据光源id查找
参数
id
:
string
返回
boolean
on
Resize
onResize
(
container
:
HTMLElement
)
:
void
窗口变动更新光源事件
参数
container
:
HTMLElement
返回
void
显示设置
成员可见性
受保护
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
t
Scene
Ambient
Light
Directional
Light
Hemisphere
Light
Point
Light
Rect
Area
Light
Spot
Light
访问器
light
List
方法
add
Ambient
Light
add
Directional
Light
add
Light
add
Point
Light
clear
del
Light
get
Light
has
Light
on
Resize
thingorigin2.0
加载中……
自定义光源的基类,用于