Update #6 - Added FXAA Antialiasing

This commit is contained in:
LAX1DUDE
2022-12-28 23:47:37 -08:00
parent 855e61836f
commit 3d6bbb672c
15 changed files with 672 additions and 129 deletions

View File

@ -45,8 +45,10 @@ public class PlatformAssets {
File loadFile = new File("resources", path);
byte[] ret = new byte[(int) loadFile.length()];
try(FileInputStream is = new FileInputStream(loadFile)) {
is.read(ret);
is.close();
int i, j = 0;
while(j < ret.length && (i = is.read(ret, j, ret.length - j)) != -1) {
j += i;
}
return ret;
}catch(IOException ex) {
return null;