NcStudios / NcEngine

NcEngine: 3D game engine written in modern C++ and Vulkan
https://ncstudios.itch.io/
MIT License
36 stars 2 forks source link

Mipmap support #624

Closed jaremieromer closed 2 months ago

jaremieromer commented 2 months ago

Modified textures (limited to TextureArrayBuffer textures) to support mipmapping. Mips are automatically generated at runtime based on the size of the texture image based on powers of 2 (ie, a 2048x2048 image will have 11 mip levels) and are stored in that textures data. Mips are sampled based on the depth of the pixel in relation to the camera, automatically.

resolves #543