|
AR_Engine_SDK
|

Variables | |
| XELightComponent = {} | |
| function XELightComponent GetDirLightDir | ( | ) |
获取平行光(也叫方向光)的方向
| function XELightComponent GetLight | ( | ) |
获取引擎封装的光源对象
| function XELightComponent GetLightColor | ( | ) |
获取光源颜色
| function XELightComponent GetLightIndex | ( | ) |
获取环境光索引
| function XELightComponent GetLightLuminance | ( | ) |
获取光照强度
| function XELightComponent IsLightReady | ( | ) |
光照是否准备好
| function XELightComponent new | ( | ) |
XELightComponent_new00
| function XELightComponent Release | ( | ) |
释放资源
| function XELightComponent Render | ( | pViewport | ) |
| function XELightComponent SetAsDirLight | ( | color | , |
| vDir | , | ||
| fLuminance | |||
| ) |
创建引擎中封装的代表平行光的 IXLightBase 对象,并设置光源颜色、方向和强度
| color | XCOLORBASE 光源颜色 |
| vDir | XVECTOR3 平行光的方向,单位化的向量 |
| fLuminance | number 光照强度 |
| function XELightComponent SetAsEnvLight | ( | color | , |
| index | , | ||
| fLuminance | |||
| ) |
创建引擎中封装的代表环境光的 IXLightBase 对象,并设置光源颜色、索引和强度
| color | XCOLORBASE 光源颜色 |
| index | number 环境光的索引,目前引擎仅支持两个环境光 |
| fLuminance | number 光照强度 |
| function XELightComponent SetAsPointLight | ( | desc | ) |
| function XELightComponent SetAsSpotLight | ( | desc | ) |
| function XELightComponent SetLightColor | ( | color | ) |
| function XELightComponent SetLightConeInnerAngle | ( | fAngle | ) |
对于聚光源,可以设置光源内锥角
| fAngle | number 角度 |
| function XELightComponent SetLightConeOuterAngle | ( | fAngle | ) |
对于聚光源,可以设置光源外锥角
| fAngle | number 角度 |
| function XELightComponent SetLightFallOffExponent | ( | fFallOffExponent | ) |
对于点光源或者聚光源,可以设置光源衰减值
| fFallOffExponent | number 光源衰减值 |
| function XELightComponent SetLightLuminance | ( | fLuminance | ) |
设置光照强度
| fLuminance | number |
| function XELightComponent SetLightRadius | ( | fRadius | ) |
对于点光源或者聚光源,可以设置光源半径
| fRadius | number 光源半径 |
| XELightComponent = {} |
1.8.15