Fuck yes. I did the math stuff.
Fucking awesome.
int size = 16;
float x = data.texel.x;
int a = x * size;
a = a % size;
x = (float)a / size;
float y = data.texel.y;
int b = y * size;
b = b % size;
y = (float)b / size;
float xTexel = InverseLerp(x, x + 1f / size,data.texel.x);
float yTexel = InverseLerp(y, y + 1f / size,data.texel.y);
float xy = xTexel + yTexel;
float4 texelColor = float4(xy.xxx,1);
return texelColor;
Mucho sexiness
ReplyDeleteMucho graciness
ReplyDelete