mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-16 10:44:51 +00:00
Initial Commit
This commit is contained in:
1 parent
397135f687
commit
0f32dd8620
82 files changed
+10693
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package codechicken.lib.render;
|
||||
|
||||
public class UVTranslation implements IUVTransformation
|
||||
{
|
||||
public double du;
|
||||
public double dv;
|
||||
|
||||
public UVTranslation(double u, double v)
|
||||
{
|
||||
du = u;
|
||||
dv = v;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void transform(UV texcoord)
|
||||
{
|
||||
texcoord.u+=du;
|
||||
texcoord.v+=dv;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user