Add Volumetric Fog support for particles to modify local fog

This commit is contained in:
Wojtek Figat
2021-03-05 13:56:07 +01:00
parent dfb502621d
commit 1dee615d6e
22 changed files with 726 additions and 84 deletions

View File

@@ -11,6 +11,16 @@
/// </summary>
class VolumetricFogPass : public RendererPass<VolumetricFogPass>
{
public:
struct CustomData
{
GPUShader* Shader;
Vector3 GridSize;
float VolumetricFogMaxDistance;
int32 ParticleIndex;
};
private:
PACK_STRUCT(struct SkyLightData {
@@ -53,7 +63,7 @@ private:
});
PACK_STRUCT(struct PerLight {
Vector2 Dummy1;
Vector2 SliceToDepth;
int32 MinZ;
float LocalLightScatteringIntensity;