Skip to content

Instantly share code, notes, and snippets.

@hiko9lock
Created March 26, 2014 09:55
Show Gist options
  • Save hiko9lock/9779959 to your computer and use it in GitHub Desktop.
Save hiko9lock/9779959 to your computer and use it in GitHub Desktop.
HLSL code for UDK Custom
float3 output;
for( int i= -1*radius; i< radius; i++ ) {
for( int j= -1*radius; j< radius; j++ ) {
output+= tex2D( SceneColorTexture,ScreenAlignedUV(uv+ float2(i*dist, j*dist)));
}
}
return (output / ((radius+1)*(radius+1)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment