| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include "$ENGINE$\PPBase.bslinc"
- #include "$ENGINE$\GBufferInput.bslinc"
- #include "$ENGINE$\PerCameraData.bslinc"
- #define TEMPORAL_LOCAL_VELOCITY 0
- #define TEMPORAL_SEARCH_NEAREST 0
- #define TEMPORAL_BLEND_FACTOR 8
- #define TEMPORAL_SMOOTH_NEIGHBORHOOD 0
- #define MSAA_COLOR 0
- #include "$ENGINE$\TemporalResolve.bslinc"
- technique PPSSRResolve
- {
- mixin PPBase;
- mixin PerCameraData;
- mixin TemporalResolve;
- variations
- {
- MSAA = { true, false };
- };
-
- code
- {
- [internal]
- cbuffer Input
- {
- float2 gSceneDepthTexelSize;
- float2 gSceneColorTexelSize;
-
- float gManualExposure;
- }
-
- #if MSAA
- Texture2DMS<float> gSceneDepth;
- #else
- Texture2D gSceneDepth;
- #endif
- Texture2D gSceneColor;
- Texture2D gPrevColor;
- SamplerState gPointSampler;
- SamplerState gLinearSampler;
-
- float4 fsmain(VStoFS input) : SV_Target0
- {
- #if MSAA
- return temporalResolve(
- gSceneDepth,
- gSceneColor, gLinearSampler, gSceneColorTexelSize,
- gPrevColor, gLinearSampler, gSceneColorTexelSize,
- gManualExposure, input.uv0, input.screenPos, 0);
- #else
- return temporalResolve(
- gSceneDepth, gPointSampler, gSceneDepthTexelSize,
- gSceneColor, gLinearSampler, gSceneColorTexelSize,
- gPrevColor, gLinearSampler, gSceneColorTexelSize,
- gManualExposure, input.uv0, input.screenPos, 0);
- #endif
- }
- };
- };
|