home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
-
- hlsl("
-
- sampler Image: register(s0);
-
- const half4 TFactor : register(c0);
-
- half4 main(half2 texCoord0: TEXCOORD0) : COLOR {
-
-
- half size = TFactor.a;
- half2 Pbase = texCoord0 - fmod(texCoord0,size.xx);
- half2 PCenter = Pbase + (size/2.0).xx;
-
- return tex2D(Image, PCenter);
- }
-
- ")
-
-