<cgfp>
<program>
<![CDATA[

struct vertex2fragment 
{
	float4 TexCoord : TEXCOORD0;
};

float4 main (vertex2fragment IN) : COLOR
{
	float4 pack_factors = { 1.0, 256.0, 65536.0, 16777216.0 };
	return frac((length(IN.TexCoord.xyz)/16.0)*pack_factors);
}
]]>
</program>
</cgfp>
