Initial Commit

This commit is contained in:
Chicken Bones committed 2013-07-16 17:58:02 +10:00
1 parent 397135f687
commit 0f32dd8620
82 files changed
+10693

No files matched your search

@@ -0,0 +1,20 @@
package codechicken.lib.render;
import net.minecraft.util.Icon;
public class IconTransformation implements IUVTransformation
{
public Icon icon;
public IconTransformation(Icon icon)
{
this.icon = icon;
}
@Override
public void transform(UV texcoord)
{
texcoord.u = icon.getInterpolatedU(texcoord.u%2*16);
texcoord.v = icon.getInterpolatedV(texcoord.v%2*16);
}
}