Load gltf textures as sRGB
This commit is contained in:
parent
f6d9b14f38
commit
8e286a2cc0
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ namespace psemek::gfx
|
|||
{
|
||||
auto data = uri_loader(texture.uri);
|
||||
auto & target = textures_.emplace_back();
|
||||
target.load(gfx::read_png(io::memory_istream(data.data(), data.data() + data.size())));
|
||||
target.load_srgb(gfx::read_png(io::memory_istream(data.data(), data.data() + data.size())));
|
||||
target.linear_mipmap_filter();
|
||||
target.anisotropy();
|
||||
target.generate_mipmap();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue