texture fix
This commit is contained in:
parent
057e7b94d7
commit
00a5704653
2 changed files with 11 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ export namespace Crafter {
|
|||
tex.pixels.resize(tex.sizeX * tex.sizeY * tex.sizeZ);
|
||||
|
||||
file.read(reinterpret_cast<char*>(tex.pixels.data()), tex.sizeX * tex.sizeY * tex.sizeZ * sizeof(T));
|
||||
return tex;
|
||||
}
|
||||
|
||||
static TextureAsset<T> LoadPNG(fs::path path) requires (std::same_as<T, Vector<std::uint8_t, 4, 0>>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue