Skip to content

Instantly share code, notes, and snippets.

@hiko9lock
Created August 28, 2013 02:37
Show Gist options
  • Save hiko9lock/6361540 to your computer and use it in GitHub Desktop.
Save hiko9lock/6361540 to your computer and use it in GitHub Desktop.
HLSL code for UDK Custom texture.
float3 output= float3(0.0, 0.0, 0.0);
float steps= 10.0f;
for( int i=0; i< steps; i++)
{
output+= (1.0/steps)*tex2D(tex,uv+(float2((1.0/steps)*i, (1.0/steps)*i) ) );
}
return output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment