Removed the extra min required.

This commit is contained in:
Joshua Sigona 2021-11-08 18:10:43 +09:00
parent 27fd83af6d
commit cf808fd849

View File

@ -51,8 +51,8 @@ public class Texture{
}
public int getColor(float u,float v,float mult) {
int sx = (int)Math.min(width-0.1f,(u*width-0.1f));
int sy = (int)Math.min(height-0.1f,(v*height-0.1f));
int sx = (int)(u*width-0.1f);
int sy = (int)(v*height-0.1f);
if (sx<0||sx>=width||sy<0||sy>=height) {
return 0;
} else {