mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
skybox: added moon and stars
This commit is contained in:
parent
b42a517cc6
commit
a4a5aef422
22 changed files with 258 additions and 52 deletions
|
|
@ -355,7 +355,9 @@ Texture* png::load_texture(std::string filename) {
|
|||
std::cerr << "Could not load texture " << filename << std::endl;
|
||||
return nullptr;
|
||||
}
|
||||
return Texture::from(image.get());
|
||||
auto texture = Texture::from(image.get());
|
||||
texture->setNearestFilter();
|
||||
return texture;
|
||||
}
|
||||
|
||||
void png::write_image(std::string filename, const ImageData* image) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue