This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "postFx.hlsl" | |
#include "shadergen:/autogenConditioners.h" | |
// GPU Gems 3, pg 443-444 | |
float GetEdgeWeight(float2 uv0, in sampler2D prepassBuffer, in float2 targetSize) | |
{ | |
float2 offsets[9] = { | |
float2( 0.0, 0.0), | |
float2(-1.0, -1.0), | |
float2( 0.0, -1.0), |