Created
August 28, 2013 02:37
-
-
Save hiko9lock/6361540 to your computer and use it in GitHub Desktop.
HLSL code for UDK Custom texture.
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
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