|
AR_Engine_SDK
|
#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

#include <XLightBase.h>

变量 | |
| XLT_DIRECTION = 0 | |
| XLT_POINT = 0 | |
| XLT_SPOT = 0 | |
| XLT_ENV = 0 | |
| XLT_NUM = 0 | |
| XPointLightDesc = {} | |
| XPointLightDesc | clrColorVal = {} |
| @type XCOLORBASE 更多... | |
| XPointLightDesc | fLuminance = 0 |
| @type number 更多... | |
| XPointLightDesc | vPos = {} |
| @type XVECTOR3 更多... | |
| XPointLightDesc | fRadius = 0 |
| @type number 更多... | |
| XPointLightDesc | fFallOffExponent = 0 |
| @type number 更多... | |
| function IXLightManager CreateDirectionLight | ( | vDir | , |
| clrColorVal | , | ||
| fLuminance | |||
| ) |
创建方向光,并设置光源颜色、方向和强度
| vDir | XVECTOR3 平行光的方向,单位化的向量 |
| clrColorVal | XCOLORBASE 光源颜色 |
| fLuminance | number 光照强度 |
| function IXLightManager CreateEnvironmentLight | ( | clrColorVal | , |
| fLuminance | |||
| ) |
| function IXLightManager CreatePointLight | ( | desc | ) |
| function IXLightManager CreateSpotLight | ( | desc | ) |
| function IXLightBase Enable | ( | enabled | ) |
设置光源是否开启
| enabled | boolean 光源是否开启 |
| function IXLightBase EnableCastShadow | ( | bEnabled | ) |
开启或关闭投射阴影
| bEnabled | boolean 开启或关闭投射阴影 |
| function IXLightBase GetAABB | ( | ) |
获取光源AABB包围盒信息
| function IXLightBase GetBeLightedPrimitives | ( | primitives | ) |
IXLightBase_GetBeLightedPrimitives00
| primitives | IXPrimitiveBase[] |
| function IXLightBase GetColor | ( | ) |
获取光源颜色
| function IXLightBase GetColorValue | ( | ) |
获取光源颜色
| function IXSpotLight GetConeInnerAngle | ( | ) |
获取聚光源内锥角
| function IXSpotLight GetConeOuterAngle | ( | ) |
获取聚光源外锥角
| function IXDirectionLight GetDir | ( | ) |
获取方向光方向
| function IXPointLight GetFallOffExponent | ( | ) |
获取光源衰减值
| function IXLightBase GetLuminance | ( | ) |
获取光照强度
| function IXPointLight GetPos | ( | ) |
获取点光源位置
| function IXLightBase GetRadius | ( | ) |
获取光源影响半径
| function IXLightBase GetType | ( | ) |
获取光源类型
| function IXLightManager Init | ( | ) |
初始化
| function IXLightBase IsCastShadow | ( | ) |
是否投射阴影
| function IXLightBase IsEnable | ( | ) |
获取光源是否开启
| function XPointLightDesc new | ( | ) |
@type XCOLORBASE
XPointLightDesc_new00
@type number @type XVECTOR3 @type XVECTOR3 @type number @type number @type number @type number XSpotLightDesc_new00
| function XPointLightDesc new | ( | _clrColorVal | , |
| _fLuminance | , | ||
| _vPos | , | ||
| _fRadius | , | ||
| _fFallOffExponent | |||
| ) |
XPointLightDesc_new01
| _clrColorVal | XCOLORBASE |
| _fLuminance | number |
| _vPos | XVECTOR3 |
| _fRadius | number |
| _fFallOffExponent | number |
| function XSpotLightDesc new | ( | _clrColorVal | , |
| _fLuminance | , | ||
| _vPos | , | ||
| _vDir | , | ||
| _fRadius | , | ||
| _fFallOffExponent | , | ||
| _fConeInnerAngle | , | ||
| _fConeOuterAngle | |||
| ) |
XSpotLightDesc_new01
| _clrColorVal | XCOLORBASE |
| _fLuminance | number |
| _vPos | XVECTOR3 |
| _vDir | XVECTOR3 |
| _fRadius | number |
| _fFallOffExponent | number |
| _fConeInnerAngle | number |
| _fConeOuterAngle | number |
| function IXLightManager Release | ( | ) |
释放资源
| function IXLightManager ReleaseLight | ( | pLight | ) |
| function IXLightBase SetColorValue | ( | clrColorVal | ) |
| function IXSpotLight SetConeInnerAngle | ( | fAngle | ) |
设置聚光源内锥角
| fAngle | number 聚光源内锥角大小 |
| function IXSpotLight SetConeOuterAngle | ( | fAngle | ) |
设置聚光源外锥角
| fAngle | number 聚光源外锥角大小 |
| function IXSpotLight SetDir | ( | vDir | ) |
| function IXPointLight SetFallOffExponent | ( | fFallOffExponent | ) |
可以设置光源衰减值
| fFallOffExponent | number 光源衰减值 |
| function IXLightBase SetLuminance | ( | fLuminance | ) |
设置光照强度
| fLuminance | number 光照强度 |
| function IXPointLight SetPos | ( | vPos | ) |
| function IXPointLight SetRadius | ( | fRadius | ) |
设置点光源影响半径
| fRadius | number 点光源影响半径 |
| XPointLightDesc clrColorVal = {} |
@type XCOLORBASE
| XPointLightDesc fFallOffExponent = 0 |
@type number
| XPointLightDesc fLuminance = 0 |
@type number
| XPointLightDesc fRadius = 0 |
@type number
| XPointLightDesc vPos = {} |
@type XVECTOR3
| XLT_DIRECTION = 0 |
| XLT_ENV = 0 |
| XLT_NUM = 0 |
| XLT_POINT = 0 |
| XLT_SPOT = 0 |
| XPointLightDesc = {} |