Skip to content

Instantly share code, notes, and snippets.

@jalava
Created July 31, 2011 04:27
Show Gist options
  • Save jalava/1116391 to your computer and use it in GitHub Desktop.
Save jalava/1116391 to your computer and use it in GitHub Desktop.
FC0 = 0,0,0,0
FC1 = 1,1,1,1
FC2 = 0.7,0.7,0.7,0.7
"mov ft2, fc0\n"+
"add ft2.xy, ft2.xy, v0.xy\n"+
"dp3 ft2.x, ft2.xyz, ft2.xyz\n"+
"sqt ft2.x, ft2.x \n"+
"mul ft2.x, ft2.x, fc2.x \n"+
"sub ft2.x, fc1.x, ft2.x \n"+
"sat ft2.x, ft2.x \n"+
"tex ft1, v0, fs0 <2d,linear,clamp>\n"+
"mul ft1.xyz, ft1.xyz, ft2.xxx \n"+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment