Class Info |
|---|
VolumeCloudRenderAPI A class that implements volumetric cloud rendering, including initializing environment, passing arguments, rendering volumetric clouds, and destroying allocations. |
Qualifier and Type | Method Name and Description |
|---|---|
bool | Creates the rendering environment and resources. |
void | RenderCloudFrameTexture(void* textureHandle, void* depthTexHandle, int textureWidth, int textureHeight) Renders volumetric clouds on textureHandle. |
bool | SetRenderCloudParas(VolumeRenderParas ¶s) Sets required volumetric cloud rendering parameters. |
void | Destroys the allocations. |
Method |
|---|
bool CreateResources() Creates the rendering environment and resources. |
Returns
Type | Description |
|---|---|
bool | true if the environment and resources are created successfully; false otherwise. |
Method |
|---|
void RenderCloudFrameTexture(void* textureHandle, void* depthTexHandle, int textureWidth, int textureHeight) Renders volumetric clouds on textureHandle. |
Parameters
Name | Description |
|---|---|
textureHandle | Memory for drawing textures. |
depthTexHandle | Depth texture with the same size as textureHandle. |
textureWidth | Texture width, up to 4680 pixels. |
textureHeight | Texture height, up to 4680 pixels. |
Method |
|---|
bool SetRenderCloudParas(VolumeRenderParas ¶s) Sets required volumetric cloud rendering parameters. |
Parameters
Name | Description |
|---|---|
paras | Volumetric cloud rendering parameters, including the camera position, lighting, and wind speed. |
Returns
Type | Description |
|---|---|
bool | true if the parameters are set successfully; false otherwise. |