Class Info |
|---|
VolumeFogRenderAPI 用来进行体积雾渲染的类,包含环境初始化、参数传递、体积雾渲染以及数据释放等功能。 |
Qualifier and Type |
Method Name and Description |
|---|---|
bool |
创建渲染所需要的环境和资源。 |
void |
RenderFogFrameTexture(void* FogTexHandle, int textureWidth, int textureHeight, int textureDepth) 进行体积雾的绘制渲染,将体积雾绘制在纹理FogTexHandle上。 |
bool |
SetRenderFogParas(BaseParas &baseParas, DirLightParas &dirLight, PointLightParas pointLights[], SpotLightParas spotLights[]) 设置渲染参数,传入渲染过程中必须的参数。 |
void |
释放环境和资源。 |
Method |
|---|
bool CreateResources() 创建渲染需要的环境和资源。 |
Returns
Type |
Description |
|---|---|
bool |
判断环境和资源创建是否成功。
|
Method |
|---|
void RenderFogFrameTexture(void* FogTexHandle, int textureWidth, int textureHeight, int textureDepth) 进行体积雾的绘制渲染,将体积雾绘制在纹理FogTexHandle上。 |
Parameters
Method |
|---|
bool SetRenderFogParas(BaseParas &baseParas, DirLightParas &dirLight, PointLightParas pointLights[], SpotLightParas spotLights[]) 设置渲染参数,传入渲染过程中必须的参数。 |
Parameters
Name |
Description |
|---|---|
baseParas |
体积雾渲染所需要的基础参数,包含高度雾、噪声雾、相机参数等。 |
dirLight |
平行光及阴影相关参数。 |
pointLights |
点光源相关参数。支持传入长度8以内的结构体数组。 |
spotLights |
聚光源相关参数。支持传入长度8以内的结构体数组。 |
Returns
Type |
Description |
|---|---|
bool |
判断参数传递是否成功。
|