Undo bad fix - broke some models
This commit is contained in:
parent
684a82733c
commit
2dfa729260
2 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ public class HDBlockModels {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map[off] = (short)((255*raw_w) / (res*res*res));
|
map[off] = (short)((255*raw_w) / (nativeres*nativeres*nativeres));
|
||||||
if(map[off] > 255) map[off] = 255;
|
if(map[off] > 255) map[off] = 255;
|
||||||
if(map[off] < 0) map[off] = 0;
|
if(map[off] < 0) map[off] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -463,8 +463,8 @@ public class TexturePack {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Generate weighted compnents into color */
|
/* Generate weighted compnents into color */
|
||||||
c.setRGBA(accum_red / (res*res), accum_green / (res*res),
|
c.setRGBA(accum_red / (nativeres*nativeres), accum_green / (nativeres*nativeres),
|
||||||
accum_blue / (res*res), accum_alpha / (res*res));
|
accum_blue / (nativeres*nativeres), accum_alpha / (nativeres*nativeres));
|
||||||
dest_argb[(y*res) + x] = c.getARGB();
|
dest_argb[(y*res) + x] = c.getARGB();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue