|
IVSmoke 1.0
|
#include <IVSmokeVSMProcessor.h>

Public Member Functions | |
| void | Process (FRDGBuilder &GraphBuilder, FRDGTextureRef DepthTexture, FRDGTextureRef VSMTexture, int32 BlurRadius) |
| void | ProcessCascades (FRDGBuilder &GraphBuilder, TArray< FIVSmokeCascadeData > &Cascades, int32 BlurRadius) |
Variance Shadow Map processor. Converts depth maps to variance shadow maps and applies blur.
VSM stores (depth, depth²) which enables soft shadow filtering without the shadow acne artifacts of PCF.
Definition at line 19 of file IVSmokeVSMProcessor.h.
| FIVSmokeVSMProcessor::FIVSmokeVSMProcessor | ( | ) |
Definition at line 17 of file IVSmokeVSMProcessor.cpp.
| FIVSmokeVSMProcessor::~FIVSmokeVSMProcessor | ( | ) |
Definition at line 21 of file IVSmokeVSMProcessor.cpp.
| void FIVSmokeVSMProcessor::Process | ( | FRDGBuilder & | GraphBuilder, |
| FRDGTextureRef | DepthTexture, | ||
| FRDGTextureRef | VSMTexture, | ||
| int32 | BlurRadius | ||
| ) |
Process a depth texture into a VSM texture. Performs depth → variance conversion and separable Gaussian blur.
| GraphBuilder | RDG builder. |
| DepthTexture | Input depth texture (R32F). |
| VSMTexture | Output VSM texture (RG32F). |
| BlurRadius | Blur kernel radius (0 = no blur). |
Definition at line 29 of file IVSmokeVSMProcessor.cpp.
| void FIVSmokeVSMProcessor::ProcessCascades | ( | FRDGBuilder & | GraphBuilder, |
| TArray< FIVSmokeCascadeData > & | Cascades, | ||
| int32 | BlurRadius | ||
| ) |
Process all cascades' depth textures into VSM textures.
| GraphBuilder | RDG builder. |
| Cascades | Array of cascade data. |
| BlurRadius | Blur kernel radius. |
Definition at line 65 of file IVSmokeVSMProcessor.cpp.