| 143 | } |
| 144 | |
| 145 | void VolumetricFogPass::Dispose() |
| 146 | { |
| 147 | // Base |
| 148 | RendererPass::Dispose(); |
| 149 | |
| 150 | // Cleanup |
| 151 | _psInjectLight.Delete(); |
| 152 | _csInitialize = nullptr; |
| 153 | _csLightScattering.Clear(); |
| 154 | _csFinalIntegration = nullptr; |
| 155 | SAFE_DELETE_GPU_RESOURCE(_vbCircleRasterize); |
| 156 | SAFE_DELETE_GPU_RESOURCE(_ibCircleRasterize); |
| 157 | _shader = nullptr; |
| 158 | } |
| 159 | |
| 160 | Float4 GetGridSliceParameters(float fogStart, float fogEnd, int32 gridSizeZ) |
| 161 | { |